Skip to content

scarlettkuro/kranka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

===we are using component inheritance pattern===
Example:

class Hero implements Drawable, Positionable {
	Drawable drawable = new _SpriteDrawable();
	Positionable positionable = new _RowPositionbale();
	
	//call the Drawable methods from drawable object
	//like:
	Array<TextureRegion> getFrame(float delta) {
		drawable.getFrame(float delta);
	}
	
	...
	
	//call the Positionable methods from positionable object
	
	...
	
}

================================================
What is done for now

Intefaces:

Drawable (interface allow to get textures of objects)
Positionable (interface allow to set location of the objects in one-dimesional space, collision detection)
Speakable (dialog interface)

Components: 

_SpriteDrawable implements Drawable (sprite animation class)
_OneDimPositionbale implements Positionable 
_NPCSpeakable implements Speakable (n-variant simple dialog with linking next phrase)


Command system and controls

Command interfaces: 
GameCommander (game proccess)

CommandProccessors: input -> command

_GameCommandProccessor (game proccess)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages