The resetting of the level is done from within the Hero class when he dies, the level is drawn but the Ghost class and Hero class are not redrawn. The only thing i can think of is the call to redraw the level is from the Hero class or the Hero and Ghost constructors have parameters. As for needing more paths, what do you mean ? .
A new version of this scenario was uploaded on Thu Nov 15 23:26:11 UTC 2012
A new version of this scenario was uploaded on Fri Nov 16 11:17:37 UTC 2012
keys and doors fixed.
A new version of this scenario was uploaded on Fri Nov 16 17:25:45 UTC 2012
A new version of this scenario was uploaded on Fri Nov 16 18:52:43 UTC 2012
A new version of this scenario was uploaded on Sat Nov 17 11:36:59 UTC 2012
Sorted keys on level 2
hey nice game but two things: if you loose your last life no game over screen appers and the game stops. If you press Run then for 6 times you can play and havent lost the last life
Yes, a game over screen appears when you lose all your lives. However, when you complete all three levels you end up going back to the first level. Also, reseting the scenario does not replenish your lives.
Thanks S13derm4n i fixed that. (i hope :-]). Thanks danpost, i noticed them bugs twill try to fix them today. Will also open up the code with an explanation of how to add a level. Keep forgetting to set share code option sorry.
All that needs done, is to make the NUMBER_OF_LIVES a non-static variable. This would mean making two simple modifications in the code. One is changing a static method to non-static; the other is changing 'CellarWorld.' to 'cw.' in one of the actor classes. Both these changes are directly related to the NUMBER_OF_LIVES variable.
A new version of this scenario was uploaded on Fri Nov 23 15:32:05 UTC 2012
Stopped lives index going below 0 and causing an error.
Actually, you do not even need a variable to hold the number of lives.
You could just use:
getWorld().getObjects(Lives.class).getSize()
or, if in the world
getObjects(Lives.class).getSize()
to get the number of lives.
after the first game finishes the game loses control of the number of lives, need to fix that.
A new version of this scenario was uploaded on Sat Nov 24 17:52:22 UTC 2012
seems more stable.
A new version of this scenario was uploaded on Sun Nov 25 11:19:02 UTC 2012
new levels. game ends on completion of levels instead of looping back to level one.
Also note you need a key to exit a level or open a door. And if you dont like the levels you can edit my levels to your liking and add more levels with little effort on your part. I am more interested in the method of programming the cell type game than the level editing too which i gave little thought.
A new version of this scenario was uploaded on 2019-05-03 13:06:34 UTC
Changed color and font code so the scenario works again
2012/11/15
2012/11/15
2012/11/15
2012/11/17
2012/11/18
2012/11/22
2012/11/22
2012/11/22
2012/11/22
2012/11/22
2012/11/22
2012/11/23
2012/11/23
2012/11/23
2012/11/23
2012/11/23
2012/11/23
2012/11/24
2012/12/3
2012/12/3
2012/12/3