Skip to content

opyapeus/purescript-emo8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

  • 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 abstraction Distributability
PureScript β—‹ β—‹
Haskell β—‹ β–³ β€»1
Elm β–³ β€»2 β—‹
  • β€»1: Hard to convert into JavaScript
  • β€»2: No type classes

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

About

🍠 A functional 2D game engine that can create emoji games.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages