Game Demo

Pitcher Sprite & Code

Here is the folder with the pitcher sprites:

Pitcher Sprite Images

Pitcher code

pitcher code

Hitter Sprites & Code

Here is the folder with theĀ hitter sprites:

Hitter Sprite Images

Hitter Sprite Code

hitter code
Click to enlarge

 

Ball Code

ball code

Home Run Code

Home Run Code
Home Run Code

Strike Code

strike code

Extension Challenges

Finished the game? Try these extension challenges:

  • Add sound effects and music to your game
  • Add a scoring and lives system.
  • Add a high score table
  • Add an option to move player up/down the screen, changing where you hit the ball.