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

Comments for pirates

Return to pirates

A new version of this scenario was uploaded on Thu Nov 15 11:58:14 UTC 2012
actiniumactinium

2012/11/15

Here it is Davmac. Cant get Hero class or Ghost class to re-appear.
ShazamShazam

2012/11/15

Ya you don't respawn, and it should have more paths
actiniumactinium

2012/11/15

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
DzifzarDzifzar

2012/11/17

Could you possibly upload the source code for this or email it to me?? Awesome job.
actiniumactinium

2012/11/18

Sorry, when i uploaded i didn't check the button to allow open in greenfoot checkbox. I will fullly doc the scenario and upload soon.
A new version of this scenario was uploaded on Sun Nov 18 20:09:42 UTC 2012 will tidy up tomoz, no time.
A new version of this scenario was uploaded on Tue Nov 20 19:14:01 UTC 2012 Game over screen when all lives are gone complete.
A new version of this scenario was uploaded on Wed Nov 21 14:11:06 UTC 2012 poison bottle working.
A new version of this scenario was uploaded on Wed Nov 21 14:20:07 UTC 2012 fixed reset with 5 lives.
A new version of this scenario was uploaded on Wed Nov 21 17:20:49 UTC 2012 Energy drink and sounds added.
A new version of this scenario was uploaded on Thu Nov 22 09:37:28 UTC 2012 Energy gives a new life if you dont have maximum lives.
A new version of this scenario was uploaded on Thu Nov 22 09:50:15 UTC 2012 new level
Sl3nDeRm4nSl3nDeRm4n

2012/11/22

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
actiniumactinium

2012/11/22

Reset dont work properly yet i will get around to fixing it. There are a few bugs to iron out.
Sl3nDeRm4nSl3nDeRm4n

2012/11/22

try this if you have a variable life: if(life==0){ Greenfoot.setWorld(new GameOver()); } and open your Game over screen in your World GameOver
actiniumactinium

2012/11/22

Under what circumstances doe game over not work. It seems to work for me.
A new version of this scenario was uploaded on Thu Nov 22 19:06:25 UTC 2012 this seems more stable, fixed variable in hero class
danpostdanpost

2012/11/22

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.
Sl3nDeRm4nSl3nDeRm4n

2012/11/22

Yes now game over screen appears
actiniumactinium

2012/11/23

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.
Sl3nDeRm4nSl3nDeRm4n

2012/11/23

no problem but still you do not reset lives if you refresh the game i coud help you with this better if you upload a source coad
danpostdanpost

2012/11/23

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.
actiniumactinium

2012/11/23

Dont know how i designed that number of lives stuff, its a mess.
danpostdanpost

2012/11/23

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.
actiniumactinium

2012/11/23

Yes Danpost, i have made a meal of the nimber of lives stuff. Lol
A new version of this scenario was uploaded on Fri Nov 23 18:49:43 UTC 2012 new level
A new version of this scenario was uploaded on Sat Nov 24 13:49:33 UTC 2012 keep forgetting to include code.
actiniumactinium

2012/11/24

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.
this is the worst game i have ever played
actiniumactinium

2012/12/3

I note you have not created a scenario Jazzy Guo so i cannot make a judgement about the worse game i ever played. :=)
actiniumactinium

2012/12/3

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