Changed some architectural stuff | Some cleanup | Random stuff
This commit is contained in:
parent
b8733f6782
commit
d213a23ca7
2 changed files with 23 additions and 13 deletions
11
README.md
11
README.md
|
|
@ -6,6 +6,14 @@
|
||||||
paru -S --needed sdl3 wgpu-native
|
paru -S --needed sdl3 wgpu-native
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
```bash
|
||||||
|
[ENTITY]
|
||||||
|
| mesh: Handle(Mesh)
|
||||||
|
| material: Handle(Material)
|
||||||
|
| transform: Transform2D or Transform3D
|
||||||
|
```
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
### Core
|
### Core
|
||||||
|
|
@ -19,3 +27,6 @@ paru -S --needed sdl3 wgpu-native
|
||||||
### Engine
|
### Engine
|
||||||
- [ ] ClassDB
|
- [ ] ClassDB
|
||||||
- [ ] UI
|
- [ ] UI
|
||||||
|
|
||||||
|
### Structure
|
||||||
|
- [ ] Assets Manager | Prob generic Assets(T) tho
|
||||||
|
|
|
||||||
|
|
@ -3,36 +3,35 @@
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
function init()
|
function init()
|
||||||
print("\x1b[32m[LUA]\x1b[0m init")
|
print("\x1b[32m[LUA]\x1b[0m init")
|
||||||
|
|
||||||
-- world:spawn {
|
-- world:spawn {
|
||||||
-- Player {}
|
-- Player {}
|
||||||
-- Transform {}
|
-- Transform {}
|
||||||
-- }
|
-- }
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
function deinit()
|
function deinit()
|
||||||
print("\x1b[32m[LUA]\x1b[0m deinit")
|
print("\x1b[32m[LUA]\x1b[0m deinit")
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
function inputs()
|
function inputs()
|
||||||
-- print("\x1b[32m[LUA]\x1b[0m inputs")
|
-- print("\x1b[32m[LUA]\x1b[0m inputs")
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
function update()
|
function update() end
|
||||||
end
|
|
||||||
|
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
function draw()
|
function draw()
|
||||||
ren:beginPass()
|
-- ren:beginPass()
|
||||||
ren:drawSquare()
|
-- ren:drawSquare()
|
||||||
ren:drawTriangle()
|
-- ren:drawTriangle()
|
||||||
ren:endPass()
|
-- ren:endPass()
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue