![]() ![]() Greenfoot's standard act method, which can be reimplemented in subclasses. ![]() The time at which the block sound was last played. provides the basic abilities of greeps in this world. Stopping at tomato pile: TomatoPile tomatoes = (TomatoPile) getOneIntersectingObject(TomatoPile. A Greep is the base class for all alien beings in this scenario. You could try: Code omitted You will have to supply the value to replace halfLineWidth with (half of however wide the actual image of the mazeline is). *You should work on the pathfinder when you have your Greeps doing everything they need to do. The greeps program uses color detection on the world background not on the images of actors within the world. An attempt I made to win our class competition that came in second place. *When taking a tomato back to a ship and you hit water, tell the Greep to bounce off and walk for a little bit then turn back to the ship. My guess is that after you paint your water, you meant to resize it - making the edges of the water somewhat soft. ![]() *Have your Greeps bounce off the walls and water at either a 45, 70, or 90 degree angle. Oh also I think the image is a couple pixels short. If you get disqualified for plagiarizing/cheating. Simulate some greeps (not for the SIGCSE 2009) Simulates some greeps walk around and collect food pumpkins With normal greeps, a special combat-race greeps and now speed - A discription of the different greeps. I'm going to guess you stumbled to this post looking for some ideas and code to help you succeed in it! Also, please remember I am also a student so my code might not be perfect, so feel free to correct me. This class defines the methods that all Greeps share, and which you can use to construct your solution. Recently, numerous programming classes started the Greeps Competition. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |