This library aims to enable creating 2d games based on WebGL using elm.
TODO: pretty pictures and more examples
My current goal is just to enable users with no WebGL and GLSL knowledge to create simple games. Hopefully this will eventually grow into something bigger, but currently that's what this is.
This library is for you, if
If you want to create a "real" game, I strongly recommend other options such as Godot / LÖVE / libGDX / MonoGame / Unreal / Unity etc...
The vision for this library is to grow into something bigger. Currently it only provides a way to render things to the screen.
It does not provide a way to structure your physics/gameplay code, no resource management, no input management, no sound, no networking, etc.
However, the idea is that each of the mentioned missing topics can be created as a separate package that would live under the same namespace. E.g. a 2d physics engine might live in a package called
elm-game-2d-physics and provide the namespace
** 3.0.0 -> 3.1.0 **
viewportToGameCoordinatesthanks to @Luftzig.
** 2.1.0 -> 3.0.0 **
(x + pivotX*w, y + pivotY*h)instead of
(x, y)for position.
makeTransformis also affected by that change.
2.0.0 -> 2.1.0
1.0.1 -> 2.0.0