Moved 'building' entity definitions into 'structures', renamed building component to structure, moved svgs the same.

This commit is contained in:
2021-01-15 11:05:57 -06:00
parent 36f79c6f57
commit e30d73d4d7
19 changed files with 29 additions and 29 deletions

View File

@@ -0,0 +1,24 @@
tiles = [
[false, false, false, false, false],
[false, true, true, true, false],
[false, true, true, true, false],
[false, true, true, true, false],
[false, :path, :path, :path, false],
]
IMICRTS::Entity.define_entity(:barracks, :structure, 400, 40, "Builds and heals soldiers", tiles) do |entity|
unless entity.proto_entity
entity.has(:structure)
entity.has(:waypoint)
entity.has(:spawner)
entity.has(:build_queue)
end
entity.radius = 44
entity.max_health = 100.0
entity.shell_image = "buildings/barracks/barracks.png"
entity.on_tick do
end
end