Skip to content

Commit

Permalink
updates AgsBox2D demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Dec 28, 2019
1 parent 64ad7b5 commit d2d2986
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions agsbox2d_demo/Game.agf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="Windows-1252"?>
<!--DO NOT EDIT THIS FILE. It is automatically generated by the AGS Editor, changing it manually could break your game-->
<AGSEditorDocument Version="3.0.3.2" VersionIndex="24" EditorVersion="3.5.0">
<AGSEditorDocument Version="3.0.3.2" VersionIndex="25" EditorVersion="3.5.0.22">
<Game>
<Settings>
<GameFileName>agsbox2d_demo</GameFileName>
Expand Down Expand Up @@ -96,6 +96,7 @@
<DigitalSound>Default</DigitalSound>
<MidiSound>Default</MidiSound>
<UseVoicePack>True</UseVoicePack>
<ThreadedAudio>False</ThreadedAudio>
<Translation />
<AutoLockMouse>False</AutoLockMouse>
<MouseSpeed>1</MouseSpeed>
Expand Down Expand Up @@ -2359,7 +2360,7 @@
<IdleView>0</IdleView>
<ThinkingView>0</ThinkingView>
<BlinkingView>0</BlinkingView>
<StartingRoom>6</StartingRoom>
<StartingRoom>7</StartingRoom>
<StartX>150</StartX>
<StartY>100</StartY>
<UniformMovementSpeed>True</UniformMovementSpeed>
Expand Down
2 changes: 1 addition & 1 deletion agsbox2d_demo/room4.asc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function room_Load()
box5.fixture = AgsBox2D.CreateFixture(box5.body, box5.shape, 2.0);

box6.body = AgsBox2D.CreateBody(world, 192.0, 120.0, eBodyDynamic);
box6.shape = AgsBox2D.CreateRectangleShape(20.0, 20.0);
box6.shape = AgsBox2D.CreateRectangleShape(25.0, 20.0);
box6.fixture = AgsBox2D.CreateFixture(box6.body, box6.shape, 2.0);

AgsBox2D.CreateDistanceJoint(box5.body, box6.body, 128.0, 120.0, 192.0, 120.0, true);
Expand Down
Binary file modified agsbox2d_demo/room4.crm
Binary file not shown.
10 changes: 8 additions & 2 deletions agsbox2d_demo/room7.asc
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function room_RepExec()
surf.Release();
}
}

DrawingSurface* surf = contactGraphic.GetDrawingSurface();
// write contact count
surf.Release();
Expand All @@ -254,4 +254,10 @@ function room_Leave()
{
gDebugGUI.BackgroundGraphic = 0;
gDebugGUI.Visible = false;
}
}


function room_AfterFadeIn()
{
player.Say("Use Tab to hide and show the Debug GUI");
}
Binary file modified agsbox2d_demo/room7.crm
Binary file not shown.

0 comments on commit d2d2986

Please sign in to comment.