In this new tutorial, as I had promised before, we are going to take our hand at creating entities. Entities, for all gaming purposes, are anything that can be interacted with in any way, shape, or form. Some examples might be a monster or a treasure chest that you can open. In this sense, practically everything within the game that moves is an Entity. A rock that is part of a map, which never moves, is not an entity. But if you wanted that rock to move for whatever reason, then we’d make it an Entity. This tutorial will be split into 3 different tutorials. The first, this one you are reading, will deal with a basic Entity class structure. The next tutorial will veer off slightly to build a Map class via a tileset. Then, the last tutorial, which is what a lot of people have trouble with, will deal with Entity to Map collision, and Entity to Entity Collision.
-
-
Follow me on twitter here.
-
-
Contests
- Tetris Clone (Ended)
- Space Shooter (Ended)
-
C++ Tutorials
-
SDL Tutorials
-
SDL + OpenGL Tutorials
-
SDL Side Tutorials
-
SDL User Tutorials
-
Blue Dino Code Tutorials
- Jonny D's C++ Tutorial
- MixBox Quick Guide
- A Guide to Graphics with Sprig
- Graphics from Scratch, Using SDL
- The Ins and Outs (and Overlays) of Alpha-blending
- Huh? My Pong clone uses 100% CPU and is still slow?
-
Recent Forum Posts
- slow texture render first time...
- Undefined symbols error from the tutoria...
- Not sure?...
- SDL_Overlay to SDL RGB Surface conversio...
- tiled movement...
- Managing Game States - Articles, blog po...
- SDL_TTF on ubuntu...
- Hello All, hello Tim...
- Conversion from RGB to RGBA Surface...
- why int main(int argc, char * argv[]) ?...
-
Need Help?Need help with something now? Try chatting with me anytime I'm online.
AIM: MetaCipher
MSN: MetaCipher [at] msn.com
GTalk: tim [at] metacipher.com
Email: tim [at] metacipher.com -
Googley