From a7ce2054a36d1d00e59b744c0aab4d28b6ede754 Mon Sep 17 00:00:00 2001 From: Semyon Perepelitsa Date: Thu, 15 Dec 2011 10:31:31 +0800 Subject: [PATCH] Move images into media directory --- ball.png => media/ball.png | Bin bg.png => media/bg.png | Bin paddle.png => media/paddle.png | Bin pong.rb | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename ball.png => media/ball.png (100%) rename bg.png => media/bg.png (100%) rename paddle.png => media/paddle.png (100%) diff --git a/ball.png b/media/ball.png similarity index 100% rename from ball.png rename to media/ball.png diff --git a/bg.png b/media/bg.png similarity index 100% rename from bg.png rename to media/bg.png diff --git a/paddle.png b/media/paddle.png similarity index 100% rename from paddle.png rename to media/paddle.png diff --git a/pong.rb b/pong.rb index dc7558a..e2f8d58 100644 --- a/pong.rb +++ b/pong.rb @@ -21,14 +21,14 @@ def render(container, graphics) end def init(container) - @bg = Image.new('bg.png') + @bg = Image.new('media/bg.png') - @ball = Image.new('ball.png') + @ball = Image.new('media/ball.png') @ball_x = 200 @ball_y = 200 @ball_angle = 45 - @paddle = Image.new('paddle.png') + @paddle = Image.new('media/paddle.png') @paddle_x = 200 @paddle_y = 400 end