From 20d5b4057b44ffcf92478b2a8e9476ace2fdc0f5 Mon Sep 17 00:00:00 2001 From: Amir Rajan Date: Tue, 22 Sep 2020 06:27:46 -0500 Subject: synced with 1.22 --- samples/99_genre_platformer/the_little_probe/app/main.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'samples/99_genre_platformer/the_little_probe/app/main.rb') diff --git a/samples/99_genre_platformer/the_little_probe/app/main.rb b/samples/99_genre_platformer/the_little_probe/app/main.rb index 1c90218..8fcf279 100644 --- a/samples/99_genre_platformer/the_little_probe/app/main.rb +++ b/samples/99_genre_platformer/the_little_probe/app/main.rb @@ -256,8 +256,8 @@ class FallingCircle if circle.floor outputs.labels << [circle.x + camera.x + 30, circle.y + camera.y + 100, "point: #{circle.floor_point.slice(:x, :y).values}", -2, 0] outputs.labels << [circle.x + camera.x + 31, circle.y + camera.y + 101, "point: #{circle.floor_point.slice(:x, :y).values}", -2, 0, 255, 255, 255] - outputs.labels << [circle.x + camera.x + 30, circle.y + camera.y + 85, "circle: #{circle.hash.slice(:x, :y).values}", -2, 0] - outputs.labels << [circle.x + camera.x + 31, circle.y + camera.y + 86, "circle: #{circle.hash.slice(:x, :y).values}", -2, 0, 255, 255, 255] + outputs.labels << [circle.x + camera.x + 30, circle.y + camera.y + 85, "circle: #{circle.as_hash.slice(:x, :y).values}", -2, 0] + outputs.labels << [circle.x + camera.x + 31, circle.y + camera.y + 86, "circle: #{circle.as_hash.slice(:x, :y).values}", -2, 0, 255, 255, 255] outputs.labels << [circle.x + camera.x + 30, circle.y + camera.y + 70, "rel: #{circle.floor_relative_x} #{circle.floor_relative_y}", -2, 0] outputs.labels << [circle.x + camera.x + 31, circle.y + camera.y + 71, "rel: #{circle.floor_relative_x} #{circle.floor_relative_y}", -2, 0, 255, 255, 255] end @@ -402,11 +402,11 @@ class FallingCircle end def load_terrain - load_lines 'level.txt' + load_lines 'data/level.txt' end def load_lava - load_lines 'level_lava.txt' + load_lines 'data/level_lava.txt' end def load_level force: false -- cgit v1.2.3