{"id":13525379,"url":"https://github.com/cheshire137/blicblock-js","last_synced_at":"2025-04-01T04:32:00.442Z","repository":{"id":20961030,"uuid":"24249730","full_name":"cheshire137/blicblock-js","owner":"cheshire137","description":"A JavaScript implementation of the Blicblock game from The Sims 4.","archived":true,"fork":false,"pushed_at":"2018-04-14T19:45:19.000Z","size":4244,"stargazers_count":16,"open_issues_count":15,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T13:43:38.282Z","etag":null,"topics":["angularjs","game","javascript","rails","tetromino","the-sims"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"FokkeZB/J2M","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cheshire137.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-20T00:28:00.000Z","updated_at":"2025-02-02T22:21:56.000Z","dependencies_parsed_at":"2022-07-23T07:46:31.044Z","dependency_job_id":null,"html_url":"https://github.com/cheshire137/blicblock-js","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/cheshire137%2Fblicblock-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheshire137%2Fblicblock-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheshire137%2Fblicblock-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheshire137%2Fblicblock-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheshire137","download_url":"https://codeload.github.com/cheshire137/blicblock-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586087,"owners_count":20801025,"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":["angularjs","game","javascript","rails","tetromino","the-sims"],"created_at":"2024-08-01T06:01:18.171Z","updated_at":"2025-04-01T04:31:59.876Z","avatar_url":"https://github.com/cheshire137.png","language":"CSS","funding_links":[],"categories":["Puzzle","Browser-Based"],"sub_categories":["Puzzle"],"readme":"# BlicblockJS\n\nBlicblock is a game your Sims in The Sims 4 can play on the computer. I thought\nit would be fun to recreate the game. Our Sims shouldn't have all the fun!\n\n![BlicblockJS gameplay](https://raw.githubusercontent.com/cheshire137/blicblock-js/master/blicblockjs-screenshot-1.png)\n\nBlickblockJS is built using AngularJS, Bower, Yeoman, and Twitter Bootstrap.\n\n## Blicblock Notes from The Sims 4\n\n- Looks like Tetris meets Bejeweled: colored blocks fall down. Combine them into a tetromino and the tetromino disappears.\n- Disappearing tetrominos cause blocks on top of them to fall, which can cause cascades of disappearing tetrominos.\n- If the screen fills up and no more blocks can fall, game over.\n- Five blocks across, seven tall\n- Colors: magenta, yellow, green, blue. *Note:* since the game board is five blocks wide, to make the game have any challenge at all, there need to be \u003e5 colors of blocks.\n- Preview of next two blocks shown\n\n## How to Run\n\nYou need Ruby, RubyGems, Bundler, Node.js, and PostgreSQL.\n\n1. `bundle`\n1. Create a `blicblockjs` role in PostgreSQL:\n\n        % psql\n        psql (9.2.1)\n        Type \"help\" for help.\n\n        sarah=# CREATE USER blicblockjs WITH PASSWORD 'password';\n        CREATE ROLE\n        sarah=# ALTER USER blicblockjs WITH SUPERUSER;\n        ALTER ROLE\n\n    Or via command line: `createuser -P -s -e blicblockjs`\n\n1. `bundle exec rake db:create db:migrate db:seed`\n1. `cd client/`\n1. `npm install`\n1. `npm install -g bower`\n1. `bower install`\n1. `npm install -g grunt-cli`\n1. `grunt serve` to watch for file changes and to launch the Rails server.\n\n## How to Test\n\n### Rails API\n\n1. `RAILS_ENV=test bundle exec rake db:create db:migrate`\n1. `RAILS_ENV=test bundle exec rspec`\n\n### AngularJS\n\n1. `cd client/`\n1. `npm install`\n1. `grunt test`\n\n## How to Deploy to Heroku\n\n1. Create a new Heroku app in your browser.\n1. `git remote add heroku git@heroku.com:yourherokuapp.git`\n1. `heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git`\n1. `git push heroku master`\n1. `heroku addons:add heroku-postgresql`\n1. `heroku addons:add pgbackups`\n1. `heroku run rake db:migrate`\n1. `heroku ps:scale web=1`\n1. `heroku config:add NODE_ENV=production`\n\n### How to Backup Heroku PostgreSQL Database\n\n    heroku pg:backups capture\n    curl -o latest.dump `heroku pg:backups public-url`\n\nTo load the dump file locally:\n\n    pg_restore --verbose --clean --no-acl --no-owner -h localhost -U blicblockjs -d blicblockjs_development latest.dump\n\n## BlicblockJS Mentions\n\n- [The Sims 4: Play \"BlicBlock\" On Your Browser - SimsVIP](http://simsvip.com/2014/10/03/the-sims-4-play-blicblock-on-your-browser/)\n- [The Sims 4 RU - VK](http://vk.com/thesims4ru?w=wall-31385407_119374)\n- [The Sims 4: Играем, как симы! - RoleSim](http://rolesim.com/news/sims-4-igraem-kak-simy)\n- [Znacie grę BlicBlock z The Sims 4? - Sims True Life](http://simstruelife.pl/News:Znacie_gre_BlicBlock_z_The_Sims_4_04.10.14)\n- [le jeu Sims - Blic Block - débarque chez vous! - SimCookie](http://www.simcookie.com/2014/10/06/jeu-sims-blic-block-debarque-chez/)\n- [Blicblock, playable version of game depicted in The Sims 4 - RunJumpDev](https://groups.google.com/forum/m/#!topic/runjumpdev/Wn3W625CG34)\n- [Play the game your sims playing - Speak No Evil Tumblr](http://brial-immortelle.tumblr.com/post/99095876514/play-the-game-your-sims-playing-its-amazing)\n\n## Blicblock in The Sims 4\n\n[Video of my Sim playing Blicblock](https://www.youtube.com/watch?v=NEiNfe6uaso)\n\n![The Sims 4 Blicblock play](https://raw.githubusercontent.com/cheshire137/blicblock-js/master/client/app/images/blicblock-screenshot-1.png)\n\n![The Sims 4 Blicblock game over](https://raw.githubusercontent.com/cheshire137/blicblock-js/master/client/app/images/blicblock-screenshot-2.png)\n\n## Screenshots of BlicblockJS\n\n![BlicblockJS paused](https://raw.githubusercontent.com/cheshire137/blicblock-js/master/blicblockjs-screenshot-2.png)\n\n![BlicblockJS game over](https://raw.githubusercontent.com/cheshire137/blicblock-js/master/blicblockjs-screenshot-3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheshire137%2Fblicblock-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheshire137%2Fblicblock-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheshire137%2Fblicblock-js/lists"}