Skip to content

Commit

Permalink
Added lines to show dangerous and safe area
Browse files Browse the repository at this point in the history
  • Loading branch information
filipbartek committed Feb 2, 2014
1 parent 32f4a50 commit 003495a
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 1 deletion.
108 changes: 108 additions & 0 deletions studna.gmx/objects/obj_control.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ view_main = VIEW_MAIN;

y_generate = 0;

global.rim_h = 64;

</string>
</argument>
</arguments>
Expand Down Expand Up @@ -104,6 +106,112 @@ while (view_yview[view_main] + view_hview[view_main] &gt;= y_generate) {
</arguments>
</action>
</event>
<event eventtype="8" enumb="64">
<action>
<libid>1</libid>
<id>524</id>
<kind>0</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>0</useapplyto>
<exetype>1</exetype>
<functionname>action_color</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>13</kind>
<string>65280</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>513</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_draw_line</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>0</string>
</argument>
<argument>
<kind>0</kind>
<string>room_height - global.rim_h</string>
</argument>
<argument>
<kind>0</kind>
<string>room_width</string>
</argument>
<argument>
<kind>0</kind>
<string>room_height - global.rim_h</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>524</id>
<kind>0</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>0</useapplyto>
<exetype>1</exetype>
<functionname>action_color</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>13</kind>
<string>255</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>513</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_draw_line</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>0</string>
</argument>
<argument>
<kind>0</kind>
<string>global.rim_h</string>
</argument>
<argument>
<kind>0</kind>
<string>room_width</string>
</argument>
<argument>
<kind>0</kind>
<string>global.rim_h</string>
</argument>
</arguments>
</action>
</event>
</events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
Expand Down
2 changes: 1 addition & 1 deletion studna.gmx/objects/obj_pl.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if (place_free(x, y + 1)) {
<argument>
<kind>1</kind>
<string>/// Warp up if too low
if (y &gt;= view_yview[VIEW_MAIN] + view_hview[VIEW_MAIN] - 64) {
if (y &gt;= view_yview[VIEW_MAIN] + view_hview[VIEW_MAIN] - global.rim_h - 16) {
pl_score++;
y = view_yview[VIEW_MAIN];
}
Expand Down

0 comments on commit 003495a

Please sign in to comment.