Giter Site home page Giter Site logo

dressupgeekout / pk2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danilolc/pk2

0.0 0.0 0.0 53.86 MB

Pekka Kana 2, a platformer game

Home Page: http://pistegamez.net/game_pk2.html

License: MIT License

C++ 97.98% Java 0.27% Makefile 0.94% GLSL 0.81%

pk2's Introduction

pekka

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.

Binary distibution

See the game's page at Itch.io.

Compiling

Windows

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.

Debian

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

Android

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.

macOS - not tested

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.

User made episodes:

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"

FIXMEs

  • Android import zip, delete zip, zip file on save (can't load save with no zip)
  • New graphics and controllers menu
  • SDL_QUIT on Android
  • Autosave settings option, ask when overwriting save, select save on new game
  • Low volume sounds not played on low volume - music playing on volume 0
  • Jump frames when fps is low
  • Better sound quality

PLANS

  • Loading languages from zip files and all.txt
  • Speed-run mode (frame counter, ghost)
  • Better documentation
  • Implement new layer on .map (regions)
  • Find image (load .bmp or .png)
  • New weather
  • High resolution mode

V1.5

  • 64bit release
  • Better error handling (remove PK2_Error)
  • Multi line info sign
  • New HQx (OpenGL)?
  • OpenGL ES
  • Edit controller position
  • Faster item tab
  • Lua screen
  • Chick system

pk2's People

Contributors

danilolc avatar felis-catus avatar stt avatar licaon-kter avatar ravmahov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.