Finished allowing placement and collision detection. However, the placement is very inconsistent. Thinking about redoing coordinates again...

This commit is contained in:
2026-06-17 22:14:22 -06:00
parent 6f5ad9803f
commit e7825478f1
7 changed files with 161 additions and 36 deletions
+2 -1
View File
@@ -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