Skip to content

Conversation

@co012
Copy link
Collaborator

@co012 co012 commented Apr 5, 2022

Description

Checklist

  • Included code to test these changes
  • Updated Jira

@co012 co012 marked this pull request as ready for review April 5, 2022 13:36
stage.setTitle("Hello!");
stage.setScene(scene);
stage.show();
Image someMap = new Image("C:\\Dev\\rpg-io\\assets\\map.png");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zmień na ścieżki względne

import java.net.URL;
import java.util.ResourceBundle;

public class DisplayLayer {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pomyślałbym o innej nazwie dla tej klasy, bo nie wiadomo co robi

return loader.getController();
}

public LocationController() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pusta metoda - wyrzucić

public LocationModel addMapObject(GameObjectStandIn gameObject){
ImageView imageView = new ImageView(gameObject.getImage());
Pair<Integer,Integer> mapPosition = getMapPosition(gameObject.getPosition());
imageView.setX(mapPosition.getKey());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dziwne, że X i Y to Key i Value. lepiej żeby position nie było Pair


// TODO: 01.04.2022 Replace with Position
private Pair<Integer, Integer> getMapPosition(Pair<Integer, Integer> position){
int scale = 32;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dodać komentarz albo zmienić nazwę zmiennej - czym jest scale

* chore: Add dependency on Gson

This library is required, as our configuration files will be based on
json

* chore: Add dependency on jetbrains.annotations

* fix: Change package name in module-info.java

* chore: Push out commit

* feat: Extend class schema

* refract: Rename DialogicGameObject -> DialogGameObject

* feat: Add Position record

* feat: Initial GameObject implementation

* refract: Make GameWorld class final

* feat: Add empty Location class

* docs: Add docs dir & empty configuration description

* chore: Add ConfigConstants class with static data members

* refract: Resign from m prefix in private member var names

* chore: Add dependency on log4j

* fix: Fix module-info: export io.rpg

* feat: Setup logging in application entry point

* chore: Package structure

* refract: Empty line at the end of build.gradle

* feat: Initlial configuration structure

* refract: Code cleanup

* refract: Change ROOT file name to root.json

* refract: Change String paths to java.nio classes

* chore: Add logging to ConfigLoader

* feat: Handle FNF config dir & root file

* chore: Exclude bin directory from repo

* feat: Update configuration structure

* feat: LocationConfig

* feat: GameWorldConfig

* fix: Open io.rpg.model module to gson

* TO REVERT: modify app entry class due to some issues with sdk

* chore: Add mock top level class of application

* feat: Initial ConfigLoader impl

* feat: toString method for GameWorldConfig

* feat: Log GameWorldConfig after deserialization

* chore: Add mock game configuration for unit-testing

* chore: Expose model classes to Gson

* Fix: Adjustments to make Gson work

* feat: ConfigLoader#loadLocation

* test: Add initial tests for ConfigLoader

* test: Add ConfigLoaderTest#LocationConfigIsLoadedProperly test

* chore: Update MockTest

* chore: Update configuration files

* chore: Remove not-up-to-date test

* chore: Improve ConfigLoader#load method

* chore: Improve model classes

* refract: Fix typos

Co-authored-by: adam <adam.przywieczerski@gmail.com>
@kkafar kkafar changed the title @co012/rpg 93 widac lokacje w okienku @co012/RPG-93 widac lokacje w okienku Apr 7, 2022
…G-IO/rpg-io into @co012/RPG-93-widac-lokacje-w-okienku
Copy link
Collaborator

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome

@kkafar kkafar merged commit 497231a into master Apr 7, 2022
@kkafar kkafar deleted the @co012/RPG-93-widac-lokacje-w-okienku branch April 7, 2022 16:02
kkafar added a commit that referenced this pull request Apr 7, 2022
* chore: Init gui

* feat: now location is centered

* feat: Add popup creation class for point earning

* feat: Read popup layout from FXML and set pointCount via controller

* refactor: Move popup classes into popups package

* chore: Add background image and improve styling of points popup

* fix: Add background image to assets

* refactor: Add comments to popup class

* refactor: Make showPopup method not static

* refactor: Change position to be represented as a vector

* add game class

* moving player

* measuring frame time duration

* improved player control

* modified player class

* RPG-79 Model proposal & configuration loading (#6)

* chore: Add dependency on Gson

This library is required, as our configuration files will be based on
json

* chore: Add dependency on jetbrains.annotations

* fix: Change package name in module-info.java

* chore: Push out commit

* feat: Extend class schema

* refract: Rename DialogicGameObject -> DialogGameObject

* feat: Add Position record

* feat: Initial GameObject implementation

* refract: Make GameWorld class final

* feat: Add empty Location class

* docs: Add docs dir & empty configuration description

* chore: Add ConfigConstants class with static data members

* refract: Resign from m prefix in private member var names

* chore: Add dependency on log4j

* fix: Fix module-info: export io.rpg

* feat: Setup logging in application entry point

* chore: Package structure

* refract: Empty line at the end of build.gradle

* feat: Initlial configuration structure

* refract: Code cleanup

* refract: Change ROOT file name to root.json

* refract: Change String paths to java.nio classes

* chore: Add logging to ConfigLoader

* feat: Handle FNF config dir & root file

* chore: Exclude bin directory from repo

* feat: Update configuration structure

* feat: LocationConfig

* feat: GameWorldConfig

* fix: Open io.rpg.model module to gson

* TO REVERT: modify app entry class due to some issues with sdk

* chore: Add mock top level class of application

* feat: Initial ConfigLoader impl

* feat: toString method for GameWorldConfig

* feat: Log GameWorldConfig after deserialization

* chore: Add mock game configuration for unit-testing

* chore: Expose model classes to Gson

* Fix: Adjustments to make Gson work

* feat: ConfigLoader#loadLocation

* test: Add initial tests for ConfigLoader

* test: Add ConfigLoaderTest#LocationConfigIsLoadedProperly test

* chore: Update MockTest

* chore: Update configuration files

* chore: Remove not-up-to-date test

* chore: Improve ConfigLoader#load method

* chore: Improve model classes

* refract: Fix typos

Co-authored-by: adam <adam.przywieczerski@gmail.com>

* @co012/RPG-93 widac lokacje w okienku (#8)

* chore: Init gui

* feat: now location is centered

* RPG-79 Model proposal & configuration loading (#6)

* chore: Add dependency on Gson

This library is required, as our configuration files will be based on
json

* chore: Add dependency on jetbrains.annotations

* fix: Change package name in module-info.java

* chore: Push out commit

* feat: Extend class schema

* refract: Rename DialogicGameObject -> DialogGameObject

* feat: Add Position record

* feat: Initial GameObject implementation

* refract: Make GameWorld class final

* feat: Add empty Location class

* docs: Add docs dir & empty configuration description

* chore: Add ConfigConstants class with static data members

* refract: Resign from m prefix in private member var names

* chore: Add dependency on log4j

* fix: Fix module-info: export io.rpg

* feat: Setup logging in application entry point

* chore: Package structure

* refract: Empty line at the end of build.gradle

* feat: Initlial configuration structure

* refract: Code cleanup

* refract: Change ROOT file name to root.json

* refract: Change String paths to java.nio classes

* chore: Add logging to ConfigLoader

* feat: Handle FNF config dir & root file

* chore: Exclude bin directory from repo

* feat: Update configuration structure

* feat: LocationConfig

* feat: GameWorldConfig

* fix: Open io.rpg.model module to gson

* TO REVERT: modify app entry class due to some issues with sdk

* chore: Add mock top level class of application

* feat: Initial ConfigLoader impl

* feat: toString method for GameWorldConfig

* feat: Log GameWorldConfig after deserialization

* chore: Add mock game configuration for unit-testing

* chore: Expose model classes to Gson

* Fix: Adjustments to make Gson work

* feat: ConfigLoader#loadLocation

* test: Add initial tests for ConfigLoader

* test: Add ConfigLoaderTest#LocationConfigIsLoadedProperly test

* chore: Update MockTest

* chore: Update configuration files

* chore: Remove not-up-to-date test

* chore: Improve ConfigLoader#load method

* chore: Improve model classes

* refract: Fix typos

Co-authored-by: adam <adam.przywieczerski@gmail.com>

Co-authored-by: Kacper Kafara <kacperkafara@gmail.com>
Co-authored-by: adam <adam.przywieczerski@gmail.com>

* @mhawryluk/rpg 82 points earned popup (#9)

* chore: Init gui

* feat: now location is centered

* feat: Add popup creation class for point earning

* feat: Read popup layout from FXML and set pointCount via controller

* refactor: Move popup classes into popups package

* chore: Add background image and improve styling of points popup

* fix: Add background image to assets

* refactor: Add comments to popup class

* refactor: Make showPopup method not static

* refactor: Turn showPopup into getPopup, make it return Stage

* test: Add test for hiding a popup when no focus

* fix: Quick fix

* fix: Remove tests for now

* fix: module-info

Co-authored-by: co012 <co123@interia.eu>
Co-authored-by: Kacper Kafara <kacperkafara@gmail.com>

Co-authored-by: co012 <co123@interia.eu>
Co-authored-by: mhawryluk <marcinhawrylukxx@gmail.com>
Co-authored-by: Kacper Kafara <kacperkafara@gmail.com>
Co-authored-by: adam <adam.przywieczerski@gmail.com>
Co-authored-by: Marcin Hawryluk <70582973+mhawryluk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants