Below is an image showing the current ways a unit can move from a block to an adjacent block. Imagine the character is on top of the light blue block. They are able to move to any green block immediately beside them. This assumes there isn't a block in the way, as characters occupy two blocks above the ground.
Movement System post-0.1.4 |
If you haven't gotten the picture yet, make sure your code is modular... my game is a perfect example of why you want to keep your code very flexible. Also, copy and paste is a sin when it comes to programming. I could probably rant for a few pages about why I feel sorry for companies who hire new graduates. Particularly the ones which have very little experience with good programming practices... something that seems to be completely overlooked in undergraduate degrees. Honestly, why universities give degrees in computer science and software engineering without making students take a course (or two) on 'clean code' baffles my mind.
No comments :
Post a Comment