Jellyball
Immerse yourself in the relaxing atmosphere of the beach in this charming casual 2D pixelated game. With vibrant graphics, captivating music, and simple gameplay, dive into the fun and tranquility of this beach paradise.
controls:
A or left arrow key = move left
D or right arrow key = move right
W or SPACE = jump
Status | In development |
Platforms | HTML5 |
Author | jefersonbelmiro |
Genre | Sports |
Made with | Godot |
Tags | 2D, Godot, Pixel Art, volley |
Comments
Log in with itch.io to leave a comment.
The AI is quite impressive. I’ve always lost so far ^^ Is it a neural network by any chance?
hi,
No, there’s no neural network under the hood, just a simple rule-based AI written in GDScript. Here’s roughly how it works:
Trajectory Prediction
Each update it “simulates” the ball’s fall under gravity and damping until it hits the ground, and records the X-position where it will land.
Jump Decision
If the character is on the floor, the ball is nearby and coming from the left, and enough time has passed since the last jump, it triggers a jump.
Target Selection
If the round is active and the landing spot is on the character’s side, it picks that landing X plus a small random “offset” (varying by difficulty tier). Otherwise it falls back to a fixed start position.
Movement
It simply moves left or right toward the chosen target, with a tiny “jitter” threshold so the motion looks less robotic
puseudo code:
```
```
Nice job, it works really well for such a relatively simple system! The jitter threw me off into thinking that it’s a neural network ^^
Amazing!