| bio | website | phings.wordpress.com |
|---|---|---|
| location | Toulouse, France | |
| age | 32 | |
| visits | member for | 2 years, 11 months |
| seen | Jan 22 at 12:22 | |
| stats | profile views | 28 |
-
|
Mar 26 |
comment |
Making a startscreen for an HTML5 game? Ah, right, sorry - you never mentioned Facebook. If you're constrained to a canvas, then I suppose a variation of fillText (maybe using a custom font to make things look better ?) and getting mouse position on click event would work. Also, avoid using static images for the text if you intent to internationalize your game (coming from a french speaker ;) ). |
|
Mar 24 |
answered | Making a startscreen for an HTML5 game? |
|
Jul 23 |
awarded | Yearling |
|
Jun 12 |
answered | Should an object in a 2D game render itself? |
|
Jun 8 |
comment |
Drawbacks of using reflection for a component based system at loading-time @DeadMG : hence the "implicit" :) . I'm only guessing, of course, but I doubt the OP would go through all the troubles of using reflection, and a data-driven component declaration without this kind of "shorten iteration time" requirement. But then again. Just guessing. |
|
Jun 8 |
comment |
Drawbacks of using reflection for a component based system at loading-time Well, an implicit requirement would be that it should be possible to change the content of the data file while the application is running (to fine-tune values, etc..) ; so this will require some kind of "run-time" resolution. Now I agree that relying on reflection to do that is arguable. |
|
Jun 8 |
comment |
Drawbacks of using reflection for a component based system at loading-time @TheCommunistDuck : for the kind of data that the OP want to generate, I doubt it would really be that harder to serialize it in Lua than in XML. It seems to be a problem tackled by lots of people, so you would probably be able to pick something : lua-users.org/wiki/TableSerialization, lua.org/pil/12.1.html and others came up quickly ... again, I'm not advocating writing the full serialization code yourself (which is not necessarily that difficult) ! |
|
Jun 8 |
comment |
Drawbacks of using reflection for a component based system at loading-time @TheCommunistDuck : Don't get me wrong, I would definitely try and write a tool to produce the data files - the fact that the editor has to save Lua, Js or whatever instead of XML does not seem that much of a problem to me, is it ? |
|
Jun 8 |
comment |
Drawbacks of using reflection for a component based system at loading-time (I was thinking of something like developer.mozilla.org/en/Rhino/Serialization ) |
|
Jun 8 |
comment |
Drawbacks of using reflection for a component based system at loading-time The LISP folks would start bragging about "homoiconicity", or some kind of gibberish at this point ;) Now, I would not be surprised if the popular scripting language of your choice provided a way to serialize an object to a readily parseable form without too much effort ... |
|
Jun 8 |
answered | Drawbacks of using reflection for a component based system at loading-time |
|
Jun 8 |
answered | A way to store potentially infinite 2D map data? |
|
Jun 8 |
awarded | Critic |
|
May 4 |
answered | Do retail games use “inversion of control” and “dependency injection”? |
|
May 4 |
comment |
Do retail games use “inversion of control” and “dependency injection”? I suspect many people are against IoC because it means : |
|
Apr 30 |
comment |
Is Google App Engine suitable for a real-time but single player game? How much would the client and server talk ? Whenever the player does anything, or only at some relatively rare checkpoints ? |
|
Apr 28 |
answered | Are there any web frameworks used primarily to produce games? |
|
Apr 28 |
awarded | Supporter |
|
Dec 26 |
awarded | Teacher |
|
Dec 26 |
answered | Is there an open source sports manager project? |