Skip to content

crusheed/Breakout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Arkanoid Console Game – Arquitectura

Diagrama conceptual

Game
 ├── Paddle
 ├── Ball
 ├── Block[]
 └── Board

Clases

Game

+ Board board
+ Paddle paddle
+ Ball ball
+ List<Block> blocks
+ bool isRunning
+ int score
+ int lives

+ Start()
+ Run()
+ HandleInput()
+ Update()
+ Render()
+ CheckGameOver()

Board

+ int width
+ int height

+ Clear()
+ Draw(char[,] grid)
+ DrawObject(GameObject obj) // opcional

Paddle

+ int x
+ int y
+ int length

+ MoveLeft()
+ MoveRight()
+ Draw(Board board)

Ball

+ int x
+ int y
+ int dx  // dirección horizontal (-1, 1)
+ int dy  // dirección vertical (-1, 1)

+ Move()
+ BounceX()
+ BounceY()
+ Draw(Board board)

Block

+ int x
+ int y
+ bool isDestroyed

+ Destroy()
+ Draw(Board board)

Flujo principal del juego

  1. Game.Start() → inicializa paddle, pelota, bloques y tablero.
  2. Game.Run() ejecuta un bucle con:
    • HandleInput() → mueve el paddle con teclas.
    • Update() → mueve la pelota y gestiona colisiones.
    • Render() → dibuja tablero y objetos.
    • CheckGameOver() → revisa si pierdes o ganas.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages