{"id":17299257,"url":"https://github.com/fiorix/cat-o-licious","last_synced_at":"2025-03-17T11:30:45.378Z","repository":{"id":66932496,"uuid":"80373532","full_name":"fiorix/cat-o-licious","owner":"fiorix","description":"Cat game written in Go","archived":false,"fork":false,"pushed_at":"2021-07-15T09:59:18.000Z","size":15555,"stargazers_count":104,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-27T23:08:05.337Z","etag":null,"topics":["game","game-development","go","golang","kids","sdl2","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fiorix.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-29T21:22:15.000Z","updated_at":"2024-05-19T12:17:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0084536-ad55-4725-864d-9ccb8be44b63","html_url":"https://github.com/fiorix/cat-o-licious","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiorix%2Fcat-o-licious","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiorix%2Fcat-o-licious/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiorix%2Fcat-o-licious/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiorix%2Fcat-o-licious/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiorix","download_url":"https://codeload.github.com/fiorix/cat-o-licious/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858057,"owners_count":20359269,"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","game-development","go","golang","kids","sdl2","webassembly"],"created_at":"2024-10-15T11:21:42.652Z","updated_at":"2025-03-17T11:30:40.369Z","avatar_url":"https://github.com/fiorix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cat-o-licious\n\nThis is a simple cat game written in Go, inspired by [flappy](https://github.com/campoy/flappy/). My kids were too excited to see flappy's source code and wanted to design and code their own game, so that's what we did together on a rainy Sunday.\n\nThe original version uses SDL (like flappy) and works on MacOS, Linux and Windows.\n\nIn the `wasm` directory there's an experimental version in [WebAssembly](https://webassembly.org). Most of the code is copied from the SDL version, except for the media handling parts and lack of audio. This allow kids to play the game in a web browser.\n\nTry [playing in browser](https://fiorix.github.io/cat-o-licious) now!\n\n![cat-o-licious](assets/screenshot.png)\n\n### Install\n\nIf you're not here for the code, and just want to play, you can download binary releases from https://github.com/fiorix/cat-o-licious/releases/.\n\n### Keys\n\nArrows left and right, as well as A and D for lateral movement.\nF for full screen, and Q to quit.\n\n### Playing\n\nYou're the cat, and food falls from the top of the screen. The more good stuff you lick the more points you make. The more points you make the more food drops, and it gets really hard to get out of the way of the broccoli, tomatos and pineapples.\n\nMy kids love veggies btw, but they say that cats don't.\n\n### Building from source\n\nTested on MacOS, Linux, and Windows. Requires cgo.\n\nInstall go-sdl2 bindings:\n\n```\ngo get -v -d github.com/veandco/go-sdl2/{sdl,img,mix,ttf}\n```\n\nMore information on [go-sdl2](https://github.com/veandco/go-sdl2#installation). go-sdl2 ships with static SDL2 in `.go-sdl2-libs/` so you don't have to install SDL for your OS.\n\nGet the code, build static binary:\n\n```\ngo get -v -d github.com/fiorix/cat-o-licious\ncd $GOPATH/src/github.com/fiorix/cat-o-licious\ngo build -v -tags static\n```\n\nThe assets directory must be relative to the path of the binary. Assets include fonts, images, and sounds used by the game. The font was copied from flappy, images randomly downloaded from the Internet, and the game soundtrack is my daughter's composition in Garage Band. Go figure.\n\nRun:\n\n```\n./cat-o-licious\n```\n\nThere's a minimal set of command line flags for things like screen resolution, player speed, and FPS.\n\n### WebAssembly\n\nThis version has no external dependencies, but requires a web server.\n\n```\ncd wasm\nmake\n```\n\nThen use a web server to serve the wasm directory and point your browser there.\n\nFor local test/dev you can use server.go in the wasm directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiorix%2Fcat-o-licious","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiorix%2Fcat-o-licious","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiorix%2Fcat-o-licious/lists"}