move to directories. add examples

This commit is contained in:
harper
2026-10-09 10:43:00 -07:00
parent b884b2bced
commit a25a84c0f5
8 changed files with 92 additions and 9 deletions
+22
View File
@@ -0,0 +1,22 @@
package shoal
import rl "vendor:raylib"
WindowComponent :: struct {
width: i32,
height: i32,
title: string,
background: rl.Color,
}
Window: Storage(WindowComponent)
SpriteComponent :: struct {
texture: rl.Texture2D,
}
Sprite: Storage(SpriteComponent)
TransformComponent :: struct {
translation: rl.Vector2,
rotation: f32,
}
Transform: Storage(TransformComponent)