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

feat: add command init (to create template game) #31

Closed
RodrigoDornelles opened this issue Aug 3, 2024 · 0 comments
Closed

feat: add command init (to create template game) #31

RodrigoDornelles opened this issue Aug 3, 2024 · 0 comments
Labels
good first issue good first issue for begginers hacktoberfest 2024
Milestone

Comments

@RodrigoDornelles
Copy link
Member

RodrigoDornelles commented Aug 3, 2024

in the terminal use the command

lua cli.lua init @helloworld myproject

the command must be create this files:

  • myproject/.gitignore
dist/
vendor/
.DS_Store
Thumbs.db
  • myproject/README.md
# Myproject

 * **use:** `./cli.sh run src/game.lua`
  • myproject/src/game.lua
local function init(std, game)

end

local function loop(std, game)

end

local function draw(std, game)
   std.draw.clear(std.color.black)
   std.draw.color(std.color.white)
   std.draw.text(8, 8, "hello world")
end

local function exit(std, game)

end

local P = {
    meta={
        title='Myproject',
        author='YourName',
        description='description about the game',
        version='1.0.0'
    },
    callbacks={
        init=init,
        loop=loop,
        draw=draw,
        exit=exit
    }
}

return P
@RodrigoDornelles RodrigoDornelles added the good first issue good first issue for begginers label Aug 5, 2024
@RodrigoDornelles RodrigoDornelles added this to the 0.0.5 milestone Aug 12, 2024
@RodrigoDornelles RodrigoDornelles removed this from the 0.0.5 milestone Sep 6, 2024
lnpotter added a commit to lnpotter/gly-engine that referenced this issue Oct 9, 2024
lnpotter added a commit to lnpotter/gly-engine that referenced this issue Oct 9, 2024
@RodrigoDornelles RodrigoDornelles added this to the 0.0.8 milestone Oct 30, 2024
RodrigoDornelles pushed a commit that referenced this issue Oct 31, 2024
* feat: implemented init command #31
* refactor: integrate init.lua in cli.lua streamlining the project init command
RodrigoDornelles added a commit that referenced this issue Oct 31, 2024
* feat: add wget to http util create request #90

* Implementation of init command (#94)

* feat: implemented init command #31
* refactor: integrate init.lua in cli.lua streamlining the project init command

* chore: somes adjusts in #94

---------

Co-authored-by: Lucas Noal Pötter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue good first issue for begginers hacktoberfest 2024
Projects
None yet
Development

No branches or pull requests

1 participant