Copyright (c) 2003 Janne Kivilahti
Ported to SDL by Samuli Tuomola (2010) https://github.com/stt/pk2
Translated and ported to SDL2 by Danilo Lemos (2016-2020)
"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." http://kiwi.mbnet.fi/pistegamez/pk2/
This repository contains the source code and resource files for the game Pekka Kana 2 created by Janne Kivilahti in 2003. The source code was released by the original author on a forum thread.
Since then a lot of things changed, including an initial SDL port by Samuli Tuomola in 2010 and then the SDL2 port, bug fixes, and code redesign by Danilo Lemos (2016-2020).
This game was tested on Windows, GNU/Linux and Android.
See the game's page at Itch.io.
To compile on Windows, you will need the mingw c++ compiler with SDL2, Zip and Lua libs.
There is a Makefile on /mingw/i686/
that defines the needed stuff and include /mingw/mingw.mk
.
Edit the /mingw/i686/Makefile
as you need and run Make on this directory.
To compile Pekka Kana 2 into Debian GNU/Linux based distributions, you need the SDL2, SDL2_image, SDL2_mixer, Zip and Lua libraries installed on the system. To get everything you need, just run the following command on the terminal:
$ apt install build-essential libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libzip-dev liblua5.4-dev
Then run the "make" command inside the "Pekka Kana 2" directory.
$ make
The PK2 binary will be in "bin/" directory.
$ ./bin/pekka-kana-2
To make the removal, within the compiled directory, execute this command:
$ make clean
Run git submodule init
then git submodule update
to get the SDL libs. Then ./gradlew build
on android/
with the SDK and the NDK installed may work.
Use Homebrew to install SDL2 packages:
brew install sdl2 sdl2_gfx sdl2_image sdl2_mixer
Now just clone the code and run make
on pk2 directory, the PK2 binary will be in bin/
directory.
http://mapstore.the.cz/ To add a new episode, just download the zip and put it inside "mapstore/" on local data.
The game can be started with the "dev" argument to enable the cheats and "test" following by the episode and level to open directly on the level.
This example starts the level13.map on dev mode:
./pekka-kana-2 dev test "rooster island 2/level13.map"
all.txt