Skip to content

Lua_as_Main, web - html, javascript, fengari, wasmoon, canvas. desktop - python, lupa, pygame.

License

Notifications You must be signed in to change notification settings

Flash-ang/Lua_as_Main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua_as_Main

  1. Use Lua for main program logic.

    • Init.
    • Main Loop.
    • Reset Game.
  2. For web, use HTML, javascript, canvas.

    • Use fengari (https://fengari.io/) (fengari-web.js) connect between javascript and Lua.

    • Use timer (setInterval) to control refresh speed.

    • Use file.lua.js to avoid extra settings on web server.

    • Use wasmoon (https://github.com/ceifa/wasmoon) (wasmoon.js) (glue.wasm)

  3. For desktop, use Python, lupa, pygame.

  4. js / python will provide function and global variables.

    • clear screen.
    • drawImage / blit image.
    • draw text.
    • load images.

About

Lua_as_Main, web - html, javascript, fengari, wasmoon, canvas. desktop - python, lupa, pygame.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published