move to directories. add examples
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user