{"id":14963943,"url":"https://github.com/felipeizolan/phaser-isometric-engine","last_synced_at":"2025-10-25T03:31:04.325Z","repository":{"id":224488598,"uuid":"763385977","full_name":"FelipeIzolan/phaser-isometric-engine","owner":"FelipeIzolan","description":"🥧 phaser-isometric-engine (grid-based)","archived":false,"fork":false,"pushed_at":"2024-02-28T09:55:50.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T05:33:18.959Z","etag":null,"topics":["gamedev","isometric","isometric-game","phaser","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/FelipeIzolan.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":"2024-02-26T07:39:55.000Z","updated_at":"2024-05-29T12:36:51.000Z","dependencies_parsed_at":"2024-09-13T20:58:03.649Z","dependency_job_id":null,"html_url":"https://github.com/FelipeIzolan/phaser-isometric-engine","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"6d20168aff6299dd82a7690572cac9d1dad3b741"},"previous_names":["felipeizolan/phaser-isometric-engine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeIzolan%2Fphaser-isometric-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeIzolan%2Fphaser-isometric-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeIzolan%2Fphaser-isometric-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeIzolan%2Fphaser-isometric-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FelipeIzolan","download_url":"https://codeload.github.com/FelipeIzolan/phaser-isometric-engine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238075247,"owners_count":19412300,"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":["gamedev","isometric","isometric-game","phaser","typescript"],"created_at":"2024-09-24T13:32:21.940Z","updated_at":"2025-10-25T03:31:03.924Z","avatar_url":"https://github.com/FelipeIzolan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🥧 phaser-isometric-engine\n![image](https://github.com/FelipeIzolan/phaser-isometric-engine/assets/80170121/39ff340d-14e1-4523-a55f-d64be22134b2)\n\n## 🚀 Getting Started\n\n```\ngit clone https://github.com/FelipeIzolan/phaser-isometric-engine.git\ncd phaser-isometric-engine\nnpm i \u0026\u0026 npm start\n```\n- Configure the canvas in **main.ts**.\n- Configure the static's field inside grid in **grid.ts** .\n- Add **tiles** and **objects** sprites in **public/tiles** and **public/objects**.\n- Load and create **tiles** and **objects** in **game.ts**.\n\n## 📄 Documentation\n\n**Grid**\n```typescript\ntile_id: number //\u003c- Tile id counter.\nobject_id: number //\u003c- Object id counter.\n\nanims: Set\u003cstring\u003e //\u003c- Set of sprites that has animation.\noffsets: Map\u003cstring, number\u003e //\u003c- Y-offset Map of objects-sprite.\n\nloadTile(src: string, fw?: number, fh?: number) //\u003c- Load the entire sprite or a frame of the sprite. (Tile)\nloadObject(src: string, fw?: number, fh?: number) //\u003c- Load the entire sprite or a frame of the sprite. (Object)\n\ncreate() //\u003c- Create the tiles on the grid.\ncreateTileAnim(id: number, framerate?: number, repeat?: number, repeat_delay?: number) //\u003c- Create an animation. (Tile)\ncreateObjectAnim(id: number, framerate?: number, repeat?: number, repeat_delay?: number) //\u003c- Create an animation. (Object)\n\ngetTile(x: number, y: number) //\u003c- Get tile by x and y.\ngetTileByCartPos(x: number, y: number): Tile | null //\u003c- Get tile by cartesian position.\ngetTileByIsoPos(x: number, y: number): Tile | null //\u003c- Get tile by isometric position.\n\n// Look engine/types.ts\nsetTile(x: number, y: number, tile: OptionalTileSetter) //\u003c- Set tile.\nsetGrid(tiles: OptionalTileSetter[][]) //\u003c- Set grid.\n```\n\n**Tile**\n```typescript\nx: number //\u003c- Grid tile x.\ny: number //\u003c- Grid tile y.\nz: number //\u003c- Grid tile z.\nobject: number | null //\u003c- Grid tile object.\n\nworldX: number //\u003c- Tile world position x.\nworldY: number //\u003c- Tile world position y.\ndepth: number //\u003c- Tile depth.\n\nsetTile(id: number) //\u003c- Set tile by id.\nsetObject(id: number) //\u003c- Set object by id.\nset(setter: OptionalTileSetter) //\u003c- Set (or not) a tile and object.\n```\n\n## 📜 License\n\n- [phaser-isometric-engine](https://github.com/FelipeIzolan/phaser-isometric-engine) - MIT\n- [phaser](https://github.com/phaserjs/phaser) - MIT\n- [vite](https://github.com/vitejs/vite) - MIT\n- [tiny-blocks](https://dani-maccari.itch.io/tiny-blocks-isometric-pixel-assets)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeizolan%2Fphaser-isometric-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipeizolan%2Fphaser-isometric-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeizolan%2Fphaser-isometric-engine/lists"}