![]() ![]() If(Greenfoot. An attempt I made to win our class competition that came in second place. Hi all, just yesterday my comp sci class was given the infamous Greeps lab using Greenfoot, an extension of BlueJ, which is a Java compiler. * Act - do whatever the Player wants to do. Private GreenfootImage run4l = new GreenfootImage("run4l.png") 2- A scene with an extra ship and a lot of tomatos. It now shows correct number of greeps, asteroids, and spaceship destroyed. Scenes: xtra- A discription of the different greeps. Controls: -The only thing you can do is to chose another scene or reset the current (with the menu). Private GreenfootImage run3l = new GreenfootImage("run3l.png") With normal greeps, a special combat-race greeps and now speed greebs with the abillity to dash. Private GreenfootImage run2l = new GreenfootImage("run2l.png") 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. Private GreenfootImage run1l = new GreenfootImage("run1l.png") Recently, numerous programming classes started the Greeps Competition. Recently, numerous programming classes started the Greeps Competition. Private GreenfootImage run4r = new GreenfootImage("run4r.png") Private GreenfootImage run3r = new GreenfootImage("run3r.png") Private GreenfootImage run2r = new GreenfootImage("run2r.png") Private GreenfootImage run1r = new GreenfootImage("run1r.png") Private int shootingCounter = 20 // Delay shooting Private int direction = 1 // 1 = right and -1 = left * Write a description of class Player here. * the 'Act' or 'Run' button gets pressed in the environment.Īctor walls = getOneIntersectingObject(Platform.class) Īctor actor = getOneObjectAtOffset(0,0, clss) Īnd here is the current Player code: import greenfoot.* // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) It's fine to ask for help with other scenarios - but not. You are meant to experiment to figure out how to improve the Greep performance. The Greeps scenario is used as a competition in classrooms. Please don't share Greeps code and please don't ask for Greeps code. * Act - do whatever the ShootingManager wants to do. Any tips and suggestions are welcome as well thankyou davmac. Public class ShootingManager extends Actor * Write a description of class ShootingManager here. This is our "ShootingManager" class from today: import greenfoot.* // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) Today we are adding "shooting" to our game. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |