3 ms·
Thanks for sharing. You can find here all of the code. Everything here is written (by me) from a scratch, beggining with game engine, and ending on ML algorith
by Lord_Fixer 10y ago
Thanks for sharing.
You can find here all of the code.
Everything here is written (by me) from a scratch, beggining with game engine, and ending on ML algorithms. It's taken to the level where I even multiply matrixes for graphics transformation, operating on pure HTML5 canvas. So everyone should find there something interesting for him. Only editors are a great plugin for ace C9.
- kevinwang 10y agoHi, why did you have to make your own graphics engine? Does canvas not supply everything you need?
- Lord_Fixer 10y agoIt's more like game engine, not a graphics engine. Canvas enabled me to draw basic shapes with a specific transformation. I had to implement something, that would give me a convenient way of managing them (like grouping them, or animating them - as canvas only provides a way of drawing and forgetting them). So with my code I can add an object to some scene, add children to it, transform it at the fly and move the camera. With pure canvas that also would be possible, but not as simple.
- kevinwang 10y agogot it. are you aware of/did you ever consider using the game engine Phaser? Probably wouldn't have been as fun as making your own game engine, but it does everything you mentioned.
- Lord_Fixer 10y agoYes, I did, but as you mentioned, where's fun in it? :D When I create projects of my own I like to face some challenges that help me improve my skills. On the other hand there is work, where I use libraries and other ready stuff, as the software has to be usually deployed as fast as possible and in the highest quality. But with project like this I can take my time and just have fun :) And by fun I mean comming up with an arhitecture, code optimization, data structures (like quad tree in this example) implementation and many others.
- deleted 10y ago[deleted]