Skip to content

sqrt2v/ejoy2d_js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ejoy2d_js: jvascript and webGL implementation of ejoy2d

General

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

Tools

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

Run example

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

About

javascript and webGL implementation of ejoy2d

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published