GithubHelp home page GithubHelp logo

wiledion / kani-libgdx Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 41.13 MB

An african RPG-like coded with the framework LibGDX

License: BSD 3-Clause "New" or "Revised" License

Groovy 8.41% Java 85.27% JavaScript 0.05% CSS 6.27%

kani-libgdx's Introduction

Kani

Kani is a 2D game written with the framework LibGDX in Java. It wants to promote African culture and history. The gameplay is inspired from hack and slash and RPG games.

Advancement

The project was firstly developed with the library Slick2d which is not still supported by his developers. It has been rewritten with LibGDX, and some features has been added to allow a separated level designing. Data for maps and levels can be loaded from a file.

Only the desktop version is developed.

How to edit a Map file .kni

A map file is organised as follows :

mapheight = XX   	// The height of the map in number of tile
mapwidth = XX		// The width of the map in number of tile
tileheight = XX		// The height of a tile
tilewidth = XX		// The width of a tile
nblayer = XX			// The number of layer


// For every layer, 1 line contains the name of the layer, and the 
// others contain the ID of the tile corresponding, placed as on 
// the map. The tile ID is composed of three digits/characters. A 
// number corresponds to the order they appear in the tilesheets,
// from the top left to the bottom right, and the order of the 
// files tilesheets. "___" is used for a blank tile, and "aaa" is
// a special ID which generates a tree on the map. Others shortcuts
// can be added to facilitate game mapping.

layer ground
001 001 001 001 001 001
001 001 001 001 002 001
001 001 001 001 001 003
003 003 003 003 003 003
001 001 001 001 001 003

// Then we can define a property for the different tiles. A first 
// line contains the properties and the values to assign. The next
// line contains all the tile ID who will be affected by this 
// property.

blocked = true
002 003

An example is available in "android/assets/data/maps"

How to edit a Level file .kni

Several parameters can be defined for the level :

name_level // The name of the level
intro_msg // The introduction message, printed with the class MessageBox
end_msg 	// The message of the end, in case of success of the level
dead_msg 	// The message in case of death of the player
current_map = // The path of the map file
zones = // Define a specific region in the map -- Useless
ennemis  	// Defines the enemies present in the map, is written "x-y"
		// with x = the race of the monster : 	1 - Statue
		//					2 - Bird
		// y = the number of enemies of the specified race

An example is available in android/assets/data/maps

Media resources

Sprites are extracted from The Legend of Zelda: A Link to the Past Super NES) and Pokémon Emerald (Game Boy Advance). Thanks to Wio for the sprite of Kani and the statue.

License

Copyright by Bonzi Wilédio, 2012, Licensed under the BSD New license.

kani-libgdx's People

Contributors

wiledion avatar

Stargazers

 avatar

Watchers

 avatar  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.