Comments (10)
I found out part of the problem: the equation to see if time has passed does not consider that the game has been saved. So, with the absence of data to indicate that yes, the game loaded a file, it automatically uses Time.time to check if a week should pass, and if more than 5 seconds (time of a week) have passed...
...the game jumps to the next week.
from refugeewaves.
How to solve it: the act of saving have to store data that will be used when loading to avoid the week jumped.
That data also have to store precisely the time left for that week.
from refugeewaves.
To fix this problem, first the save/load function needs to exist in its proper place.
from refugeewaves.
This bug covers more than ONE problem: everything that runs based in Time.time makes the save/load be partially ignored.
from refugeewaves.
Ok, or I fix every single class, OR the Time.time.
...time to reflect a bit about it.
from refugeewaves.
Better to create a Time Class than fix EVERY SINGLE class.
Well, it's late. Will set the skeleton today.
from refugeewaves.
Or better. If the player can in the final version save/load while the game is paused, first I will implement save/load as they should be used.
from refugeewaves.
Done, time to create the Time class. Or better, the Timer class.
from refugeewaves.
The bug hunting must go on...
from refugeewaves.
So. I guess all time bugs are done. Finally.
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
- The game always begin in Year 1, Month 1, Week 2 HOT 16
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.