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

Report as inappropriate.

hesh
hesh presents ...

2011/3/24

Crates

Welcome to Crates!
Smarty likes to keep his crates on specific places.
Use the arrow keys to move smarty around.
Push the crates onto the goals to complete the levels.
Good luck!

4386 views / 13 in the last 7 days

Tags: game demo with-source arrow keys push crates

This scenario is a member of: hesh's collection


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Thu Mar 24 13:04:52 UTC 2011 Welcome to Crates! Smarty likes to keep his crates on specific places. Use the arrow keys to move smarty around. Push the crates onto the goals to complete the levels. Good luck! Version: crates_b1 24-03-2011
A new version of this scenario was uploaded on Sat Mar 26 21:05:54 UTC 2011 +Added levels to a total of 9. +Added scoreboard in the top left thats shows the current level and the amount of moves taken. +Added opening and closing board. +Binded 'Backspace' to restarting a single level.
A new version of this scenario was uploaded on Sat Mar 26 21:17:10 UTC 2011 +Added an extra line to the opening message.
pushypushy

2011/4/15

Dear hesh, I like this kind of games, also known as SOKOBAN. I tried myself to write a scenario based on wombats world. I crashed at following problem: I can identify a crate in front of the wombat, but I was not able to call the move-method of this crate. It would be nice, if you allow a download of the sourcecode of your program. greetings from Pushy
A new version of this scenario was uploaded on Fri Apr 15 21:34:42 UTC 2011 +Published source code.
heshhesh

2011/4/15

Hey Pushy. Thanks a lot for your interest! To get this working I learned you've got to call the object (crate in this case) you are referring to a name first, in the code of the moving player. So next you can move the object by stating: name.setLocation(int x, int y). I uploaded the code for you, have a look to see what I mean! Greets, hesh
LildarkoneLildarkone

2011/4/15

This is a great puzzle game!
pushypushy

2011/4/17

Hey hesh, thanks a lot!! You wrote an easy to read source code with good explanations. I recognized the differences and also why your version is running and my not. Thank you for supporting, I hope not only me but also some other newbys in Greenfoot World. Greets Pushy P.S. The next step may be to offer a level generator.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.