{"id":23300700,"url":"https://github.com/gmh-code/pk2","last_synced_at":"2025-08-22T05:33:17.517Z","repository":{"id":209687896,"uuid":"724583304","full_name":"GMH-Code/PK2","owner":"GMH-Code","description":"Play the Pekka Kana 2 platform game in your browser - supports mobile devices and desktop systems","archived":false,"fork":false,"pushed_at":"2024-12-19T18:20:32.000Z","size":6924,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-19T19:26:41.312Z","etag":null,"topics":["2d-game","2d-games","browser-game","browser-games","cpp","emscripten","emscripten-port","javascript","multi-touch","multitouch","pekkakana2","pk2","platform-game","platform-games","platformer","wasm","wasm-game","webassembly","webassembly-game","webassembly-games"],"latest_commit_sha":null,"homepage":"https://pk2.m-h.org.uk","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GMH-Code.png","metadata":{"files":{"readme":"README-old.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-28T11:31:02.000Z","updated_at":"2024-12-19T18:20:39.000Z","dependencies_parsed_at":"2024-12-19T19:37:19.925Z","dependency_job_id":null,"html_url":"https://github.com/GMH-Code/PK2","commit_stats":null,"previous_names":["gmh-code/pk2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GMH-Code%2FPK2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GMH-Code%2FPK2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GMH-Code%2FPK2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GMH-Code%2FPK2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GMH-Code","download_url":"https://codeload.github.com/GMH-Code/PK2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230561024,"owners_count":18245336,"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":["2d-game","2d-games","browser-game","browser-games","cpp","emscripten","emscripten-port","javascript","multi-touch","multitouch","pekkakana2","pk2","platform-game","platform-games","platformer","wasm","wasm-game","webassembly","webassembly-game","webassembly-games"],"created_at":"2024-12-20T09:18:30.051Z","updated_at":"2024-12-20T09:18:30.927Z","avatar_url":"https://github.com/GMH-Code.png","language":"C++","readme":"![pekka](res/gfx/manual/pekka.png?raw=true)\n\nCopyright (c) 2003 Janne Kivilahti\n\nPorted to SDL by Samuli Tuomola (2010)\nhttps://github.com/stt/pk2\n\nTranslated and ported to SDL2 by Danilo Lemos (2016-2020)\n\n\"Pekka Kana 2 (Pekka the Rooster 2) is a jump 'n run game made in the spirit of old classic platformers such as Super Mario, Sonic the Hedgehog, Jazz Jackrabbit, Super Frog and so on.\"\nhttp://kiwi.mbnet.fi/pistegamez/pk2/\n\nThis repository contains the source code and resource files for the game Pekka Kana 2 created by Janne Kivilahti in 2003.\nThe source code was released by the original author on a forum\n[thread](http://pistegamez.proboards.com/thread/543/level-editor-source-codes-available).\n\nSince then a lot of things changed, including an initial SDL port by Samuli Tuomola in 2010 and then the SDL2 port, bug fixes,\nand code redesign by Danilo Lemos (2016-2020).\n\nThis game was tested on Windows, GNU/Linux and Android.\n\n# Binary distibution\n\nSee the game's page at [Itch.io](https://danilolc.itch.io/pekka-kana-2).\n\n# Compiling\n\n### Windows\nTo compile on Windows, you will need the mingw c++ compiler with SDL2, Zip and Lua libs.\nThere is a Makefile on `/mingw/i686/` that defines the needed stuff and include `/mingw/mingw.mk`.\nEdit the `/mingw/i686/Makefile` as you need and run Make on this directory.\n\n### Debian\nTo compile **Pekka Kana 2** into Debian GNU/Linux based distributions,\nyou need the **SDL2**, **SDL2_image**, **SDL2_mixer**, **Zip** and **Lua** libraries installed on\nthe system. To get everything you need, just run the following command on the terminal:\n\n    $ apt install build-essential libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libzip-dev liblua5.4-dev\n\nThen run the \"**make**\" command inside the \"**Pekka Kana 2**\" directory.\n\n    $ make\n\nThe PK2 binary will be in \"**bin/**\" directory.\n\n    $ ./bin/pekka-kana-2\n\nTo make the removal, within the compiled directory, execute this command:\n\n    $ make clean\n\n### Android\nRun `git submodule init` then `git submodule update` to get the SDL libs. Then `./gradlew build`\non `android/` with the SDK and the NDK installed may work.\n\n### macOS - not tested\nUse [Homebrew](https://brew.sh/) to install SDL2 packages:\n```\nbrew install sdl2 sdl2_gfx sdl2_image sdl2_mixer\n```\nNow just clone the code and run `make` on pk2 directory, the PK2 binary will be in `bin/` directory.\n\n# User made episodes:\nhttp://mapstore.the.cz/\nTo add a new episode, just download the zip and put it inside \"mapstore/\" on local data.\n\nThe game can be started with the \"dev\" argument to enable the\ncheats and \"test\" following by the episode and level to\nopen directly on the level.\n\nThis example starts the level13.map on dev mode:\n```\n./pekka-kana-2 dev test \"rooster island 2/level13.map\"\n```\n\n# FIXMEs\n* Android import zip, delete zip, zip file on save (can't load save with no zip)\n* New graphics and controllers menu\n* SDL_QUIT on Android\n* Autosave settings option, ask when overwriting save, select save on new game\n* Low volume sounds not played on low volume - music playing on volume 0\n* Jump frames when fps is low\n* Better sound quality\n\n# PLANS\n* Loading languages from zip files and `all.txt`\n* Speed-run mode (frame counter, ghost)\n* Better documentation\n* Implement new layer on .map (regions)\n* Find image (load .bmp or .png)\n* New weather\n* High resolution mode\n\n# V1.5\n* 64bit release\n* Better error handling (remove PK2_Error)\n* Multi line info sign\n* New HQx (OpenGL)?\n* OpenGL ES\n* Edit controller position\n* Faster item tab\n* Lua screen\n* Chick system","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmh-code%2Fpk2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmh-code%2Fpk2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmh-code%2Fpk2/lists"}