mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
13 lines
374 B
Text
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 ]
|