Comments (2)
Is this still an issue after #43 got merged? (I see you moved the Waterdrop
static initialization into the constructor which is nice).
Also regarding the FIXME
you introduced:
Klooni1010/core/src/io/github/lonamiwebs/klooni/Klooni.java
Lines 46 to 47 in ef2fb8f
Sure, it's static, but it's not loading anything. It defaults to null
, and is loaded later on create
:
Klooni1010/core/src/io/github/lonamiwebs/klooni/Klooni.java
Lines 82 to 95 in ef2fb8f
So, is this still wrong?
from klooni1010.
The text is according to your TODO that have been there before. I did'n have any look into it beside the code of SkinLoader.
As to to the comment in Line 89 says it is a singleton, you should not allow public write access to it and use a public getter ... and have a look if that's really a performance hit or not ;)
As it isn't loaded that early there's no need for static at all. If other classes need access, they should simply know Klooni. This would lead to more refactoring, ie. making the cellTexture a parameter of Cell.draw or supplying it at cell creation and changing the parameter of set to the already resolved texture to having Cells and maybe other to not needing to know Klooni.
Alternatively you could have a private static variable to store the Klooni instance and supply it with a public static getter.
... much changes and I don't see a practical benefit now. As a big difference to effects you only have one Theme class and there's no need to change as long as that one size fits all.
from klooni1010.
Related Issues (20)
- The package appears to be corrupt - download to android and install HOT 1
- Crash When Sharing at End of Timed Game
- Feature request: Pause button HOT 1
- Ads issue HOT 3
- Feature request: Make piece generator always generate fitting pieces HOT 3
- Improve F-Droid listing HOT 4
- HTML support HOT 5
- Better RNG HOT 5
- Difficult to see cells using the bulb theme HOT 3
- Unable to build with F-Droid HOT 5
- Can't run build jar due to java.lang.NoClassDefFoundError HOT 6
- Main screen's menu seems overly zoomed-in HOT 10
- Restore data (highscores, themes) from old versions (before 0.8.3) HOT 1
- Countdown time mode accidentally activated? HOT 2
- Discussion: New game modes HOT 2
- Official desktop build? HOT 4
- . HOT 1
- Add nord theme HOT 3
- Suggestion for screenshot naming HOT 3
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.
from klooni1010.