Skip to main content
Format and grammar/punctuation improvement; clarified question; replaced tags (asking about a general principle, not one unique to an engine); removed tutorial request (these are now offtopic, and noone has provided an answer for this part, anyway)
Source Link
Gnemlock
  • 5.3k
  • 5
  • 30
  • 60

I'm just starting out as a game devdeveloper, and I'm finding some difficulties at the time ofdifficulty when naming classes. 

I usually call the oneclass that handles everything World or MapWorld, Map, or GridGrid. Then there's the stuffnames, inside... For


For example, I'm doingmaking a froggerFrogger clone, and I have a class for everything that moves on screen (I try to use MVC and I'm talking about the model here - I have SpriteSprite classes in the view), and I named it ObjectObject for lack of a better ideaname. Then there's a subclass from thatObject which I named Frog Frog (though I could name it PlayerPlayer) and and another one for the things controlled by the computer..., which I don't know what to call that, it(it could be EnemyEnemy or Obstacle (appropriateObstacle or something appropriate for cars &and trucks) but it. This class also includes the turtles, which are more like helpful objects, yet are not powerups? I also just learned what a hitbox is... is there a good resource out there specifically for learning all these things


How should I manage my naming conventions?

I'm just starting out as a game dev, and I'm finding some difficulties at the time of naming classes. I usually call the one that handles everything World or Map, or Grid. Then there's the stuff inside... For example, I'm doing a frogger clone and I have a class for everything that moves on screen (I try to use MVC and I'm talking about the model here - I have Sprite classes in the view), I named it Object for lack of a better idea. Then there's a subclass from that which I named Frog (though I could name it Player) and another one for the things controlled by the computer... I don't know what to call that, it could be Enemy or Obstacle (appropriate for cars & trucks) but it also includes the turtles which are more like helpful objects yet not powerups? I also just learned what a hitbox is... is there a good resource out there specifically for learning all these things?

I'm just starting out as a game developer, and I'm finding some difficulty when naming classes. 

I usually call the class that handles everything World, Map, or Grid. Then there's the names, inside.


For example, I'm making a Frogger clone, and I have a class for everything that moves on screen (I try to use MVC and I'm talking about the model here - I have Sprite classes in the view), and I named it Object for lack of a better name. Then there's a subclass from Object which I named Frog (though I could name it Player) and another one for the things controlled by the computer, which I don't know what to call (it could be Enemy or Obstacle or something appropriate for cars and trucks). This class also includes the turtles, which are more like helpful objects, yet are not powerups.


How should I manage my naming conventions?

Tweeted twitter.com/#!/StackGameDev/status/150854436825202688
Source Link
maltalef
  • 171
  • 1
  • 6

naming conventions in game code / vocabulary

I'm just starting out as a game dev, and I'm finding some difficulties at the time of naming classes. I usually call the one that handles everything World or Map, or Grid. Then there's the stuff inside... For example, I'm doing a frogger clone and I have a class for everything that moves on screen (I try to use MVC and I'm talking about the model here - I have Sprite classes in the view), I named it Object for lack of a better idea. Then there's a subclass from that which I named Frog (though I could name it Player) and another one for the things controlled by the computer... I don't know what to call that, it could be Enemy or Obstacle (appropriate for cars & trucks) but it also includes the turtles which are more like helpful objects yet not powerups? I also just learned what a hitbox is... is there a good resource out there specifically for learning all these things?