ejoy2d_js: jvascript and webGL implementation of ejoy2d
javascript and webGL implementation of 2d game engine ejoy2d
now it implements core API of ejoy2d but some feature still missing, include:
- rich text
- particle
ejoy2d_js can not use the raw ejoy2d assets,because is lua file. You can use the tool provided by the the repo to convert ejoy2d lua asset to json
see tools/ejoy2d2json/
to run,you should have lua installed, then run:
lua main.lua input output
it will convert input.lua to output.json
then you can use output.json as asset for ejoy2d_js
the repo provide an simple http server implement in go-lang for developer and debug
see simple_http_svr.go
to build, you need install go-lang
and you can build with (assumed the current directory is $GOPATH)
`go build ejoy2d_js
./ejoy2d.js ./src/ejoy2d_js (pass the repo path to the program, to find the assets, js, html etc)`
then you can open browser
- localhost:9528/ex01.html
- localhost:9528/ex02.html
- localhost:9528/ex04.html
- localhost:9528/ex05.html
all samle files are located in sample fold.
enjoy
feel free to contact me via email