Skip to content

Commit

Permalink
3.2.1 Hot Fix
Browse files Browse the repository at this point in the history
Game reference of Scene is now set before Activate is called on the scene.
  • Loading branch information
SoloByte committed Oct 23, 2024
1 parent 138eacb commit 82f8c1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ShapeEngine/Core/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,13 @@ public void Quit()
public void GoToScene(Scene newScene)
{
if (newScene == CurScene) return;

CurScene.ResolveDeactivate();
CurScene.SetGameReference(null);
newScene.ResolveActivate(CurScene);

newScene.SetGameReference(this);
newScene.ResolveActivate(CurScene);

CurScene = newScene;
}

Expand Down
5 changes: 4 additions & 1 deletion ShapeEngine/ShapeEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Title>Shape Engine</Title>
<Authors>Dave Green</Authors>
<RepositoryUrl>https://github.com/DaveGreen-Games/ShapeEngine</RepositoryUrl>
<Version>2.3.0</Version>
<Version>2.3.1</Version>
<Description>My custom made 2d game engine based on the great Raylib Framework. Main focus is being performant and only using draw functions instead of textures. Custom input, audio, savegame, collision, shape, pathfinding, ui, camera, color palette, polygon fracturing, and text system are available with a few other nice things!</Description>
<PackageProjectUrl>https://davegreengames.itch.io/shape-engine</PackageProjectUrl>
<PackageIcon>shapeengine-nuget-icon-128px.png</PackageIcon>
Expand All @@ -25,6 +25,9 @@
<Copyright>Copyright (c) David Grueneis 2024</Copyright>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>
# 2.3.1 Hot Fix
- Game reference is now set in Scene before Activate is called on the Scene

# 2.3.0 Release
- ScreenTextures should now properly scale on macOS when an high dpi monitor is used. (Before ScreenTextures in StretchMode would be not as sharp as they should be)
- Audio Device Cleanup
Expand Down

0 comments on commit 82f8c1f

Please sign in to comment.