Code Monkey home page Code Monkey logo

ejoy2d_js's Introduction

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

ejoy2d_js's People

Contributors

sqrt2v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

likun123687

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.