{"id":18271789,"url":"https://github.com/mattb/gameplayground","last_synced_at":"2025-04-05T02:30:46.799Z","repository":{"id":577087,"uuid":"209596","full_name":"mattb/gameplayground","owner":"mattb","description":"Learning cocos2d-iphone in public","archived":false,"fork":false,"pushed_at":"2009-06-11T21:29:21.000Z","size":3368,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-05T11:54:13.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattb.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-05-25T12:45:25.000Z","updated_at":"2015-10-21T14:07:10.000Z","dependencies_parsed_at":"2022-07-07T14:21:10.449Z","dependency_job_id":null,"html_url":"https://github.com/mattb/gameplayground","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/mattb%2Fgameplayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattb%2Fgameplayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattb%2Fgameplayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattb%2Fgameplayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattb","download_url":"https://codeload.github.com/mattb/gameplayground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279270,"owners_count":20912855,"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":[],"created_at":"2024-11-05T11:39:30.983Z","updated_at":"2025-04-05T02:30:42.516Z","avatar_url":"https://github.com/mattb.png","language":"Objective-C","readme":"I'm learning cocos2d-iphone and figured I'd show my workings in public. Here's what I've done so far:\n\n1. Started with the Xcode project template\nhttp://www.bit-101.com/blog/?p=2115 and cocos2d from svn (r980)\n\n2. Added graphics \nfrom http://lostgarden.com/2007/05/dancs-miraculously-flexible-game.html\n\n3. Tied Chipmunk physics engine into sprite. \nhttp://github.com/mattb/gameplayground/tree/bace9cb4461232b64841b856d42b0580463deab9\nProgress video: http://flic.kr/p/6qm3e5\n\n4. Made a \"video sprite\" that uses a 30fps animation loaded from a series of PVR-compressed image frames.\nhttp://github.com/mattb/gameplayground/tree/81fc0e46b92b2e895838f9282de73546ff05cca7\nThese were made by extracting frames as jpegs from an MP4 video using mplayer, cropping them to be 128x128 (PVR images must be square and their size a power of two), and converting to PVR format with a command like: /Developer3/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC -o frame1.pvr -f PVR frame1.jpg\n\n5. Added a \"Camera Zoom Action\" that linearly zooms in the camera on a scene over a duration. Use this to zoom in the viewport while a touch is held down.\nhttp://github.com/mattb/gameplayground/tree/9ed6017b47b9b1d87bd5a6cb99f59c549cbd68f5\n\n6. Moved the MainScene behind a MenuScene so I can have more than one experiment in this app.\nhttp://github.com/mattb/gameplayground/tree/204963f402625424da2de40d73b7a5960de41ebc\n\n7. Add some Rock obstacles to bounce off.\nhttp://github.com/mattb/gameplayground/tree/3258629988f93ccfaa92686f5469c15130c94b47\nThese are infinite mass/moment objects fixed in the game world.\nProgress video: http://flic.kr/p/6qW8ke\n\n8. Add sound support using CocosDenshion. \nhttp://github.com/mattb/gameplayground/tree/b6e70835be399d4e78bcfbebeb1eaeccbb9253cd\nfrom http://groups.google.com/group/cocos2d-iphone-discuss/files\nTie sounds into collision callbacks in physics engine - one sound for player versus rock, one for player versus wall.\nSounds taken from http://www.freesound.org/packsViewSingle.php?id=1497\n\n9. Add a particle emitter to the player sprite. Make it track the player location.\nhttp://github.com/mattb/gameplayground/tree/acb93703c43791fed23e5753c0444ac7248a8e0f\n\n10. Try out AtlasAnimation with a single PVRTC source (using Muybridge's classic horse photos). \nhttp://github.com/mattb/gameplayground/tree/17e181ba00f8ad449acbc879dd414479e4962135\nAssembled using RMagick and then converted to PVR format using texturetool (ruby code in composite_atlas_grid.rb)\n\n11. Add a new scene to play with bezier paths controlling sprites following finger touches, Flight Control style.\nhttp://github.com/mattb/gameplayground/tree/4bb19071e54454eea2ec7791bfd3dc3299719577\nFirst attempt uses a ringbuffer of the last ten touches and timestamps, and uses a regular timer tick to schedule BezierTo actions. Works but is a bit wobbly.\n\n12. Add a new scene to play with the Freepixel sprite sheet from http://www.squidi.net/pixel/char.default.php\nhttp://github.com/mattb/gameplayground/tree/d4dc28e4cadfff3dfd1804cd7f05048dc170fd80\n\n13. Make some space invaders from a sprite sheet found via google image search (sorry!)\nhttp://github.com/mattb/gameplayground/tree/67f66b7a1843bad8fa202723e076ce32fcbfbfc1\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattb%2Fgameplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattb%2Fgameplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattb%2Fgameplayground/lists"}