forked from bionickatana/number_factory
Finished allowing placement and collision detection. However, the placement is very inconsistent. Thinking about redoing coordinates again...
This commit is contained in:
+2
-1
@@ -5,7 +5,7 @@ PRODUCER_DEBUG = false
|
||||
BORDER = 2
|
||||
|
||||
class Producer
|
||||
attr_reader :draw_x, :draw_y
|
||||
attr_reader :draw_x, :draw_y, :size_x, :size_y
|
||||
# Create producer at a position with the number and rate specified
|
||||
# @param x [Integer] X position to start at
|
||||
# @param y [Integer] Y position to start at
|
||||
@@ -28,6 +28,7 @@ class Producer
|
||||
|
||||
puts "X: #{@x}, Y: #{@y}"
|
||||
@tooltip = @parent.register_dialouge(@x, @y, @box_size, @box_size, "Produces #{@rate} number per second", 500)
|
||||
@size_x = @size_y = 1
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user