vgwb / flatten_island Goto Github PK
View Code? Open in Web Editor NEWFlatten Island game
Home Page: https://vgwb.org
Flatten Island game
Home Page: https://vgwb.org
Let's make the buttons wider to avoid the issue
First of all we should define the list of events we want to track
... or, if that language is not available, in English (US) as default.
Now it's forced to always start in Spanish.
... we will need a scrolling list (or a grid) to browse them all.
First of all we should define how to do it.
... every time you start in English with the Intro and the Tutorial
The letter “ی” should connect with the following letter (the one to its left) but it does not connect:
I included also @StefanoCecere in this bug because he has already experience with the ArabicSupport library (and because we may need the fix also for Antura) :-)
It happens only in SPANISH giving the following error:
KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
LocalizationManager.GetLocalizedText (System.String localizationId) (at Assets/02_Scripts/game/localization/LocalizationManager.cs:141)
LocalizationManager.GetText (System.String localizationId) (at Assets/02_Scripts/game/localization/LocalizationManager.cs:119)
LocalizationManager.SetLocalizedText (UnityEngine.UI.Text textField, System.String localizationId) (at Assets/02_Scripts/game/localization/LocalizationManager.cs:86)
SuggestionButton.SetButton (SuggestionOptionXmlModel suggestionOptionXmlModel) (at Assets/02_Scripts/game/suggestions/SuggestionButton.cs:14)
SuggestionEntry.SetSuggestion (SuggestionXmlModel suggestionXmlModel, AdvisorXmlModel advisorXmlModel) (at Assets/02_Scripts/game/suggestions/SuggestionEntry.cs:51)
SuggestionMenu.CreateSuggestionEntry (SuggestionXmlModel suggestionXmlModel, AdvisorXmlModel advisorXmlModel) (at Assets/02_Scripts/game/suggestions/SuggestionMenu.cs:44)
SuggestionMenu.ShowSuggestion (SuggestionXmlModel suggestionXmlModel, AdvisorXmlModel advisorXmlModel) (at Assets/02_Scripts/game/suggestions/SuggestionMenu.cs:35)
AdvisorsManager.ShowAdvisorSuggestion () (at Assets/02_Scripts/game/advisors/AdvisorsManager.cs:73)
GameSessionFsm.Suggestion_Enter () (at Assets/02_Scripts/game/session/GameSessionFsm.cs:163)
FsmState.OnEnter () (at Assets/02_Scripts/core/ai/fsm/FsmState.cs:23)
FiniteStateMachine.TriggerState (System.String nextStateName) (at Assets/02_Scripts/core/ai/fsm/FiniteStateMachine.cs:35)
GameSessionFsm.OnAllAdvisorsExitCompletedEvent (Messages.EventMessage eventMessage) (at Assets/02_Scripts/game/session/GameSessionFsm.cs:149)
Messages.EventMessageManager.SendMessage (Messages.EventMessage eventMessage) (at Assets/02_Scripts/core/message/EventMessageManager.cs:105)
Messages.EventMessageManager.ProcessActiveQueue () (at Assets/02_Scripts/core/message/EventMessageManager.cs:64)
Messages.EventMessageManager.Update () (at Assets/02_Scripts/core/message/EventMessageManager.cs:41)
GameManager.OnMonoSingletonUpdate () (at Assets/02_Scripts/game/GameManager.cs:58)
MonoSingleton.Update () (at Assets/02_Scripts/core/singleton/MonoSingleton.cs:21)
it would be great to have an automated text overflow tool that reports all Card texts that overflow in all languages!
"All the sentences in Arabic that form more than 1 line start in reverse (the 1st line is being pushed down): I have to read the text from the lower right instead from the upper right.
That applies to all cards and texts and buttons."
In order to test it you can simply watch the Credits in Arabic (VGWB should be on the TOP row instead of the BOTTOM one):
...in order to go straight to the localized donate page on the website.
A translator reported that "when the 'next day' card comes out after the training, the indicators buytins don't all fit on the screen"
I suspect it's not 100% as I can't reproduce it on my phone (but the translator says it's "recurrent")... maybe we can put an "anti-bug/hack" to prevent the elements to be created more than once?
Not sure we can animate it... but we could try
The game is now managing correctly Capacity = 0 by calling the Game Over for SANITARY COLLAPE
But the displayed chart has no sense.
The simplest solution would be to NOT display the curve if Capacity is <= 0... but we should at least paint in RED the Capacity panel.
Otherwise we can think about a more elegant solution: i.e. moving the Capacity line (and panel) down to match the baseline in order to be able to draw the curve as usual.
NOTE: we should be careful that the Patients could be 0 as well.
What do you recommend?
If you leave the game in the main menu and then re-launch it you will get this!
It seems to me that we always try to reload/continue a previous game... and if there's no saved/in-progress game we get this unexpected behavior.
In the console there's an error but i suspect it's not useful:
IndexOutOfRangeException: Index was outside the bounds of the array.
ChartManager.GetPatients (System.Int32 day) (at Assets/02_Scripts/game/gui/chart/ChartManager.cs:372)
ChartManager.DrawOneDay (UnityEngine.Texture2D tex, System.Int32 day) (at Assets/02_Scripts/game/gui/chart/ChartManager.cs:262)
ChartManager.DrawDaySegments (UnityEngine.Texture2D tex, System.Single elapsedTime) (at Assets/02_Scripts/game/gui/chart/ChartManager.cs:220)
ChartManager.CreateChartSprite (System.Single elapsedTime) (at Assets/02_Scripts/game/gui/chart/ChartManager.cs:195)
ChartManager.UpdateChart (System.Single elapsedTime) (at Assets/02_Scripts/game/gui/chart/ChartManager.cs:141)
ChartManager.UpdateFullChart () (at Assets/02_Scripts/game/gui/chart/ChartManager.cs:135)
ChartManager.FirstDraw () (at Assets/02_Scripts/game/gui/chart/ChartManager.cs:67)
MainSceneFsm.Ready_Enter () (at Assets/02_Scripts/game/scenes/MainSceneFsm.cs:56)
FsmState.OnEnter () (at Assets/02_Scripts/core/ai/fsm/FsmState.cs:23)
FiniteStateMachine.TriggerState (System.String nextStateName) (at Assets/02_Scripts/core/ai/fsm/FiniteStateMachine.cs:35)
MainSceneFsm.Init_Update () (at Assets/02_Scripts/game/scenes/MainSceneFsm.cs:38)
FsmState.OnUpdate () (at Assets/02_Scripts/core/ai/fsm/FsmState.cs:31)
FiniteStateMachine.Update () (at Assets/02_Scripts/core/ai/fsm/FiniteStateMachine.cs:62)
MainScene.OnMonoSingletonUpdate () (at Assets/02_Scripts/game/scenes/MainScene.cs:34)
MonoSingleton.Update () (at Assets/02_Scripts/core/singleton/MonoSingleton.cs:21)
Sharing your donation may be impossible because we don't handle the donations ourselves...
... but we could at least share an initation to play & donate ;-)
About the score, it would be very cool to generate a GIF with the curve evolution day after day... or at least the screenshot of winning/losing screen.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.