{"id":33169575,"url":"https://github.com/gamefriends/MiaPhaser","last_synced_at":"2025-11-20T19:01:01.925Z","repository":{"id":148075394,"uuid":"42290969","full_name":"gamefriends/MiaPhaser","owner":"gamefriends","description":"Flash To Phaser","archived":false,"fork":false,"pushed_at":"2015-09-14T06:13:36.000Z","size":156,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-17T12:33:24.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/gamefriends.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":"2015-09-11T06:11:31.000Z","updated_at":"2021-10-06T17:25:57.000Z","dependencies_parsed_at":"2023-04-07T13:23:36.114Z","dependency_job_id":null,"html_url":"https://github.com/gamefriends/MiaPhaser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gamefriends/MiaPhaser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamefriends%2FMiaPhaser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamefriends%2FMiaPhaser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamefriends%2FMiaPhaser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamefriends%2FMiaPhaser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamefriends","download_url":"https://codeload.github.com/gamefriends/MiaPhaser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamefriends%2FMiaPhaser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285494607,"owners_count":27181443,"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","status":"online","status_checked_at":"2025-11-20T02:00:05.334Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-11-16T01:00:33.531Z","updated_at":"2025-11-20T19:01:01.913Z","avatar_url":"https://github.com/gamefriends.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# MiaPhaser\n\n#Flash To Phaser\n\n\n* I create jsfl tools to easy create UI and Scene in Adobe Flash.\n* The project: [MiaPhaser](https://github.com/gamefriends/MiaPhaser)\n\n# Create project like this:\n\n\n##First:\n- Create fla in Flash, and design the UI and Scene in timeline.\nproject example:\n\n```javascript\nproject\n /flash\n     /game.fla\n /js\n     /phaser.js\n /jsfl\n     /ExportToJS.jsfl\n /res\n     /a.png\n     /b.png\n /src\n     /mia/PhaserExtend.js\n     /Game.js\n     /res.js\n```\n\n##Second:\n* run the ExportToJS.jsfl\n* it will be export the stage resource to PNG in /res\n\n### Edit game config\n\n```javasciprt\n//the defalut stage size as same as Fla publish size\n//set the boot scene and firstScene\nMIA.gameConfig = {\n    stageWidth:MIA.stageDes.stageWidth,\n    stageHeight:MIA.stageDes.stageHeight,\n    bootScene:\"Boot\",\n    firstScene:\"Scene1\"\n};\n```\n\n\n```javascript\n//set the scene\nMIA.startGame = function () {\n    var game = new Phaser.Game(MIA.gameConfig.stageWidth, MIA.gameConfig.stageHeight, Phaser.AUTO, 'game');\n    //----Add Scene\n    game.state.add('Boot', MIA.Boot);\n    game.state.add('Scene1', MIA.Scene1);\n    game.state.add('Scene2', MIA.Scene2);\n    game.state.add('Scene3', MIA.Scene3);\n\n    //fixed logic\n    MIA.gameConfig.bootScene = \"Boot\";\n    MIA.gameConfig.firstScene = \"Scene1\";\n    game.state.start(MIA.gameConfig.bootScene);\n};\n```\n\n##Last\n* edit game logic\n* edit index.html\n* run the game\n\n\n#If you have any suggest, please [@miagame_com](https://twitter.com/miagame_com) , I will do it better.\n\n* User: Jackie Qi / miagame.com\n* Date: 2015/9/9\n* Time: 11:40\n* email: miagame.com@gmail.com\n* website: http://miagame.com\n* twitter: https://twitter.com/miagame_com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamefriends%2FMiaPhaser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamefriends%2FMiaPhaser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamefriends%2FMiaPhaser/lists"}