Skip to content

Commit

Permalink
aaaahh
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Jan 27, 2019
1 parent c6f2e7e commit 1ba7b8e
Show file tree
Hide file tree
Showing 24 changed files with 102 additions and 5 deletions.
52 changes: 52 additions & 0 deletions Game.agf
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,48 @@
</NormalGUI>
<Controls />
</GUIMain>
<GUIMain>
<NormalGUI>
<OnClick />
<Height>32</Height>
<Width>224</Width>
<Left>0</Left>
<Top>0</Top>
<Clickable>True</Clickable>
<Visibility>NormalButInitiallyOff</Visibility>
<PopupYPos>0</PopupYPos>
<ZOrder>0</ZOrder>
<BorderColor>0</BorderColor>
<Transparency>0</Transparency>
<BackgroundColor>0</BackgroundColor>
<BackgroundImage>0</BackgroundImage>
<ID>9</ID>
<Name>gTopGui</Name>
</NormalGUI>
<Controls>
<GUIButton>
<OnClick>ResetRoomButton_OnClick</OnClick>
<ClickAction>RunScript</ClickAction>
<NewModeNumber>0</NewModeNumber>
<ClipImage>False</ClipImage>
<TextAlignment>TopMiddle</TextAlignment>
<TextColor>0</TextColor>
<Font>0</Font>
<PushedImage>0</PushedImage>
<MouseoverImage>0</MouseoverImage>
<Image>153</Image>
<Text xml:space="preserve">New Button</Text>
<Height>22</Height>
<Locked>False</Locked>
<Width>20</Width>
<Left>8</Left>
<Top>5</Top>
<ZOrder>0</ZOrder>
<ID>0</ID>
<Name>ResetRoomButton</Name>
</GUIButton>
</Controls>
</GUIMain>
</GUIs>
</GUIFolder>
</GUIs>
Expand Down Expand Up @@ -3727,6 +3769,16 @@
<Sprite Slot="152" Width="96" Height="48" ColorDepth="32" Resolution="LowRes" AlphaChannel="False" />
</Sprites>
</SpriteFolder>
<SpriteFolder Name="Gui">
<SubFolders />
<Sprites>
<Sprite Slot="153" Width="20" Height="22" ColorDepth="32" Resolution="LowRes" AlphaChannel="True">
<Source>
<FileName>img/gui/reset_room.png</FileName>
</Source>
</Sprite>
</Sprites>
</SpriteFolder>
</SubFolders>
<Sprites>
<Sprite Slot="0" Width="1" Height="1" ColorDepth="8" Resolution="LowRes" AlphaChannel="False" />
Expand Down
28 changes: 26 additions & 2 deletions GlobalScript.asc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// main global script file
int room_to_go_back;
bool resetRoom;

// called when the game starts, before the first room is loaded
function game_start()
Expand All @@ -8,6 +10,7 @@ function game_start()
cDog.SetIdleView(DOGIDDLE1, 1);
KeyboardMovement.SetMode(eKMModePressing);
KeyboardMovement.Enable();
KeyboardMovement.SetMovementKeys(eKMMovementArrowKeys);
cBone1.ChangeRoom(TRASH);
cBone2.ChangeRoom(TRASH);
cBone3.ChangeRoom(TRASH);
Expand All @@ -27,7 +30,20 @@ function game_start()
// put anything you want to happen every game cycle in here
function repeatedly_execute()
{

if(room_to_go_back>0){
room_to_go_back = 0;
//player.ChangeRoom(room_to_go_back);
}
if(resetRoom){
resetRoom = false;
ResetRoom(1);
ResetRoom(2);
ResetRoom(3);
ResetRoom(4);
ResetRoom(5);
player.x = 21;
player.y = 284;
}
}

// put here anything you want to happen every game cycle, even when the game is blocked
Expand Down Expand Up @@ -69,4 +85,12 @@ function on_mouse_click(MouseButton button) // called when a mouse button is cli


function dialog_request(int param) {
}
}


function ResetRoomButton_OnClick(GUIControl *control, MouseButton button)
{
room_to_go_back = player.Room;
resetRoom = true;
player.ChangeRoom(7);
}
Binary file modified acsprset.spr
Binary file not shown.
Binary file added img/gui/reset_room.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/hell_puppy/hell_puppy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/title_screen/title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions room1.asc
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ function room_Leave()

function room_Load()
{
gTopGui.Visible = true;
cBonePile.ChangeRoom(1, 21, 285);
}
Binary file modified room1.crm
Binary file not shown.
1 change: 1 addition & 0 deletions room2.asc
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ function room_Leave()

function room_Load()
{
gTopGui.Visible = true;
cBonePile.ChangeRoom(2, 21, 285);
}
Binary file modified room2.crm
Binary file not shown.
1 change: 1 addition & 0 deletions room3.asc
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ function room_Leave()

function room_Load()
{
gTopGui.Visible = true;
cBonePile.ChangeRoom(3, 21, 285);
}
Binary file modified room3.crm
Binary file not shown.
1 change: 1 addition & 0 deletions room4.asc
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ function room_Leave()

function room_Load()
{
gTopGui.Visible = true;
cBonePile.ChangeRoom(4, 21, 285);
}
Binary file modified room4.crm
Binary file not shown.
1 change: 1 addition & 0 deletions room5.asc
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ function room_Leave()

function room_Load()
{
gTopGui.Visible = true;
cBonePile.ChangeRoom(5, 21, 285);
}
Binary file modified room5.crm
Binary file not shown.
Binary file modified room6.crm
Binary file not shown.
20 changes: 17 additions & 3 deletions room7.asc
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,32 @@

function room_Load()
{
gTopGui.Visible = false;
CustomTransition_IntantFadeIn();
aDog_from_hell.Play(eAudioPriorityHigh, eRepeat);
}

function room_AfterFadeIn()
{
Wait(SecondsToLoops(3.0));
void goToLevelONE(){
Wait(SecondsToLoops(0.1));
CustomTransition_FadeOut(1.6, eBlockTween);
player.ChangeRoom(1, 30, 284, eDirectionRight);

}

function room_AfterFadeIn()
{
}

function room_Leave()
{

}

function hHotspot1_AnyClick()
{
goToLevelONE();
}

function on_key_press(eKeyCode keycode){
goToLevelONE();
}
Binary file modified room7.crm
Binary file not shown.
1 change: 1 addition & 0 deletions room8.asc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function room_AfterFadeIn()

function room_Load()
{
gTopGui.Visible = false;

}

Expand Down
Binary file modified room8.crm
Binary file not shown.
1 change: 1 addition & 0 deletions room9.asc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

function room_Load()
{
gTopGui.Visible = false;
CustomTransition_IntantFadeIn();
aDog_from_hell.Play(eAudioPriorityHigh, eRepeat);
}
Expand Down
Binary file modified room9.crm
Binary file not shown.
Binary file modified sprindex.dat
Binary file not shown.

0 comments on commit 1ba7b8e

Please sign in to comment.