diff --git a/Spaceinator.project.gmx b/Spaceinator.project.gmx index 04f9496..1ea62eb 100644 --- a/Spaceinator.project.gmx +++ b/Spaceinator.project.gmx @@ -54,6 +54,8 @@ <objects name="menus"> <object>objects\obj_button</object> <object>objects\obj_respawn</object> + <object>objects\obj_play</object> + <object>objects\obj_exit</object> <object>objects\obj_gameover_overlay</object> <object>objects\obj_inventory</object> <object>objects\obj_hotbar</object> @@ -64,6 +66,7 @@ </objects> </objects> <rooms name="rooms"> + <room>rooms\rm_title</room> <room>rooms\rm_game</room> </rooms> <constants number="4"> diff --git a/objects/obj_exit.object.gmx b/objects/obj_exit.object.gmx new file mode 100644 index 0000000..67a76b1 --- /dev/null +++ b/objects/obj_exit.object.gmx @@ -0,0 +1,98 @@ +<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> +<object> + <spriteName>spr_button</spriteName> + <solid>0</solid> + <visible>-1</visible> + <depth>-100</depth> + <persistent>0</persistent> + <parentName>obj_button</parentName> + <maskName><undefined></maskName> + <events> + <event eventtype="0" enumb="0"> + <action> + <libid>1</libid> + <id>603</id> + <kind>7</kind> + <userelative>0</userelative> + <isquestion>0</isquestion> + <useapplyto>-1</useapplyto> + <exetype>2</exetype> + <functionname></functionname> + <codestring></codestring> + <whoName>self</whoName> + <relative>0</relative> + <isnot>0</isnot> + <arguments> + <argument> + <kind>1</kind> + <string>image_speed = 0; +BUTTON_TEXT = "Give Up"; +show_debug_message("Button Created: "+BUTTON_TEXT); +</string> + </argument> + </arguments> + </action> + </event> + <event eventtype="6" enumb="0"> + <action> + <libid>1</libid> + <id>603</id> + <kind>7</kind> + <userelative>0</userelative> + <isquestion>0</isquestion> + <useapplyto>-1</useapplyto> + <exetype>2</exetype> + <functionname></functionname> + <codestring></codestring> + <whoName>self</whoName> + <relative>0</relative> + <isnot>0</isnot> + <arguments> + <argument> + <kind>1</kind> + <string>game_end(); +</string> + </argument> + </arguments> + </action> + </event> + <event eventtype="8" enumb="0"> + <action> + <libid>1</libid> + <id>603</id> + <kind>7</kind> + <userelative>0</userelative> + <isquestion>0</isquestion> + <useapplyto>-1</useapplyto> + <exetype>2</exetype> + <functionname></functionname> + <codestring></codestring> + <whoName>self</whoName> + <relative>0</relative> + <isnot>0</isnot> + <arguments> + <argument> + <kind>1</kind> + <string>draw_self(); +draw_set_color(c_white); +draw_text(x-string_width(BUTTON_TEXT)/2,y-5,BUTTON_TEXT); + +</string> + </argument> + </arguments> + </action> + </event> + </events> + <PhysicsObject>0</PhysicsObject> + <PhysicsObjectSensor>0</PhysicsObjectSensor> + <PhysicsObjectShape>0</PhysicsObjectShape> + <PhysicsObjectDensity>0.5</PhysicsObjectDensity> + <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution> + <PhysicsObjectGroup>0</PhysicsObjectGroup> + <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping> + <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping> + <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction> + <PhysicsObjectAwake>-1</PhysicsObjectAwake> + <PhysicsObjectKinematic>0</PhysicsObjectKinematic> + <PhysicsShapePoints/> +</object> diff --git a/objects/obj_play.object.gmx b/objects/obj_play.object.gmx new file mode 100644 index 0000000..e1434be --- /dev/null +++ b/objects/obj_play.object.gmx @@ -0,0 +1,98 @@ +<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> +<object> + <spriteName>spr_button</spriteName> + <solid>0</solid> + <visible>-1</visible> + <depth>-100</depth> + <persistent>0</persistent> + <parentName>obj_button</parentName> + <maskName><undefined></maskName> + <events> + <event eventtype="0" enumb="0"> + <action> + <libid>1</libid> + <id>603</id> + <kind>7</kind> + <userelative>0</userelative> + <isquestion>0</isquestion> + <useapplyto>-1</useapplyto> + <exetype>2</exetype> + <functionname></functionname> + <codestring></codestring> + <whoName>self</whoName> + <relative>0</relative> + <isnot>0</isnot> + <arguments> + <argument> + <kind>1</kind> + <string>image_speed = 0; +BUTTON_TEXT = "Start Exploring"; +show_debug_message("Button Created: "+BUTTON_TEXT); +</string> + </argument> + </arguments> + </action> + </event> + <event eventtype="6" enumb="0"> + <action> + <libid>1</libid> + <id>603</id> + <kind>7</kind> + <userelative>0</userelative> + <isquestion>0</isquestion> + <useapplyto>-1</useapplyto> + <exetype>2</exetype> + <functionname></functionname> + <codestring></codestring> + <whoName>self</whoName> + <relative>0</relative> + <isnot>0</isnot> + <arguments> + <argument> + <kind>1</kind> + <string>room_goto(rm_game); +</string> + </argument> + </arguments> + </action> + </event> + <event eventtype="8" enumb="0"> + <action> + <libid>1</libid> + <id>603</id> + <kind>7</kind> + <userelative>0</userelative> + <isquestion>0</isquestion> + <useapplyto>-1</useapplyto> + <exetype>2</exetype> + <functionname></functionname> + <codestring></codestring> + <whoName>self</whoName> + <relative>0</relative> + <isnot>0</isnot> + <arguments> + <argument> + <kind>1</kind> + <string>draw_self(); +draw_set_color(c_white); +draw_text(x-string_width(BUTTON_TEXT)/2,y-5,BUTTON_TEXT); + +</string> + </argument> + </arguments> + </action> + </event> + </events> + <PhysicsObject>0</PhysicsObject> + <PhysicsObjectSensor>0</PhysicsObjectSensor> + <PhysicsObjectShape>0</PhysicsObjectShape> + <PhysicsObjectDensity>0.5</PhysicsObjectDensity> + <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution> + <PhysicsObjectGroup>0</PhysicsObjectGroup> + <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping> + <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping> + <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction> + <PhysicsObjectAwake>-1</PhysicsObjectAwake> + <PhysicsObjectKinematic>0</PhysicsObjectKinematic> + <PhysicsShapePoints/> +</object> diff --git a/rooms/rm_title.room.gmx b/rooms/rm_title.room.gmx new file mode 100644 index 0000000..986625e --- /dev/null +++ b/rooms/rm_title.room.gmx @@ -0,0 +1,66 @@ +<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> +<room> + <caption></caption> + <width>960</width> + <height>544</height> + <vsnap>32</vsnap> + <hsnap>32</hsnap> + <isometric>0</isometric> + <speed>30</speed> + <persistent>0</persistent> + <colour>12632256</colour> + <showcolour>-1</showcolour> + <code></code> + <enableViews>0</enableViews> + <clearViewBackground>-1</clearViewBackground> + <clearDisplayBuffer>-1</clearDisplayBuffer> + <makerSettings> + <isSet>0</isSet> + <w>0</w> + <h>0</h> + <showGrid>0</showGrid> + <showObjects>0</showObjects> + <showTiles>0</showTiles> + <showBackgrounds>0</showBackgrounds> + <showForegrounds>0</showForegrounds> + <showViews>0</showViews> + <deleteUnderlyingObj>0</deleteUnderlyingObj> + <deleteUnderlyingTiles>0</deleteUnderlyingTiles> + <page>0</page> + <xoffset>0</xoffset> + <yoffset>0</yoffset> + </makerSettings> + <backgrounds> + <background visible="-1" foreground="0" name="bg_titlesreen" x="0" y="0" htiled="0" vtiled="0" hspeed="0" vspeed="0" stretch="-1"/> + <background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/> + <background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/> + <background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/> + <background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/> + <background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/> + <background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/> + <background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/> + </backgrounds> + <views> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + <view visible="0" objName="<undefined>" xview="0" yview="0" wview="1024" hview="768" xport="0" yport="0" wport="1024" hport="768" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/> + </views> + <instances> + <instance objName="obj_play" x="480" y="224" name="inst_E5196F6E" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/> + <instance objName="obj_exit" x="480" y="384" name="inst_DBA2A23E" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/> + </instances> + <tiles/> + <PhysicsWorld>0</PhysicsWorld> + <PhysicsWorldTop>0</PhysicsWorldTop> + <PhysicsWorldLeft>0</PhysicsWorldLeft> + <PhysicsWorldRight>1024</PhysicsWorldRight> + <PhysicsWorldBottom>768</PhysicsWorldBottom> + <PhysicsWorldGravityX>0</PhysicsWorldGravityX> + <PhysicsWorldGravityY>10</PhysicsWorldGravityY> + <PhysicsWorldPixToMeters>0.100000001490116</PhysicsWorldPixToMeters> +</room> diff --git a/sprites/images/spr_player_0.png b/sprites/images/spr_player_0.png index bf0d18f..8903737 100644 Binary files a/sprites/images/spr_player_0.png and b/sprites/images/spr_player_0.png differ diff --git a/sprites/spr_player.sprite.gmx b/sprites/spr_player.sprite.gmx index b286b9a..3340a63 100644 --- a/sprites/spr_player.sprite.gmx +++ b/sprites/spr_player.sprite.gmx @@ -1,25 +1,28 @@ <!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> <sprite> <type>0</type> - <xorig>47</xorig> - <yorigin>34</yorigin> + <xorig>40</xorig> + <yorigin>40</yorigin> <colkind>0</colkind> <coltolerance>0</coltolerance> <sepmasks>-1</sepmasks> <bboxmode>0</bboxmode> - <bbox_left>7</bbox_left> - <bbox_right>41</bbox_right> + <bbox_left>0</bbox_left> + <bbox_right>79</bbox_right> <bbox_top>2</bbox_top> - <bbox_bottom>38</bbox_bottom> + <bbox_bottom>76</bbox_bottom> <HTile>0</HTile> <VTile>0</VTile> <TextureGroups> <TextureGroup0>0</TextureGroup0> </TextureGroups> <For3D>0</For3D> - <width>1000</width> - <height>750</height> + <width>80</width> + <height>80</height> <frames> <frame index="0">images\spr_player_0.png</frame> + <frame index="1">images\spr_player_1.png</frame> + <frame index="2">images\spr_player_2.png</frame> + <frame index="3">images\spr_player_3.png</frame> </frames> </sprite>