1
Programming / Re: Inventory and pop-ups: Who calls what?
« on: November 25, 2014, 10:24:16 PM »
That makes sense mcouk. I don't think my game has boiled down to a game state with just input, draw and render yet. It could be because Javascript is a bit weird in that it is asynchronous so multiple functions could be executing at the same time instead of one thing has to finish before the next one begins. Right now timing is handled by a scheduling engine that just lets different actors take their turn. Each actor is responsible for updating its position on the game map and drawing itself when it is created. Currently it is the player objects responsibility to keep track of the inventory interface and other such windows because these things are only going to happen on the players turn.
It could also be because I'm dumb =P.
It could also be because I'm dumb =P.