{"id":16223135,"url":"https://github.com/zerebos/blockcatcher","last_synced_at":"2025-03-19T11:31:59.313Z","repository":{"id":85084422,"uuid":"54834698","full_name":"zerebos/BlockCatcher","owner":"zerebos","description":"This is a WebGL game in which you must catch as many blocks as possible until time runs out.","archived":false,"fork":false,"pushed_at":"2023-07-29T20:43:49.000Z","size":139,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T11:08:31.115Z","etag":null,"topics":["game","javascript","opengl","webgl","webgl-game","zackrauen-com"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zerebos.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-27T15:23:30.000Z","updated_at":"2024-06-19T01:07:46.000Z","dependencies_parsed_at":"2023-11-24T00:15:12.157Z","dependency_job_id":null,"html_url":"https://github.com/zerebos/BlockCatcher","commit_stats":null,"previous_names":["zerebos/blockcatcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerebos%2FBlockCatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerebos%2FBlockCatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerebos%2FBlockCatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerebos%2FBlockCatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerebos","download_url":"https://codeload.github.com/zerebos/BlockCatcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989109,"owners_count":20379648,"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":["game","javascript","opengl","webgl","webgl-game","zackrauen-com"],"created_at":"2024-10-10T12:17:31.195Z","updated_at":"2025-03-19T11:31:59.022Z","avatar_url":"https://github.com/zerebos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlockCatcher\nThis is a WebGL game in which you must catch as many blocks as possible until time runs out. 250 points is considered a win.\n\n## Demo:\n\nYou can play a demo of the game at http://rauenzi.github.io/BlockCatcher/\n\n## Controls:\n\n\tMove Player Bar Left/Right - Left/Right Arrow Keys\n\tStart Game - SPACE\n\t\t\n\tRed Blocks - 1 points\n\tBlue Blocks - 5 points\n\tWhite Blocks - 25 points\n\nPlaying this game is really simple, you play as the green bar at the bottom of the screen. The objective\nis to catch blocks with the player bar before they fall off the screen using the left and right arrowkeys. To start press the\nspacebar, youll notice you have a total of 60 seconds to gain as many points as possible before the game ends. There are 3\ntypes of blocks youll encounter; a red block worth 1 point, a blue block worth 5 points, and a white block worth 25 points.\nThe red blocks are big and slow, the blue blocks are medium sized and traval at a moderate pace, while the white blocks are\nsmall and move quickly. To win this game, you have to accumulate at least 250 points before the time runs out. Once the game\nis over you have the ability to restart by repressing the spacebar.\n\n## Description of implementation:\n\nTo create this game we used classes to implement our player bar as well as the blocks. This allowed us to\nkeep track of their vertices' position as well as color, speed, size, and point value. After the game is started, a timer\ncounts down from 1 minute and a block is generated every second that passes. Interation between the player bar and block\nis determined when the lower 2 vertices of a block are below the the y value of the player bar's top vertices and within\nthe x values of the player bar. if interaction is successful, the points will be added to the score and the block will be\ndeleted. Even without interaction, the blocks will continue to fall below the canvas before they get deleted at a certain\nheight. Movement of the blocks and player bar is controlled by a translation matrix within the vertex shader and each block\ntype has its own fragment shader.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerebos%2Fblockcatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerebos%2Fblockcatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerebos%2Fblockcatcher/lists"}