{"id":13411388,"url":"https://github.com/tarasyarema/tensorblock","last_synced_at":"2026-01-26T00:12:14.435Z","repository":{"id":110760728,"uuid":"153827165","full_name":"tarasyarema/tensorblock","owner":"tarasyarema","description":"Crazy multi-timeline platform game.","archived":false,"fork":false,"pushed_at":"2018-10-29T15:48:19.000Z","size":721,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-31T20:45:40.733Z","etag":null,"topics":["blockchain","express","game","mongoose","tensorflow","threejs"],"latest_commit_sha":null,"homepage":"http://tensorblock.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarasyarema.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":"2018-10-19T18:44:16.000Z","updated_at":"2022-12-01T21:55:44.000Z","dependencies_parsed_at":"2023-03-14T00:15:36.041Z","dependency_job_id":null,"html_url":"https://github.com/tarasyarema/tensorblock","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/tarasyarema%2Ftensorblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarasyarema%2Ftensorblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarasyarema%2Ftensorblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarasyarema%2Ftensorblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarasyarema","download_url":"https://codeload.github.com/tarasyarema/tensorblock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243618600,"owners_count":20320264,"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":["blockchain","express","game","mongoose","tensorflow","threejs"],"created_at":"2024-07-30T20:01:13.330Z","updated_at":"2026-01-26T00:12:14.405Z","avatar_url":"https://github.com/tarasyarema.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# TENSORBLOCK.js\n\n## Install and run\n\n1. Clone the repo and install the dependencies.\n\n```\ngit clone https://github.com/tarasyarema/tensorblock.git\ncd tensorblock\nnpm install\n```\n\n2. If you want to run it **locally** you'll need to install [MongoDB](https://www.mongodb.com/) so go [here](https://docs.mongodb.com/manual/administration/install-community/) to do so. \nAfter installing MongoDB create a folder `/data`, start and run it **in the repo directory**.\nAfter this the database should be running fine.\n```\nmkdir data\nsudo service mongod start\nmongod --db_path=data\n```\n\n3. Run the app. By default the server is listening on port 3000. Go to [http://localhost:3000](http://localhost:3000) to test the app in your browser.\n```\nnode index.js\n```\n\n## Request new levels\n\nCreate a new file named `/static/js/levels/file\u003cid\u003e.js`. The format is the next:\n\n```javascript\nconst level\u003cid\u003e = {\n\t\"platforms\": [[]],\n\t\"portals\": [[]],\n\t\"exit\": [],\n\t\"init\": [],\n\t\"hor_bar\": [],\n\t\"ver_bar\": [],\n\t\"spikes_lever\": [],\n    \t\"id\": \u003cid\u003e\n};\n```\n\n### `platforms` : platforms.\nArray of all the platforms in the level. The format of the platform is `[x,y,w]` where `x,y` is the postion of the platform and `w` is the width.\n\n### `portals` : temporal portals.\nSame format as `platforms`.\n\n### `exit` : exit (finish) portal.\nThe format is `[x,y]` of the position.\n\n### `init` : initial position.\nSame format as `exit`.\n\n### `hor_bar` : horizontal bars.\nArray of the horizontal bars that can be moved by the player. Same format as `platforms`.\n\n### `ver_bar` : vertical bars.\nArray of the vertical bars that can be moved by the player. Same format as `platforms`.\n\n### `spikes_lever` : `null`\nArray of the spike platforms. **Not yet implemented**.\n\n### `id` : id of the level.\nIt could be any type but currently we are using integers.\n\nWe are working on creating some test for new levels. Before that we will check them manually and then merge them to master.\n\n## Dev\n\n### The `.env` file\n\n```\nMONGOLAB_URI=mongod://\u003cuser\u003e:\u003cpassword\u003e@host:port/database_name\nNODE_ENV=\u003cstate\u003e\n```\nIf `NODE_ENV=development` the server will use a `mongodb://localhost:27017/hack` database, so you should have a mongo server running.\nIf `NODE_ENV=production` the server will use the production database as it uses the page [tensorblock.tech](http://tensorblock.tech), if you have access to it. \n```bash\nNODE_ENV=production node index.js\n```\n\n### Deploy\n\nThe game is deployed using Heroku and mLab.\n\n## TODO\n\n- [ ] Tests for levels [#issue3](https://github.com/tarasyarema/tensorblock/issues/3)\n- [ ] Level maker/editor [#issue4](https://github.com/tarasyarema/tensorblock/issues/4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarasyarema%2Ftensorblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarasyarema%2Ftensorblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarasyarema%2Ftensorblock/lists"}