• Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About sterry

  • Rank
  1. Hey, I wanted to ask if there are any good ressources on how to structure a basic game framework. I am not completely new to game programming, but all my games tend to have the same "ugly" structure, i.e: -Player Class (which holds the attributes for the player, i.e. health, movementspeed, position,...) -Enemy Class (almost the same as player, only with some sort of an AI) -Game Class (extended from a jpanel, has an instance of player and a collection of enemies, handles input, drawing, looping, etc.) My problem here is, that the "Game" class becomes bloated rather fast and with that it gets more and more difficult to add things to it. So, are there any ressources you can recommend to look at, for a decent game framework structure? Or can you give me some hints and tips on how to structure my games better? How to separate Input from Drawing and everything else? PS: I doesn't need to be specifically for Java, I would appreciate it though.