Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


clark last won the day on December 28 2016

clark had the most liked content!

About clark

  • Rank
    Advanced Member
  • Birthday 05/19/1982

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests

Recent Profile Visitors

2336 profile views
  1. Big Shouts to Rich in his Newsletter for his odd music insertion. That will be purchased. Ferry is just so good. Anahera last year made me cry.
  2. This is up to date. https://github.com/pixijs/pixi-typescript In the future will look at possibly including types with the official package.json so that they are automatically available when acquiring pixi from npm.
  3. Pixi V4 would be all that I felt mattered! http://dev.goodboydigital.com/client/goodboy/million/ I know bunnies are hardly the be and end all of performance benchmarks, but Phaser + v4 = Lazer. Obviously not quite (modular etc aside), but I feel Lazer should concern itself outside the renderer (and be TypeScript obvs but I will let it slide :P) . !
  4. Great work Tom, it will be of great value to those even outside the phaser community. I appreciate how much effort went into it too.
  5. So if you press debug, you see your game launching in the browser? In terms of release, I have always used grunt or gulp to compile the final release directory. Chances are you want to eventually minify and stuff for release. I am not sure how to do it with VS alone
  6. Thanks for your help on this one guys, appreciated. I made a PR containing your findings.
  7. I have to say that I am totally confused by that Syntax.... `this.rs("FPS").frame()`. In JavaScript I do not know what is happening! So `let myStats = new rStats()` appears to return a function?? Then you call `myStats("property")` to return a value based on that property??? I am so confused! Why did the author not just use getters/setters or even just properties? I am sure there is a reason! Anyway! A cheap definition file could look like this to get rid of your error. rStats.d.ts `declare var rStats: any;` I was has hoping to throw a definition file together for you, but
  8. Going back a good 10 years now, I started a game degree, it was not what I wanted so I switched to Multimedia Systems. In hindsight, the best thing I could have done was a standard computer science degree. It does not pigeon hole you into any specific field while leaving you open to explore the subject. Good luck!
  9. So generally speaking you have projects. Lets say you have some phaser games like `football` and `shooter` You also have other systems which are wider in scope. Say `Leaderboard` or `AdSystem`. What is the modern way of dealing with this? Right now I am trying an IFrame. So essentially `Leaderboard` is just a webpage, and `shooter` will load `Leaderboard` into an Iframe. This sucks for a lot of reasons though. I know it is not the best way. It is like, `Leaderboard` does not want to be a web page. It wants to just be a javascript API and hence the confusion. I am somewhat awar
  10. Yeah there are a good few of us using it (d.ts definition file). The community make PRs (but less frequently which I take as a good thing), Rich adds definitions where he can, and I often review changes a couple of times a month to mop up any stranglers. It does not have Box2D or Creature definitions yet. P2 may be slightly outdated... Aside from these features though, I would say its probably conservatively around 97% accurate! Welcome btw, I am from the same planet as you and use TS for the same reason!
  11. game.forceSingleUpdate = true;In the first state of your game. It really depends on the game though, I do not use Physics and get better performance with forceSingleUpdate.
  12. Try module MyGame { export class StateA extends Phaser.State { } }In this case, you do not need to add that constructor because its the same as the Phaser.State you are extending. When you see "prototype" in JS threads, I think it just means "properties" to your TypeScript class. So if you see StateA.prototype.create It actually means this in this context module MyGame { export class StateA extends Phaser.State { myVar: number create(): void { //all phaser states have a create method, so here is where we put create stuff.
  13. clark

    JS Modules?

    Edited: After a lot of digging, this page serves up all of my questions. I would suggest a read. http://exploringjs.com/es6/ch_modules.html
  14. Yeah exactly! I abandoned it, the restructure just jacked the whole file. However, the experiment was successfully implementing the component structure, so I should be able to compare my experiment to each of the respective classes that use them, and then from there boil it down to a handful of missing properties (ie: Graphics missing input) which can be added without ill effect. I will take a look tonight should not be too bad.
  • Create New...