Game Design
I'm thinking of developing a game. Just a simple (by my standards) 2D sidescroller beat 'em-up type game (Streets of Rage/River City Ransom type) I have read plenty of game development tutorials, but I can never seem to find anything about certain topics. For example, how would I go about organizing functions and which class would I put them in? I know it has to do with personal preference, but I haven't found any real information on where to even begin. Is there some sort of list of common classes used in games? I would imagine you'd have an input class to handle keyboard/mouse input. Maybe some sort of person class, where enemies and the player are derived from? Some.. weapon class, I don't know. I was thinking of storing all my player stats (health, strength, stamina etc..) and other game information (weapon strength, etc...) in typed datasets and using it from there, as opposed to hard coding it. Is there any reason I shouldn't do this? Is there a better way? In my main game loop, how can I make the most out of CPU time? I was watching the C# video tutorials on Coding4Fun and it was using some sort of loop that sits idle while waiting to redraw the screen. They said it's not the best way to do it, but they gave no alternatives. I'm not new to programming, but I'm certainly not a professional developer; all I need is a good push in the right direction. While I'm asking questions, does anyone know any good 2D C# engines, preferably open-sourced? I want to develop my own (probably hard, I know, but it's not like I have time-constraints). Are there any resources that talk about developing your own engine (keep in mind, 2D)? Again, there must be some sort of standard about what I should be developing when creating an engine (physics class, sprite handling class, etc...) Thanks |

