{"id":17632591,"url":"https://github.com/opatut/love2d-preset","last_synced_at":"2025-05-05T22:01:30.248Z","repository":{"id":139260524,"uuid":"5271473","full_name":"opatut/love2d-preset","owner":"opatut","description":"Löve2D Project Preset, just clone and start hacking. Includes scripts for distribution as well as all the required libaries and binaries for Löve2D 0.8","archived":false,"fork":false,"pushed_at":"2013-10-16T11:46:06.000Z","size":5566,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T00:06:57.790Z","etag":null,"topics":["game-state","linux","love2d","lua","makefile","outdated"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opatut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-02T10:59:35.000Z","updated_at":"2019-03-02T03:07:10.000Z","dependencies_parsed_at":"2023-03-29T19:36:30.205Z","dependency_job_id":null,"html_url":"https://github.com/opatut/love2d-preset","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/opatut%2Flove2d-preset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opatut%2Flove2d-preset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opatut%2Flove2d-preset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opatut%2Flove2d-preset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opatut","download_url":"https://codeload.github.com/opatut/love2d-preset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584326,"owners_count":21771944,"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":["game-state","linux","love2d","lua","makefile","outdated"],"created_at":"2024-10-23T01:44:43.132Z","updated_at":"2025-05-05T22:01:30.172Z","avatar_url":"https://github.com/opatut.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Löve2D Project Preset\n\nThis is a small helper repository to get you started coding a nice game with Löve2D.\n\n## Requirements\n\n* Makefile and Bash scripts are not good for Windows, don't you try to feed them to the nasty Microsoft stuff. For Linux only!\n* You should have Löve2D installed on your system, so you don't have to build the binary package all the time for testing\n\n## Building\n\nThe following make targets are available:\n\n    clean:              clears all generated data\n    build:              packages the data and sources into ```game.love```\n    run:                runs ```love game.love``` for you\n    package-all:        creates all binary packages into ```pkg/```\n    package-\u003cplatform\u003e: generates binary package for one of the supported platforms\n\nJust type ```make``` to perform the **build** and **run** targets.\n\n## Development\n\nPut your data in the ```data/``` folder, and your sources into ```src/```. Make sure to adjust ```src/config.lua```. Add resources to the resource manager in ```src/main.lua```. You can access them via\n\n    resources.images.\u003cimage-name\u003e\n    resources.fonts.\u003cfont-name\u003e\n    etc...\n\nfrom everywhere in your code.\n\n### Class Helper\n\nThe class helper can be used like this:\n\n    require(\"util/helper\")\n\n    ClassName = class(\"ClassName\")\n\n    function ClassName:__init(constructor, arguments)\n        self.foo = \"bar\"\n    end\n\n    function ClassName:customMethod(parameter)\n        -- do stuff\n    end\n\nInheritance works like this:\n\n    require(\"util/helper\")\n\n    SecondClass = class(\"SecondClass\", ClassName)\n\n    -- overwriting a method\n    function SecondClass:customMethod(parameter_x)\n        -- do other stuff\n    end\n\n### Game States\n\nTo create a new game state, inherit it from the GameState class (util/gamestate). Then create it in the reset() function in the ```src/main.lua```. To switch to a state, call stack:push(the_state) somewhere in your code. To close a state, run stack:pop(). See the intro state in ```src/intro.lua``` for an example.\n\n## License\n\nThis program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details.\n\n             DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE \n                       Version 2, December 2004 \n\n    Copyright (C) 2004 Sam Hocevar \u003csam@hocevar.net\u003e \n\n    Everyone is permitted to copy and distribute verbatim or modified \n    copies of this license document, and changing it is allowed as long \n    as the name is changed. \n\n               DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE \n      TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION \n\n     0. You just DO WHAT THE FUCK YOU WANT TO. \n\nThe following files and directories are not part of this project and were redistributed under their respective licenses:\n\n* data/DejaVuSans.ttf [LICENSE](http://dejavu-fonts.org/wiki/License)\n* lib/linux_x86 (license file included)\n* lib/linux_x64 (license file included)\n* lib/windows_x86 (license file included)\n* lib/windows_x64 (license file included)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopatut%2Flove2d-preset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopatut%2Flove2d-preset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopatut%2Flove2d-preset/lists"}