Giter VIP home page Giter VIP logo

dominion's People

Contributors

doverstav avatar glazastik avatar malmers avatar meddan avatar wiixtor avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dominion's Issues

The game is not closed properly!

If we want to save the settings in Settings with PrintWriter we need to exit with the exit() method in MainView.

Right now we exit with sbg.getContainer.exit() which is not the same...

InGameState is godlike

InGameState is running the risk of becoming a god object. Or at least I feel so. A lot of code in one class anyway. We should probably take care, or even action. May not be doable since this state contains so much gamecode, but if this class can somehow be shrunk, I believe it to be worthwhile.

Problems in ShowCardState

When you leave ShowCardState, any click you make is registered in the state you enter, which is InGameState. This causes clicks on areas where cards are, a majority of the board, to be registered as clicks on them. This is problematic since this is not the intention when you are in ShowCardState, and will result in unwanted behaviour down the road. Not high priority, but must be fixed before game is shipped.

mouseClicked smells

mouseClicked smells, and it smells bad. There's too much logic contained within, but due to the programs nature this method needs to be called every update and a lot of things has to be checked. This method needs to be refactored somehow, and anyone is free to clean it up, although I will take main responsibility for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.