Changed some architectural stuff | Some cleanup | Random stuff

This commit is contained in:
abux 2026-07-30 12:39:08 +02:00
parent b8733f6782
commit d213a23ca7
2 changed files with 23 additions and 13 deletions

View file

@ -6,6 +6,14 @@
paru -S --needed sdl3 wgpu-native
```
## Architecture
```bash
[ENTITY]
| mesh: Handle(Mesh)
| material: Handle(Material)
| transform: Transform2D or Transform3D
```
## TODO
### Core
@ -19,3 +27,6 @@ paru -S --needed sdl3 wgpu-native
### Engine
- [ ] ClassDB
- [ ] UI
### Structure
- [ ] Assets Manager | Prob generic Assets(T) tho

View file

@ -3,36 +3,35 @@
-------------------------------------------------------
-------------------------------------------------------
function init()
print("\x1b[32m[LUA]\x1b[0m init")
print("\x1b[32m[LUA]\x1b[0m init")
-- world:spawn {
-- Player {}
-- Transform {}
-- }
-- world:spawn {
-- Player {}
-- Transform {}
-- }
end
-------------------------------------------------------
-------------------------------------------------------
function deinit()
print("\x1b[32m[LUA]\x1b[0m deinit")
print("\x1b[32m[LUA]\x1b[0m deinit")
end
-------------------------------------------------------
-------------------------------------------------------
function inputs()
-- print("\x1b[32m[LUA]\x1b[0m inputs")
-- print("\x1b[32m[LUA]\x1b[0m inputs")
end
-------------------------------------------------------
-------------------------------------------------------
function update()
end
function update() end
-------------------------------------------------------
-------------------------------------------------------
function draw()
ren:beginPass()
ren:drawSquare()
ren:drawTriangle()
ren:endPass()
-- ren:beginPass()
-- ren:drawSquare()
-- ren:drawTriangle()
-- ren:endPass()
end