This site requires JavaScript, please enable it in your browser!
Greenfoot back
HectorNM

HectorNM

CEFET-RJ, Rio de Janeiro

HectorNM's scenarios

play Holy Fighters (by HectorNM,João Vitor e robledo)

HectorNM's collections

This user has no collections

Recent Comments

Hello Minion1. Sorry for late reply (maybe you already have solved your problem, but I'll answer anyway). Well, we created, for every tipe of terrain, a Java class (for example: a class for grass, a class for the tree, etc). We separated them into two categories: allowable(grass and items) and unallowable(the rest), which represents, respectively, the classes that the player can walk into, and the classes that he can't. We treated, then, these classes on the act() method. We created a condition that, if the player is moving to a place, then we have to check if this place is an allowable place. If it is, then the player goes through. Thank you for your comment!
Oh, yes! I forgot.. the game was developed for 2 players xD