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

Report as inappropriate.

elias.groll
elias.groll presents ...

2014/12/8

AI-Sandbox (Pong)

If u open the scenario for the first time, u will experience an absolute overkill of object-orientation for such a simple game. But this overkill is needed if u want to have an API-like structure, which doesnt allow the AI to control other things in the game. This structure is based on the normal "Pong"-structure. The difference is that the bat isnt controlled by its own class, but it asks its controller for its next action every round. The controller can be everything: an AI or a player.

15315 views / 36 in the last 7 days

1 vote | 0 in the last 7 days

Tags: game simulation demo with-source

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

MortazMortaz

2014/12/19

is the ball not a little too fast after the third hit? and you are telling me... >.> other then that good job man... I was trying to figure out how to move the paddle by itself but instead I made it two player.
MortazMortaz

2014/12/19

I think you should make the ball accelerate a little slower and have a speed limit to where it can reach that would make it at least playable.

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

Who likes this?

Mortaz