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

Report as inappropriate.

JetLennit
JetLennit presents ...

2013/4/18

Graphicless Breakout

This is a cool Breakout Game with code drawn graphics! Please comment with any suggestion you have for the game

5448 views / 14 in the last 7 days

8 votes | 0 in the last 7 days

Tags: None

This scenario is a member of: Breakout


Your browser does not support the canvas tag.
ndrwdslvndrwdslv

2013/4/21

Managed to hit the ball in time, once I clear the level, the ball doesn't follow direction, it resets towards bottom right again, and I can't get there in time..
A new version of this scenario was uploaded on Sun Apr 21 02:11:19 UTC 2013 Fixed another level bug
A new version of this scenario was uploaded on Sun Apr 21 02:12:24 UTC 2013 Try it now
ndrwdslvndrwdslv

2013/4/21

Nope, still there, when I hit level 2 this time, ball sped up crazy fast towards bottom right..
A new version of this scenario was uploaded on Sun Apr 21 02:15:46 UTC 2013 Fixed level two being impossible
UpupzealotUpupzealot

2013/4/21

Couldn't see your code, but why not try to give the tail of the ball(those black bricks followed the ball) a transparency fade out? I thought that could be better.
JetLennitJetLennit

2013/4/21

I was actually just last night thinking of that
A new version of this scenario was uploaded on Sun Apr 21 17:31:37 UTC 2013 I added transperency upon @Upupzealot's request
frogcmfrogcm

2013/4/22

To make the paddle change the ball angle, change the act to this: public void act() { Actor paddle; Trail trail = new Trail(); getWorld().addObject(trail, getX(), getY()); setLocation(getX() + xSpeed, getY() + ySpeed); if(getY() > 398) getWorld().removeObject(this); else if((paddle = getOneIntersectingObject(Paddle.class)) != null) { xSpeed = xSpeed + (getX() - paddle.getX())/10; ySpeed = (ySpeed - ySpeed * 2); } else if(getX() > 398) xSpeed = -xSpeed; else if(getX() < 2) xSpeed = -xSpeed; else if(getY() < 2) ySpeed = -ySpeed; else if(getOneIntersectingObject(Brick.class) != null) ySpeed = (ySpeed - ySpeed * 2); }
A new version of this scenario was uploaded on Mon Apr 22 00:22:26 UTC 2013 Added what @frogcm said

See all comments

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

Who likes this?

gfootguy99 TinyTilman frogcm birdy Draymothisk fear5786 FlyingRabidUnicornPig Game/maniac