Skip to content
Open

v1 #20

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified LegendaryAdventure/build/classes/actor/Event.class
Binary file not shown.
Binary file modified LegendaryAdventure/build/classes/core/GameStatus.class
Binary file not shown.
Binary file modified LegendaryAdventure/build/classes/model/Enemy.class
Binary file not shown.
Binary file modified LegendaryAdventure/build/classes/model/Npc.class
Binary file not shown.
Binary file modified LegendaryAdventure/build/classes/states/BagState.class
Binary file not shown.
Binary file modified LegendaryAdventure/build/classes/states/ItemToDisplay.class
Binary file not shown.
Binary file modified LegendaryAdventure/build/classes/states/PlayState.class
Binary file not shown.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 0 additions & 73 deletions LegendaryAdventure/graphic/map/99.tmx

This file was deleted.

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.
Binary file modified LegendaryAdventure/graphic/menu/skrin1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed LegendaryAdventure/graphic/menu/skrin18.png
Binary file not shown.
Binary file modified LegendaryAdventure/graphic/menu/skrin2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LegendaryAdventure/graphic/menu/skrin3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed LegendaryAdventure/graphic/menu/skrin4.png
Binary file not shown.
Binary file removed LegendaryAdventure/graphic/menu/skrin5.png
Binary file not shown.
Binary file removed LegendaryAdventure/graphic/menu/skrin6.png
Binary file not shown.
Binary file removed LegendaryAdventure/graphic/menu/skrin7.png
Binary file not shown.
Binary file removed LegendaryAdventure/graphic/menu/skrin8.png
Binary file not shown.
Binary file removed LegendaryAdventure/graphic/menu/skrin9.png
Binary file not shown.
12 changes: 0 additions & 12 deletions LegendaryAdventure/save/saveALL.txt

This file was deleted.

Binary file removed LegendaryAdventure/save/savesInExel.xlsx
Binary file not shown.
17 changes: 9 additions & 8 deletions LegendaryAdventure/src/actor/CollisionsFields.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ public void isCollision(GameStatus gs, int oldX, int oldY) {
*/
public boolean isNpc(GameStatus gs) {
int iter = 0;

while (LoadEntity.npc.size() > iter) {
if (LoadEntity.recPlayer.intersects(LoadEntity.npc.get(iter))) {
hud.NpcDialog.npc = gs.npc.get(GameStatus.x + GameStatus.y + GameStatus.levelID);
return true;
}
iter++;
}
// while (LoadEntity.npc.size() > iter) {
// if (LoadEntity.recPlayer.intersects(LoadEntity.npc.get(iter))) {
// System.out.println((GameStatus.x / 32) + (GameStatus.y / 32) + GameStatus.levelID);
// hud.NpcDialog.npc = gs.npc.get((GameStatus.x / 32) + (GameStatus.y / 32) + GameStatus.levelID);
// hud.NpcDialog.npc.toString();
// return true;
// }
// iter++;
// }
return false;
}

Expand Down
41 changes: 0 additions & 41 deletions LegendaryAdventure/src/actor/Dialogs.java

This file was deleted.

29 changes: 16 additions & 13 deletions LegendaryAdventure/src/actor/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import org.newdawn.slick.state.StateBasedGame;

/**
*
* Klasa sterująca wszystkimi wydarzenimai w polu gry,
* Poruszanie, kolizje, portale.
*
*
* Klasa sterująca wszystkimi wydarzenimai w polu gry, Poruszanie, kolizje,
* portale.
*
* Nie obsłguje hudu.
*/
public class Event {
Expand All @@ -38,26 +38,29 @@ public void update(GameContainer gc, StateBasedGame sbg, int delta, GameStatus g

//obsługa klawiszy funkcyjnych
Keys.functionalKeyHandler(gc, sbg, input, GameStatus.sprite.heroWidth, GameStatus.sprite.heroHeight);

//poruszenie się w wybranym kierunku
movement.go(input, gs, delta, gs.sprite);

//update prostokąta na graczu
core.LoadEntity.recPlayer = new Rectangle(gs.x, gs.y, gs.sprite.heroWidth, gs.sprite.heroHeight - 5);

int playerCenterX = gs.x + (GameStatus.sprite.heroWidth / 2) - 7;
int playerCenterY = gs.y + (GameStatus.sprite.heroHeight / 2);

//sprawdzanie wejścia w portal
portals.isEnter(gs, playerCenterX, playerCenterY);

//kolizje
collisionFields.isCollision(gs, oldX, oldY);

//npc
if(collisionFields.isNpc(gs)) hud.NpcDialog.displayDialog = true;
else hud.NpcDialog.displayDialog = false;

if (collisionFields.isNpc(gs)) {
hud.NpcDialog.displayDialog = true;
} else {
hud.NpcDialog.displayDialog = false;
}

//moby
//odpowiednia akcja dla mobów
}
Expand Down
7 changes: 2 additions & 5 deletions LegendaryAdventure/src/core/GameStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public class GameStatus extends core.LoadEntity {
* Cząsteczki/Entities na mapie
*/
public HashMap<Integer, model.Npc> npc;
public ArrayList<model.Enemy> enemy;
public ArrayList<model.Item> loot;
public HashMap<Integer, model.Enemy> enemy;
public ArrayList<model.Portal> portalMapList;
/**
*
Expand All @@ -53,7 +52,6 @@ public class GameStatus extends core.LoadEntity {
public static HashMap<Integer, model.Equip> equipInGame;
public static HashMap<Integer, model.Skill> skillsInGame;

//wykania się tylko przy utworzeniu nowej gry
public GameStatus() throws SlickException {
musicOn = true;

Expand Down Expand Up @@ -82,8 +80,7 @@ public GameStatus() throws SlickException {

//na pierwszej mapie nie ma mobów czy npc - więc kolekcje puste
this.npc = gameUtils.NpcData.dataSeeder();
this.enemy = new ArrayList<model.Enemy>();
this.loot = new ArrayList<model.Item>();
this.enemy = gameUtils.EnemyData.enemyData();
this.portalMapList = new ArrayList<model.Portal>();

//wczytanie danych o mapie
Expand Down
Loading