opyapeus / purescript-emo8

🍠 A functional 2D game engine that can create emoji games.
https://opyapeus.github.io/emo8/
MIT License
50 stars 4 forks source link
emoji functional-programming game-engine

Emo8

Build status purescript-emo8 on Pursuit

An unique functional 2D game engine that can create games with only emoji.

[ 日本語 ]

emo8 emodius

This Library Is For Someone Who...

Why Emoji?

Why PureScript?

Language abstraction Distributability
PureScript
Haskell △ ※1
Elm △ ※2

Feature

Screen Size Variable 256px~1024px(reasonable)
Background Color 140 colors(HTML named colors)
Material Unicode Emoji v13.0 (Single code point only)
Controller 8 buttons(up down left bottom ×2)
Map Map made of Emoji
Sound Sound made of Emoji
Language PureScript
Output File Volume ~1MB(reasonable)
Frame Rate About 60 FPS(requestAnimationFrame)
Operating Environment Web browser

Controller

Keyboard Input

 /¯¯¯\_/¯¯¯\
|  W  |  ↑  |
| A D | ← → |
|  S  |  ↓  |
 \___/¯\___/

Screen Swipe

|¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯|
|   👆    |   👆   |
| 👈   👉 | 👈   👉 |
|   👇    |   👇   |
|________|________|

Resource Editor

Map

🈳🈳🈳🈳🈳🈳🈳🈳🈳
🈳⛅🈳🈳🎌🈳🈳🌧🈳
🈳🈳🈳🌳🗻🌳🈳🈳🈳
🈳🈳🌳🗻🗻🗻🌳🈳🈳
🈳🌳🗻🗻🗻🗻🗻🌳🈳
🌳🗻🗻🗻🗻🗻🗻🗻🌳

Sound

🎹🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳
🎹🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳
🎹🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳
🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🈳🎹

Manual

Sample Program

See example for the implementation.

yarn

Output File

yarn bundle:example
open dist/example/hello/index.html
open dist/example/basic/index.html
open dist/example/emodius/index.html

Development

yarn build
yarn dev

Known Issue

License

MIT