Skip to content

Commit

Permalink
Load preserved camera zoom, added other mouse button to cam toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Apostolique committed Aug 12, 2023
1 parent a5dfb78 commit 593b5c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Game/GameRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ private void LoadDrawing() {
_exp = new FloatTween(0f, 0f, 0, Easing.QuintOut);
_rotation = new FloatTween(0f, 0f, 0, Easing.QuintOut);

SetXYTween(new Vector2(dd.Camera.X, dd.Camera.Y));
SetExpTween(ScaleToExp(_camera.ZToScale(_camera.Z, 0f)), 0);
SetXYTween(new Vector2(dd.Camera.X, dd.Camera.Y), 0);
SetExpTween(ScaleToExp(_camera.ZToScale(dd.Camera.Z, 0f)), 0);
SetRotationTween(dd.Camera.Rotation, 0);

_savedCams = dd.SavedCams;
Expand Down Expand Up @@ -847,7 +847,8 @@ private RectangleF ComputeAABB() {
ICondition _loadCam0 =
new AnyCondition(
new Track.KeyboardCondition(Keys.D0),
new MouseCondition(MouseButton.XButton1)
new MouseCondition(MouseButton.XButton1),
new MouseCondition(MouseButton.XButton2)
);

bool _isErasing = false;
Expand Down

0 comments on commit 593b5c3

Please sign in to comment.