{"id":16482515,"url":"https://github.com/f/phaser-coffee-boilerplate","last_synced_at":"2025-03-23T12:32:18.092Z","repository":{"id":140370677,"uuid":"20766304","full_name":"f/phaser-coffee-boilerplate","owner":"f","description":"Phaser CoffeeScript + Browserify + LiveReload Boilerplate","archived":false,"fork":false,"pushed_at":"2015-01-11T06:58:25.000Z","size":175,"stargazers_count":27,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T20:16:23.932Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/f.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":"2014-06-12T12:21:07.000Z","updated_at":"2021-04-25T07:17:50.000Z","dependencies_parsed_at":"2023-03-12T18:41:18.803Z","dependency_job_id":null,"html_url":"https://github.com/f/phaser-coffee-boilerplate","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/f%2Fphaser-coffee-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fphaser-coffee-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fphaser-coffee-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fphaser-coffee-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f","download_url":"https://codeload.github.com/f/phaser-coffee-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104464,"owners_count":20561376,"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-11T13:11:05.885Z","updated_at":"2025-03-23T12:32:17.776Z","avatar_url":"https://github.com/f.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phaser CoffeeScript + Browserify + LiveReload Development Boilerplate\n\nIt's a very simple boilerplate for Phaser framework, including the example of [@demircancelebi][1]'s Together game.\n\n## Installation\n\nTo start using Phaser with CoffeeScript easily,\n```bash\ngit clone https://github.com/f/phaser-coffee-boilerplate my-game\ncd my-game\nnpm start\n```\n\n## main.coffee\n\nmain.coffee is your main file. You should write your game's HTML presentational parts here. Since this boilerplate uses **browserify**\nyou can/should use `require` function of Node.js easily. TL,DR; it's main file.\n\n## config.coffee\n\nThis is a simple JSON exporting JS file. So you can put some logic if you need.\n\n## state.coffee\n\nThis is the main logic of your game. Everything happens here.\n\n```coffeescript\nconfig = require './config.coffee'\n\nclass State\n\n  constructor: (game)-\u003e\n\n  preload: -\u003e\n    # Preload Stage\n    @game.stage = $.extend @game.stage, config.stage\n\n    # Preload all images from config file\n    @game.load.image imageName, path for imageName, path of config.images\n\n  create: -\u003e\n\n    # Create world.\n\n  update: -\u003e\n\n    # Living world.\n\nmodule.exports = State\n```\n\nHave fun! :)\n\n[1]: https://github.com/demircancelebi\n\n# License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff%2Fphaser-coffee-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff%2Fphaser-coffee-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff%2Fphaser-coffee-boilerplate/lists"}