Comments (16)
It happens because of the delay in loading everything to the game. If I can lock down the timer... or speed up the loading...
from refugeewaves.
Tomorrow.
from refugeewaves.
Ok, better thing to do is to lock the timer until everything is set.
from refugeewaves.
Easiest way to do it is to just trigger a pause as the game begins, so the timer stays frozen until the player effectively starts playing.
But that means he has a chance of not knowing how to unpause, so the Pause Button needs an extra button.
from refugeewaves.
Done, now only need to test it.
from refugeewaves.
...didn't work. When the game is unpaused, the timer goes straight to week 2.
from refugeewaves.
Ok, plan B: the specific McGyverism which I created now also must change the game time to 0. That should solve the problem... i guess?
from refugeewaves.
No. It will be an extra McGuyvering which makes a confusion of the save/load system as well. Urgh... there's only one easy way to solve this.
The first week must start before zero.
from refugeewaves.
This will have to be properly solved in Alpha 1... specifically, to undo my McGuyverism and guarantee that, until everything in the game is properly loaded, the game does not start counting time.
Writing this now, the solution is probably not hard to do, just takes work and time... which I don't have now.
from refugeewaves.
And it did NOT work.
I will have to analyze this better, tomorrow.
from refugeewaves.
Theory to test: the time is passing since the beggining, in the menu screen.
from refugeewaves.
Ok, I'm delaying this to Alpha 1.
from refugeewaves.
Ok, I think I found it.
timeElapsed + (TimerManager.time - timeLastUnpaused)
The problem is this calculus on checkForPassageOfTime().
from refugeewaves.
Found it. The problem is on timeElapsed. Somehow, timeElapsed is bigger than 0 when the Pause Window is closed and that makes the first week pass too fast.
from refugeewaves.
Ok, so why the game HAS to start paused?
from refugeewaves.
Oh. It needs to probably to avoid loading the game and not looking to its time properly updated. So, the plan is to add a fix inside the mcguyverism that can't be removed.
from refugeewaves.
Related Issues (20)
- Add warning in the pause window about the game successfully being saved/loaded HOT 1
- Random events triggered by game stats? HOT 1
- If save/load does not work, the player must be warned HOT 1
- Creation of the Alpha 0 Release
- Use itch.io for a homepage for the project HOT 1
- Write down the project's vision
- Communicate my expectations
- Fix the UI HOT 12
- Add mandatory extra scene before the main menu HOT 1
- Clicking on the stuff to buy menu closes it HOT 3
- Pressing P in the keyboard, while on the Main Scene, should make the pause menu appear
- Update e-mail on "The One's Responsible" screen HOT 2
- Switch music that plays when a wave appears HOT 5
- Fix buttons from the main scene that are not working HOT 1
- Choose new music for the game HOT 5
- Improving the feedback to the user HOT 4
- Review Events
- Improving the feedback to the user, part 2
- Fixing action button lack of highlight HOT 1
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 refugeewaves.