{"id":18084549,"url":"https://github.com/endel/colyseus-tic-tac-toe","last_synced_at":"2025-04-07T05:08:23.701Z","repository":{"id":49711290,"uuid":"52834212","full_name":"endel/colyseus-tic-tac-toe","owner":"endel","description":"Colyseus 0.16: Turn-based Multiplayer Example","archived":false,"fork":false,"pushed_at":"2025-03-07T13:01:36.000Z","size":8405,"stargazers_count":98,"open_issues_count":1,"forks_count":46,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T04:04:43.807Z","etag":null,"topics":["colyseus","colyseus-sample","multiplayer","pixijs","tic-tac-toe"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/endel.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":"2016-03-01T00:06:35.000Z","updated_at":"2025-03-15T10:56:23.000Z","dependencies_parsed_at":"2025-03-07T13:32:09.890Z","dependency_job_id":null,"html_url":"https://github.com/endel/colyseus-tic-tac-toe","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/endel%2Fcolyseus-tic-tac-toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fcolyseus-tic-tac-toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fcolyseus-tic-tac-toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fcolyseus-tic-tac-toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/colyseus-tic-tac-toe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595334,"owners_count":20963943,"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":["colyseus","colyseus-sample","multiplayer","pixijs","tic-tac-toe"],"created_at":"2024-10-31T15:07:08.481Z","updated_at":"2025-04-07T05:08:23.668Z","avatar_url":"https://github.com/endel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic-Tac-Toe Multiplayer\n\nTurn-based demonstration project using Colyseus.\n\nThis repository has:\n- `server/`: The Colyseus server, with tic-tac-toe room implementation.\n- `javascript-pixi/`: A JavaScript/PixiJS client-side project.\n- `defold/`: A [Defold](https://defold.com/) client-side project.\n\n# Running the server locally\n\nYou'll need two terminal windows open to be able to run this. One for the\nclient, and one for the server:\n\n**Running the server**\n\n```\ncd server\nnpm install\nnpm start\n```\n\n**Important files to have look at**\n\n- [registering room](server/index.ts#L20)\n- [room and state implementation](server/rooms/tictactoe.ts)\n\n## JavaScript / PixiJS\n\nThe JavaScript/PixiJS example uses:\n\n- [colyseus](https://colyseus.io)\n- [pixi.js v4](http://npmjs.com/package/pixi.js)\n- [parcel](http://npmjs.com/package/parcel)\n\n**Running the JavaScript/PixiJS client**\n\n```\ncd javascript-pixi\nnpm install\nnpm start\n```\n\n**Important files to have look at**\n\n- [room connection](javascript-pixi/src/screens/GameScreen.js#L36)\n- [receiving state updates](javascript-pixi/src/screens/GameScreen.js#L39-L63)\n\n## Defold Engine\n\nThe Defold project was made by [Selim Anaç](https://github.com/selimanac/).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fcolyseus-tic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fcolyseus-tic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fcolyseus-tic-tac-toe/lists"}