From 003495a559557922681ea274a4dce4e357c0c5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20B=C3=A1rtek?= Date: Sun, 2 Feb 2014 20:34:24 +0100 Subject: [PATCH] Added lines to show dangerous and safe area --- studna.gmx/objects/obj_control.object.gmx | 108 ++++++++++++++++++++++ studna.gmx/objects/obj_pl.object.gmx | 2 +- 2 files changed, 109 insertions(+), 1 deletion(-) diff --git a/studna.gmx/objects/obj_control.object.gmx b/studna.gmx/objects/obj_control.object.gmx index e3383aa..3614f2d 100644 --- a/studna.gmx/objects/obj_control.object.gmx +++ b/studna.gmx/objects/obj_control.object.gmx @@ -30,6 +30,8 @@ view_main = VIEW_MAIN; y_generate = 0; +global.rim_h = 64; + @@ -104,6 +106,112 @@ while (view_yview[view_main] + view_hview[view_main] >= y_generate) { + + + 1 + 524 + 0 + 0 + 0 + 0 + 1 + action_color + + self + 0 + 0 + + + 13 + 65280 + + + + + 1 + 513 + 0 + -1 + 0 + -1 + 1 + action_draw_line + + self + 0 + 0 + + + 0 + 0 + + + 0 + room_height - global.rim_h + + + 0 + room_width + + + 0 + room_height - global.rim_h + + + + + 1 + 524 + 0 + 0 + 0 + 0 + 1 + action_color + + self + 0 + 0 + + + 13 + 255 + + + + + 1 + 513 + 0 + -1 + 0 + -1 + 1 + action_draw_line + + self + 0 + 0 + + + 0 + 0 + + + 0 + global.rim_h + + + 0 + room_width + + + 0 + global.rim_h + + + + 0 0 diff --git a/studna.gmx/objects/obj_pl.object.gmx b/studna.gmx/objects/obj_pl.object.gmx index a65b77f..cda28cd 100644 --- a/studna.gmx/objects/obj_pl.object.gmx +++ b/studna.gmx/objects/obj_pl.object.gmx @@ -113,7 +113,7 @@ if (place_free(x, y + 1)) { 1 /// Warp up if too low -if (y >= view_yview[VIEW_MAIN] + view_hview[VIEW_MAIN] - 64) { +if (y >= view_yview[VIEW_MAIN] + view_hview[VIEW_MAIN] - global.rim_h - 16) { pl_score++; y = view_yview[VIEW_MAIN]; }