{"id":15827653,"url":"https://github.com/dackmin/freshflesh","last_synced_at":"2025-05-08T23:46:41.626Z","repository":{"id":18065200,"uuid":"21125176","full_name":"dackmin/FreshFlesh","owner":"dackmin","description":"HTML5 WebGL/Canvas game engine","archived":false,"fork":false,"pushed_at":"2025-03-28T15:05:45.000Z","size":901,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T23:46:37.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dackmin.github.io/FreshFlesh","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dackmin.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}},"created_at":"2014-06-23T12:20:28.000Z","updated_at":"2025-03-28T15:05:48.000Z","dependencies_parsed_at":"2022-09-02T11:01:51.408Z","dependency_job_id":null,"html_url":"https://github.com/dackmin/FreshFlesh","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dackmin%2FFreshFlesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dackmin%2FFreshFlesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dackmin%2FFreshFlesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dackmin%2FFreshFlesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dackmin","download_url":"https://codeload.github.com/dackmin/FreshFlesh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166474,"owners_count":21864467,"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":[],"created_at":"2024-10-05T10:08:20.171Z","updated_at":"2025-05-08T23:46:41.607Z","avatar_url":"https://github.com/dackmin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"FreshFlesh\n==========\n\n[![release](http://img.shields.io/badge/current%20release-Tortuga%20(v0.3.2__alpha)-green.svg?style=flat)](https://github.com/dackmin/FreshFlesh/releases/tag/v0.3_alpha)\n[![download](http://img.shields.io/badge/download%20latest%20minified%20js-70KB-blue.svg?style=flat)](https://github.com/dackmin/FreshFlesh/releases/download/v0.3_alpha/freshflesh-v0.3.2_alpha.min.js)\n\n\nFresh Flesh is a fast/lightweight Javascript WebGL/Canvas game engine based on [WebGL-2D](https://github.com/gameclosure/webgl-2d) library (for WebGL render) and Canvas API. It allows you to create simple games in minutes by providing useful built-in game functions (for RPGs, TPS, ...).\n\n## License\n\nThis engine is subject to the terms and conditions defined in the 'LICENSE' file, which is part of this source code package. Please refer to this file if you have any question concerning product licence.\n\n## Installation\n\nIf you don't want to download the compressed version of Fresh Flesh everytime you create a game, simply use the latest release in the master branch of this git, like the following :\n\n```\n\u003cscript src='https://rawgit.com/dackmin/FreshFlesh/master/bin/freshflesh-latest.js'\u003e\u003c/script\u003e\n```\n\nUnless Rawgit suddenly closes, it will never change.\n\n## Usage\n\nFresh Flesh was made to strictly follow the common game loop structure : `Setup -\u003e Update -\u003e Draw`.\nYou first create a GameState :\n\n```\nfunction MainGameState(){\n\tthis.setup = function(){\n\n\t};\n\n\tthis.update = function(){\n\n\t};\n\n\tthis.draw = function(){\n\n\t};\n}\n```\n\nYou then add some stuff in your gamestate .setup() function :\n\n```\nvar mySprite = new FF.Sprite({ image : \"res/pig.png\" });\nthis.add(mySprite);\n```\n\nAnd finaly, you can create \u0026 launch your game :\n\n```\nvar GAMESTATE = new MainGameState();\nvar GAME = new FF.Game(MAIN_GAMESTATE, { background : \"#000\" });\nGAME.launch();\n```\n\n## Example\n\nTo see a living example of Fresh Flesh usage, you can look at my [Cheezy The Pig](https://github.com/dackmin/CheezyThePig) repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdackmin%2Ffreshflesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdackmin%2Ffreshflesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdackmin%2Ffreshflesh/lists"}