Simple turn based 2D basketball game, one human player competes against one computer player. 

Human player constrols are:

  • A - left movement
  • W - right movement
  • D - jump
  • SPACE - catch ball/shoot ball

This simple game was coded by Deepseek R1 on this prompt (later added AI gameplay and translated to HTML/Javascript by GPT o3-mini):

I would like to ask you to to create a java game. It should be as a simple 2D basketball game, seen from side. One player on the left side of screen, another player on the right side, each has his basket. There is one ball. Each player has three control keys - left, right and catch/shoot key. Catch or shoot depends on player's ball possession. The ball is a circle, players are bars, baskets are horizontal lines. There is a score board above. The game starts with both players near their own basket. they can move left or right but only on their side of screen, they cannot cross to the other half of playground. Hitting the catch/fire key while in contact with the ball, they get the ball possesion. Hitting the same fire key while in ball possesion, player shoots. Shooting strength is proportional to the time of holding the fire key. Shooting angle is fixed.

Published 5 hours ago
StatusReleased
PlatformsHTML5
AuthorDajan
GenreSports
Tags2D, basket, Basketball

Leave a comment

Log in with itch.io to leave a comment.