- Haxe is the language I write the code in. It allows me to release games on web, PC, and mobile.
- Lime is a helpful library for connecting with OpenGL, the keyboard, mouse, and more.
- OpenGL is a "Graphics Library" that allows me to tell the graphics card to draw graphics to the screen.
- Finally, my game engine is a library that uses all of those tools to make things draw on the screen.
My goal with the game engine is to make something that is efficient, yes :)
My next optimization is batching 2D draw calls automatically, which should end up being very fast, I think. For example, instead of drawing each block individually, it will draw them all at once using a grid.
However, one problem I found is:
If a player doesn't have "hardware acceleration" enabled in their browser, the game will run at a low FPS. Games like agar.io and slither.io do not have this problem because they don't use OpenGL directly, but games like hordes.io or tanks.io do.
But my hopes are that it'll be perfectly fine otherwise :D I can do some pretty good optimizations now that I have my own rendering engine to work with.
We'll see how things go when I get started with the port. Thanks for the question!