PixelEngine is a graphic engine for rendering turn-based pixel games.
Games can either be stand-alone documents or imbedded in a website
Asteroid Miner - Factory Game (src) A Factorio-like mini games. Playable only with a mouse.
Dig Dig Boom - Rogue-like Game (src) The project that started everything. Mainly focusing on Tilesets
Mini World War - Card Game (src) A Risc-inspired fast card game. Its a 2-Player online game written purely in Elm. (Use the Mouse to play)
Cult Simulator - Idle Game (src) A not so intended usecase that tryed to figure out the edges of this library. It only uses the MultipleImages
Type. (Use the Mouse to play)
Ruin Jump - Platformer Game (src) I wanted to have a plaformer with a jumping mechanic. I also intentionally made it a bit janky. (Use the Arrow keys as well as SPACE to play)
hennydamonk/elm-wack-a-mole (src)
If you have created a game with this engine, please let me know.
This package follows a few philosophies:
When to use it:
When not to use it:
I had just watched a talk about the time-travel debugger of Elm. So I wanted to test it out for my next project: A little game.
The graphics engines that I could choose from where
Both used a loop to draw animations and therefore did not support time travelling and besides elmo-8 couldn't even render pixel graphics properly.
So I decided to try something different and to use HTML and CSS instead of WebGL. This way I could let CSS handle the animations. I knew that my little project was not a universal game engine, but for very specific games it might be just right.
Location
and Grid
to Orasund/elm-game-essentialsprogram
and programWithCustomControls
are now renamed to game
and gameWithCustomControls
.Html.Attributes.style
.renderToScale
replaced usingScale
, but normally Graphics.program
is the better option.scale
of your game to 1
. In the new version the scale feature scales the entire game.Graphics.program
. It will also take care of the new way scaling works.