From 645974e42ce72c95a3ba9f9de2278e71d89ffa6c Mon Sep 17 00:00:00 2001 From: realtradam Date: Sat, 24 Apr 2021 01:30:18 -0400 Subject: . --- run.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'run.rb') diff --git a/run.rb b/run.rb index d1afb77..09e3072 100644 --- a/run.rb +++ b/run.rb @@ -20,6 +20,15 @@ end Window.set(icon: './assets/player.png') # There is 2 ways you can add objects to be known and controlled by the camera, both do the same thing + +@square = Square.new( + x: 100, y: 100, + size: 125, + color: 'random' +) + +Camera << @square + 25.times do tempx = (0..1920).to_a.sample tempy = (0..1080).to_a.sample -- cgit v1.2.3