1,518 reputation
59
bio website marksverbiage.blogspot.co.uk
location Reading, United Kingdom
age 39
visits member for 4 years, 2 months
seen Nov 9 '13 at 20:58

Experienced developer; I use stuff like MySQL, perl, work on pretty large systems.


Sep
22
awarded  Yearling
Oct
13
comment HTML5 2D Game Renderer
I think you might need pluggable renderers in HTML5, because a) Different HTML5 platforms have very different performance characteristics (e.g. mobiles/tablets) so may need different implementations b) Some platforms may support different feature sets (e.g. webgl) c) You might want to run your code with no renderer at all, e.g. on server-side under nodejs or similar.
Oct
13
comment HTML5 2D Game Renderer
I can't say that it's really "good practice" or not, except that it seems to work. NB: if you have many different different types of thing in your game (e.g. 1000 different types on monsters), they are likely to be represented by fewer classes in your code. So it you won't end up with 1000 drawMonsterxxx methods, rather just one drawMonster which takes some parameters to know which kind of monster to draw.
Oct
12
answered HTML5 2D Game Renderer
Oct
9
answered Can I use a translate function to implement a viewport?
Oct
3
answered HTML5 Canvas Parsing image into tileset while preserving transparency
Sep
29
answered Implementing Explosions
Sep
22
answered What's the current preferred method for serving/storing game data on html5 games
Sep
22
awarded  Yearling
Jun
3
answered Will running cron jobs every minute a good practice?
Apr
1
answered Approaching syncing between client and server, in a Tower Defense game
Mar
28
answered Javascript board game: looking for optimization
Mar
12
answered Can you use well known buildings in your game?
Mar
7
answered Sending high scores to a web server in an open source game
Mar
7
comment Optimising out tiles outside of viewport
Erm, yes. Calculate the minimum and maximum x and y coordinates visible, and only draw the tiles within those limits.
Mar
7
comment Optimising out tiles outside of viewport
You don't need spatial partitioning to cull a uniform grid.
Mar
5
comment Implementing a camera on HTML5 canvas?
For culling, definitely do the simplest thing which works. It doesn't need to be perfect.
Mar
5
comment Implementing a camera on HTML5 canvas?
I used the first approach and used the context translate method. You will definitely need to reset the canvas transformation each frame, for example, using ctx.setTransform(1,0,0,1,0,0) (identify). calls to translate() are cumulative.
Mar
4
comment Game library for 2D animation JS browsergame
I would strongly recommend using a Canvas instead of DOM elements. You might initially write more code, but in the long run you will have fewer problems.
Feb
28
revised Receiving keyboard events on a canvas in Javascript
edited tags