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

2018/12/3

[Don't Reply] Project Discussion

hi
Hitman735 Hitman735

2018/12/3

#
Barrier a = (Barrier) getOneIntersectingObject(Barrier.class); if(a != null) { setLocation(262, 123); return; // Sets the location back to the start if the car bumps into a wall
thanks
Hitman735 Hitman735

2018/12/3

#
Barrier a = (Barrier) getOneIntersectingObject(Barrier.class); if(a != null) { setLocation(262, 123); return; // Sets the location back to the start if the car bumps into a wall } Finish b = (Finish) getOneIntersectingObject(Finish.class); if (b != null) { Player1 player1 = new Player1(); // This code Was barrowed:ChuckNorrisCode getWorld().addObject(player1,453,159); // end barrowed code // Sets the Victory screen to pop up once you encounter the finish line, and then stop greenfoot
hello
Hitman735 Hitman735

2018/12/5

#
if ("space".equals(Greenfoot.getKey())) { Fire(); } private void Fire() { bullet_1 bullet_1 = new bullet_1(); getWorld().addObject(bullet_1, getX(), getY()); bullet_1.setRotation(getRotation()); bullet_1.move(10); }
Hitman735 Hitman735

2018/12/5

#
hi
Very cool
Hitman735 Hitman735

2018/12/5

#
if (isAtEdge()) { getWorld().removeObject(this); }
You need to login to post a reply.