melonmiel / breakout

3 stars 0 forks source link

Adds Interaction #30

Closed mathieugagne closed 4 years ago

mathieugagne commented 4 years ago

Interaction

Can be included anywhere to gain on_key and possible other on_* callbacks.

on_key(:escape) { pause_game }

Screen

Base screen. Nothing really yet besides opinionated inclusion of Interaction since I used it everywhere.