• Register

DUSK is an upcoming indiegame, in which you have to manage a peaceful farm. You have to grow crops, build shacks and earn money. But maybe it isn't THAT peaceful...

Post news Report RSS DUSK - General Improvements, Bugfixes and GUI Update

DUSK - General Improvements, Bugfixes and GUI Update

Posted by on

title 2

[Latest Version: 20.04.2017; API: 20.04.2017]

General Improvements, Bugfixes and GUI Update


20170420160142 1


Improvements:

- No Lags when placing Buildings on Float X-Positions

- Better Enemy-Warning-UI

- Modding Error UI

- New Modding API features


//Classnames: Messaging, DBuilding, GameTime, Player, Inventory, Enemy


//Enemy:

 public enum EnemyTypes {T1,T2} //Enemy Type (At the moment only T1 avaiable)

 public void setName(string s) //sets Enemy Name

 public string getName() //gets Enemy Name

 public void setDamage(float i) //sets Enemy Damge per hit

 public float getDamage() //gets Enemy Damage per hit

 public void setType(EnemyTypes ET) //sets Enemy Type

 public EnemyTypes getType() //gets Enemy Type

 public void setSpeed(float s) //sets Enemy Speed

 public float getSpeed() //gets Enemy Speed

 public void Spawn(string side, int amount, Enemy e) //Spawns Enemy (side must be "left" or "right")e


//Messaging:

 public void sendTitle(string s)  //Fades in/out big Text on screen

 public void sendActionBar(string s) //Fades in/out smaller Text on screen (Under Title Text)


//DBuildingClass:

 public Types {Farm,Forge,Barn,Wall,Tower,Lab}
 //Lab not Implemented yet

 public string getType(float x) //returns BuildingType at Position X (null if empty);

 public void setType(float xPos, int Type) // sets Building Type

 public void delType(float xPos, GameObject obj) // delets Building

 public Hashtable getBuildings() // returns Hashtable of all Buildings


//GameTime Class:

 public float getTime() // returns Time of Day

 public void setTime(int time) // sets Time of Day

 public void addTime(int time) // adds int x to Time of Day

 public void delTime(int time) // removes int x from Time of Day

 public void setDay(int day) // sets Daycount

 public int getDay() // get Daycount


//Inventory Class:

 public Types {Wood,Stone,Metal,Ammo,Coins}

 public void setAmount(Types s, int amount) // sets amount of specific Item

 public void addAmount(Types s, int amount) // adds amount to specific Item

 public void delAmount(Types s, int amount) // deletes amount to specific Item

 //Instead of Type S you can use an Integer (0-4) to specifiy the Item


//Player Class:

 //Player.name is no longer public

 public GameObject gObj; // Player Object

 public Player getPlayer(string pName) // gets Player by Name (Default: "Player")

 public float getPos() // gets Playerposition

 public void setPos(float x) // sets Playerposition

 public string getName() // gets Playername

 public void setName(string s) // sets Playername

 public int getNID() // gets NetworkID

 public void setNID(int id) // sets NetworkID

 public int getSpeed() // gets Speed

 public void setSpeed(int s) // sets Speed
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: