mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 13:52:34 +00:00
Tweaks to simulator robot, made start up animation skippable, made NamePromptDialog able to detect duplicate names, enabled cloning of groups and actions
This commit is contained in:
@@ -2,6 +2,7 @@ module TAC
|
||||
class Simulator
|
||||
class Robot
|
||||
attr_accessor :position, :angle
|
||||
attr_reader :width, :depth
|
||||
def initialize(width:, depth:)
|
||||
@width, @depth = width, depth
|
||||
|
||||
|
||||
@@ -119,8 +119,8 @@ module TAC
|
||||
end
|
||||
|
||||
def draw
|
||||
Gosu.draw_line(@robot.position.x, @robot.position.y, Gosu::Color::GREEN, @goal.x, @goal.y, Gosu::Color::GREEN)
|
||||
Gosu.draw_rect(@goal.x, @goal.y, 16, 16, Gosu::Color::RED)
|
||||
Gosu.draw_line(@robot.position.x + @robot.width / 2, @robot.position.y + @robot.depth / 2, Gosu::Color::GREEN, @goal.x + @robot.width / 2, @goal.y + @robot.depth / 2, Gosu::Color::GREEN)
|
||||
Gosu.draw_rect(@goal.x + (@robot.width / 2 - 2), @goal.y + (@robot.depth / 2 - 2), 4, 4, Gosu::Color::RED)
|
||||
end
|
||||
|
||||
def update(dt)
|
||||
|
||||
Reference in New Issue
Block a user