mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Seperated entities by building/unit
This commit is contained in:
@@ -139,6 +139,6 @@ class IMICRTS
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.glob("#{IMICRTS::GAME_ROOT_PATH}/lib/entities/*.rb").each do |entity|
|
Dir.glob("#{IMICRTS::GAME_ROOT_PATH}/lib/entities/**/*.rb").each do |entity|
|
||||||
require_relative entity
|
require_relative entity
|
||||||
end
|
end
|
||||||
@@ -15,8 +15,8 @@ class IMICRTS
|
|||||||
|
|
||||||
label "SIDEBAR", text_size: 78, margin_bottom: 20
|
label "SIDEBAR", text_size: 78, margin_bottom: 20
|
||||||
|
|
||||||
flow do
|
flow(width: 1.0) do
|
||||||
@buttons = stack(width: 75) do
|
@buttons = stack(width: 0.9) do
|
||||||
@h = button("Harvester", width: 1.0) do
|
@h = button("Harvester", width: 1.0) do
|
||||||
@player.entities << Entity.new(
|
@player.entities << Entity.new(
|
||||||
name: :harvester,
|
name: :harvester,
|
||||||
@@ -49,7 +49,8 @@ class IMICRTS
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
stack(width: 0.25, height: 1.0) do
|
# Power meter
|
||||||
|
stack(width: 0.1, height: 1.0, align: :bottom) do
|
||||||
background Gosu::Color::GREEN
|
background Gosu::Color::GREEN
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user