mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-16 00:02:33 +00:00
Building units now uses orders 😃
This commit is contained in:
@@ -4,7 +4,7 @@ class IMICRTS
|
||||
@title = Gosu::Font.new(56, name: "Noto Sans Display", bold: true)
|
||||
@text = Gosu::Font.new(18, name: "Noto Sans Thaana", bold: true)
|
||||
@name = IMICRTS::NAME
|
||||
@logo = Gosu::Image.new("#{ASSETS_PATH}/logo.png")
|
||||
@logo = get_image("#{ASSETS_PATH}/logo.png")
|
||||
|
||||
@messages = ["Loading", "Compiling Protons", "Launching Warhead", "git push origin --force"]
|
||||
@messages_index = 0
|
||||
|
||||
@@ -2,7 +2,7 @@ class IMICRTS
|
||||
class Closing < CyberarmEngine::GuiState
|
||||
def setup
|
||||
window.show_cursor = false
|
||||
@logo = Gosu::Image.new("#{ASSETS_PATH}/logo.png")
|
||||
@logo = get_image("#{ASSETS_PATH}/logo.png")
|
||||
@color = Gosu::Color.new(0xffffffff)
|
||||
|
||||
@started_at = Gosu.milliseconds
|
||||
|
||||
@@ -41,7 +41,7 @@ class IMICRTS
|
||||
player_id: player.id, name: :construction_yard,
|
||||
position: CyberarmEngine::Vector.new(player.spawnpoint.x, player.spawnpoint.y, ZOrder::BUILDING)
|
||||
)
|
||||
construction_yard.component(:building).data.construction_progress = 100
|
||||
construction_yard.component(:building).data.construction_progress = Entity.get(construction_yard.name).build_steps
|
||||
@director.each_tile(@director.map.world_to_grid(construction_yard.position), construction_yard.name) do |tile, space_required|
|
||||
if space_required == true
|
||||
tile.entity = construction_yard
|
||||
|
||||
Reference in New Issue
Block a user