Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bronuh
Vector Survivors
Commits
b0404645
Commit
b0404645
authored
1 year ago
by
Bronuh
⁉
Browse files
Options
Download
Email Patches
Plain Diff
Fix attempt to clear disposed UI
- upgrade version
parent
8b8167d2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
VectorSurvivors.csproj
+3
-3
VectorSurvivors.csproj
export_presets.cfg
+2
-2
export_presets.cfg
src/VectorSurvivors/Scenes/Main/UiContainer.cs
+1
-1
src/VectorSurvivors/Scenes/Main/UiContainer.cs
src/VectorSurvivors/Scenes/States/Gameplay/World.cs
+1
-0
src/VectorSurvivors/Scenes/States/Gameplay/World.cs
src/VectorSurvivors/Scenes/States/Gameplay/WorldApi.cs
+1
-5
src/VectorSurvivors/Scenes/States/Gameplay/WorldApi.cs
src/VectorSurvivors/Scenes/States/MainMenu/MainMenu.cs
+6
-1
src/VectorSurvivors/Scenes/States/MainMenu/MainMenu.cs
with
14 additions
and
12 deletions
+14
-12
VectorSurvivors.csproj
+
3
-
3
View file @
b0404645
...
...
@@ -4,14 +4,14 @@
<EnableDynamicLoading>true</EnableDynamicLoading>
<RootNamespace/>
<PackageId>VectorSurvivors</PackageId>
<Version>0.2.
0.1
</Version>
<Version>0.2.
1.0
</Version>
<Title>VectorSurvivors</Title>
<Authors>Bronuh</Authors>
<Description>Vampire-like игра про геометрические фигуры</Description>
<AssemblyName>VectorSurvivors</AssemblyName>
<Product>VectorSurvivors</Product>
<AssemblyVersion>0.2.
0.1
</AssemblyVersion>
<FileVersion>0.2.
0.1
</FileVersion>
<AssemblyVersion>0.2.
1.0
</AssemblyVersion>
<FileVersion>0.2.
1.0
</FileVersion>
<NoWarn>1701;1702;CS1591</NoWarn>
</PropertyGroup>
...
...
This diff is collapsed.
Click to expand it.
export_presets.cfg
+
2
-
2
View file @
b0404645
...
...
@@ -35,8 +35,8 @@ application/modify_resources=true
application/icon=""
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version="0.2.
0.1
"
application/product_version="0.2.
0.1
"
application/file_version="0.2.
1.0
"
application/product_version="0.2.
1.0
"
application/company_name="Bronuh"
application/product_name="Vector Survivors"
application/file_description=""
...
...
This diff is collapsed.
Click to expand it.
src/VectorSurvivors/Scenes/Main/UiContainer.cs
+
1
-
1
View file @
b0404645
...
...
@@ -46,7 +46,7 @@ public partial class UiContainer : Node
{
foreach
(
IUiScene
uiScene
in
StateStack
)
{
if
(
uiScene
is
Node
node
)
if
(
uiScene
is
Node
node
&&
node
.
IsValid
()
)
{
node
.
QueueFree
();
}
...
...
This diff is collapsed.
Click to expand it.
src/VectorSurvivors/Scenes/States/Gameplay/World.cs
+
1
-
0
View file @
b0404645
...
...
@@ -26,6 +26,7 @@ public partial class World : Node2D
public
override
void
_Ready
()
{
NotNullChecker
.
CheckProperties
(
this
);
Instance
=
this
;
PlayMusic
();
_tokens
.
Add
(
EventBus
.
Subscribe
<
LocalPlayerSpawnedEvent
>(
OnLocalPlayerSpawned
));
_tokens
.
Add
(
EventBus
.
Subscribe
<
CameraDroppedEvent
>(
OnCameraDropped
));
...
...
This diff is collapsed.
Click to expand it.
src/VectorSurvivors/Scenes/States/Gameplay/WorldApi.cs
+
1
-
5
View file @
b0404645
...
...
@@ -24,11 +24,7 @@ public partial class World
public
static
double
Difficulty
=>
(
Instance
.
BaseDifficulty
+
GameTime
/
60
*
Instance
.
DifficultyPerMinute
)
*
Instance
.
DifficultyFactor
;
public
static
int
MaxEnemies
=>
Mathf
.
CeilToInt
(
Instance
.
BaseEnemyCount
+
Instance
.
EnemyPerDifficulty
*
Difficulty
);
public
World
()
{
if
(!
Instance
.
IsValid
())
Instance
=
this
;
}
public
static
void
AddEntity
(
Node2D
node
)
{
...
...
This diff is collapsed.
Click to expand it.
src/VectorSurvivors/Scenes/States/MainMenu/MainMenu.cs
+
6
-
1
View file @
b0404645
...
...
@@ -37,7 +37,12 @@ public partial class MainMenu : AbstractStorage, IUiScene
if
(
tween
.
IsValid
())
tween
.
Kill
();
};
Audio2D
.
PlayMusic
(
Music
.
MainBgm
);
PlayMusic
();
}
private
void
PlayMusic
()
{
Audio2D
.
PlayMusic
(
Music
.
MainBgm
,
0.5f
).
Finished
+=
PlayMusic
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment