Emo8

May 15, 2020 · View on GitHub

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...

  • Thinks only emoji is interesting!
  • Wants to share the game easily
  • Wants to write a clear program using PureScript

Why Emoji?

  • Familiar materials that can be used anywhere
  • Create games like assembling LEGO blocks
  • Interesting that there are restrictions like PICO-8

Why PureScript?

Language abstractionDistributability
PureScript
Haskell△ ※1
Elm△ ※2
  • ※1: Hard to convert into JavaScript
  • ※2: No type classes

Feature

Screen SizeVariable 256px~1024px(reasonable)
Background Color140 colors(HTML named colors)
MaterialUnicode Emoji v13.0 (Single code point only)
Controller8 buttons(up down left bottom ×2)
MapMap made of Emoji
SoundSound made of Emoji
LanguagePureScript
Output File Volume~1MB(reasonable)
Frame RateAbout 60 FPS(requestAnimationFrame)
Operating EnvironmentWeb 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