{"id":20512202,"url":"https://github.com/nidup/love2d-sandbox","last_synced_at":"2025-04-13T22:42:40.742Z","repository":{"id":72831084,"uuid":"97207676","full_name":"nidup/love2d-sandbox","owner":"nidup","description":"Play with Löve 2d \u0026 Lua (docker images, web build tools)","archived":false,"fork":false,"pushed_at":"2017-07-15T15:41:45.000Z","size":14469,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:02:39.840Z","etag":null,"topics":["docker-image","examples","love2d","lua"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nidup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-14T07:45:27.000Z","updated_at":"2024-08-28T19:02:11.000Z","dependencies_parsed_at":"2023-02-26T23:00:51.717Z","dependency_job_id":null,"html_url":"https://github.com/nidup/love2d-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Flove2d-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Flove2d-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Flove2d-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Flove2d-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidup","download_url":"https://codeload.github.com/nidup/love2d-sandbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794565,"owners_count":21162613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","examples","love2d","lua"],"created_at":"2024-11-15T20:40:18.721Z","updated_at":"2025-04-13T22:42:40.711Z","avatar_url":"https://github.com/nidup.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Löve 2d sandbox\n\nPlaying with Löve 2d \u0026 Lua\n\n## Run the docker image (using host server x \u0026 sound support)\n\n```\nuser@host:~/$ docker run -ti -e DISPLAY=$DISPLAY \\\n    -v /tmp/.X11-unix:/tmp/.X11-unix \\\n    -v /dev/snd:/dev/snd \\\n    -v \"$PWD\":/home/developer \\\n    --security-opt seccomp=unconfined \\\n     --privileged \\\n    nidup/love2d:0.10.2 bash\n```\n\n## Download examples\n\n```\nuser@host:~$:~/$ cd examples\nuser@host:~$:~/$ ./dowload.sh\n```\n\n## Run projects\n\nRun an example:\n\n```\ndeveloper@image:~$:~/$ love examples/mrrescue/\n```\n\nRun your project:\n\n```\ndeveloper@image:~$:~/$ love src/\n```\n\n## Deploy the web build\n\nCf. https://github.com/TannerRogalsky/love.js#usage\n\n```\nuser@host:~/$ docker build -t nidup/lovejs ./docker/lovejs/\n```\n\nPackage the debug release,\n\n```\nuser@host:~/$ docker run -ti -v \"$PWD\":/home/developer -p 8080:8080 nidup/lovejs bash\ndeveloper@image:~/$ cd /usr/src/love.js/debug\ndeveloper@image:/usr/src/love.js/debug$ python ../emscripten/tools/file_packager.py game.data --preload /home/developer/src/@/ --js-output=game.js\ndeveloper@image:/usr/src/love.js/debug$ python -m SimpleHTTPServer 8080\n```\n\nTest the game at http://localhost:8080/\n\nIf everything is ok, package the compatibility release,\n\n```\ndeveloper@image:/usr/src/love.js/debug$ cd ../release-compatibility\ndeveloper@image:/usr/src/love.js/release-compatibility python ../emscripten/tools/file_packager.py game.data --preload /home/developer/src/@/ --js-output=game.js\ndeveloper@image:/usr/src/love.js/release-compatibility$ python -m SimpleHTTPServer 8080\n```\n\nDeploy on ghpages branch,\n\n```\ndeveloper@image:/usr/src/love.js/release-compatibility$ cp -r ./* /home/developer/build/web/\n```\n\nThen commit, rebase and push.\n\n```\nuser@host:~/$ git checkout gh-pages\nuser@host:~/$ git rebase master -i\nuser@host:~/$ git push origin gh-pages -f\n```\n\n## Credits\n\nThanks a bunch to @DawsonG for this great tutorial:\n - http://osmstudios.com/tutorials/your-first-love2d-game-in-200-lines-part-1-of-3\n - https://github.com/DawsonG/Love2d-Tutorial-Scrolling-Shooter\n\n# Update Docker images\n\n## Löve v0.9.1\n\n### Build the docker image\n\n```\nuser@host:~/$ docker build -t nidup/love2d:0.9.1 ./docker/0.9.1/\n```\n\n### Push the docker image\n\n```\nuser@host:~/$ docker push nidup/love2d:0.9.1\n```\n\n## Löve v0.10.2\n\n## Build the docker image\n\n```\nuser@host:~/$ docker build -t nidup/love2d:0.10.2 ./docker/0.10.2/\n```\n\n### Push the docker image\n\n```\nuser@host:~/$ docker push nidup/love2d:0.10.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Flove2d-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidup%2Flove2d-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Flove2d-sandbox/lists"}