-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve alpha demo & some fixes (#53)
* feat: auto generate description (onRightClick, initial) * feat: add świstoklik * chore: remove redundant _XD bushes * fix: correct answer check * fix: tests * fix: quick fixes for numerous bugs & battle action * feat: add new assets * feat: add Goblin & co.
- Loading branch information
Showing
23 changed files
with
101 additions
and
57 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 5 additions & 15 deletions
20
configurations/demo-config-1/locations/location-1/objects/object-3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
{ | ||
"tag": "object-3", | ||
"assetPath": "assets/zombie.png", | ||
"assetPath": "assets/bandit.png", | ||
"type": "dialog", | ||
"onLeftClick": { | ||
"tag": "quiz", | ||
"type": "quiz", | ||
"questions": [ | ||
{ | ||
"question": "Programy komputerowe chronione są: ", | ||
"a": "prawem autorskim, co wyklucza możliwość uzyskania ochrony patentowej przez program komputerowy", | ||
"b": "prawem autorskim, a w pewnych przypadkach mogą uzyskać ochronę patentową", | ||
"c": "jak utwory literackie", | ||
"d": "nie są chronione", | ||
"correct": "b" | ||
} | ||
], | ||
"reward": 5 | ||
"tag": "battle", | ||
"type": "battle", | ||
"reward": 10 | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
configurations/demo-config-1/locations/location-1/objects/object-6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
configurations/demo-config-1/locations/location-2/objects/object-6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ | ||
"tag": "object-6", | ||
"onLeftClick": {"tag": "action", "type": "dialogue", "statements": ["A very old chest."], "assetPath": "assets/chest.png"} | ||
"onLeftClick": { | ||
"tag": "action", | ||
"type": "dialogue", | ||
"statements": [ | ||
"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Little Blind Text didn’t listen." | ||
], | ||
"assetPath": "assets/goblin.png" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
configurations/demo-config-1/locations/location-2/objects/object-8.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"tag": "object-8", | ||
"assetPath": "assets/bunny.png", | ||
"onLeftClick": { | ||
"tag": "action-tag", | ||
"type": "location-change", | ||
"target-location": "location-3", | ||
"target-position": { "row": 3, "col": 5 } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
configurations/demo-config-1/locations/location-3/objects/object-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"tag": "object-1", | ||
"assetPath": "assets/knight.png", | ||
"onLeftClick": {"tag": "actiontag", "type": "game-end", "description": "You won, congratulations!"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
package io.rpg.model.actions; | ||
|
||
import io.rpg.Game; | ||
import io.rpg.model.object.GameObject; | ||
import io.rpg.model.object.Player; | ||
|
||
public class BattleAction { | ||
private final GameObject opponent; | ||
private final int reward; | ||
public class BattleAction implements Action { | ||
private GameObject opponent; | ||
private final int reward; | ||
|
||
public BattleAction(GameObject opponent, int reward) { | ||
this.opponent = opponent; | ||
this.reward = reward; | ||
} | ||
public BattleAction(int reward) { | ||
this.reward = reward; | ||
} | ||
|
||
public GameObject getOpponent() { | ||
return opponent; | ||
} | ||
public void setOpponent(GameObject object) { | ||
this.opponent = object; | ||
} | ||
|
||
public int getReward() { | ||
return reward; | ||
} | ||
public GameObject getOpponent() { | ||
return opponent; | ||
} | ||
|
||
public int getReward() { | ||
return reward; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters