Skip to content

joeribreedveld/raylib-breakout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breakout

Breakout (1976) retro arcade game clone with raylib and C.

Screenshot 2025-07-05 at 12 23 12

Features

  • Control paddle with keyboard arrows
  • Ball bouncing on walls
  • Multiple layers of profitable bricks
  • Ball bouncing off entities
  • Dynamic ball direction on paddle collision
  • Score and lives display

Elements

Paddle (player)

  • Variable (x-axis) position vector
  • Direction (on x-axis)
  • Constant speed
  • Dynamic bounce angle based on point of impact
  • Lose a life if ball is missed

Brick

  • Constant position vector
  • Enum for level of brick
  • Break on impact and scale speed based on level
  • Increment game score on break

Ball

  • Variable position vector
  • Calculate normalized direction on impact
  • Velocity only scaled by bricks

Ideas for improvement

  • Multiplayer support
  • Highscore tracking
  • Power-up for paddle width and extra lives
  • Implement paddle velocity as vector for power-down

About

Breakout game made with raylib.

Topics

Resources

Stars

Watchers

Forks