dominion's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.