Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic instructions — how to run example or custom program #13

Open
merwok opened this issue Oct 6, 2021 · 1 comment
Open

Basic instructions — how to run example or custom program #13

merwok opened this issue Oct 6, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@merwok
Copy link

merwok commented Oct 6, 2021

Hello! Minimum instructions to build and try this repo:

  1. mkdir build && cd build
  2. cmake .. && make
  3. copy or symlink a lua file (for example ../examples/snake.lua) as main.lua
  4. run ./32blit_lua

This could be added to the README.

@Gadgetoid Gadgetoid added the documentation Improvements or additions to documentation label Jan 27, 2022
@Gadgetoid
Copy link
Contributor

Agreed. You can even specify a launch path to avoid having to copy or symlink the file:

./32blit_lua --help
Lua v0.0.3
Powered by 32Blit SDL2 runtime - github.com/32blit/32blit-sdk

Usage: ./32blit_lua <options>

 --connect <addr>     -- Connect to a listening game instance.
 --listen             -- Listen for incoming connections.
 --position x,y       -- Set window position.
 --launch_path <file> -- Emulates the file associations on the console.   <--- Here!
 --credits            -- Print contributor credits and exit.
 --info               -- Print metadata info and exit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants