Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.55 KB

File metadata and controls

39 lines (26 loc) · 1.55 KB

2 months later

Week 1

I ported the project to nuxt.js

Week 2

I rewrote the frontend in vue

Week 3

I am rewriting the scene class as the way it works is completely broken, and extremely buggy.

I decided to use Richard Lord's blog on entity framework system to build my own engine. ChatGPT was no longer able to anser my questions. I needed a strong source material where i can understand how people really did it in the past.

First I simplified everything into indivisual components.

  1. System interface -> managed by SystemManager img.png

Week 4

Finally a barely working ECS is ready now. I can now spawn a horizontal and vertical array. Its hard to think in the way ECS works, but once you do, the code become so much simpler and decoupled. Animating in ECS is also extremely easy.

Now i will start working on the array swap and some animation followed by parsing my AST of code into commands that can control the scene.

DECEMEBER 29, 2025

The bare bone ECS system is ready. Now i can render an array + have its swaps animated. Now i can finally move onto compiling the AST into commands. I am thinking of making a cpu like instruction set and a virtual machine which will execute those instruction. It will have:

  1. registors : Just like a cpu, i need registers to store operations, operands, instruction pointer, etc.
  2. instrution sets: These will be similar to assembly but will be JS objects
  3. A middleware which will sit between the renderer and the runtime of YASL