roc/examples/breakout/platform/Game.roc
2022-04-23 22:09:34 -04:00

13 lines
374 B
Text

interface Game
exposes [ Bounds, Elem, Event ]
imports []
Rgba : { r : F32, g : F32, b : F32, a : F32 }
Bounds : { height : F32, width : F32 }
Elem : [ Rect { color : Rgba, left : F32, top : F32, width : F32, height : F32 }, Text Str ]
KeyCode : [ Left, Right, Other ]
Event : [ Resize { width : F32, height : F32 }, KeyDown KeyCode, KeyUp KeyCode, Tick U128 ]