mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Supplanted biped with character
This commit is contained in:
@@ -26,7 +26,7 @@ class IMICFPS
|
||||
add_entity(Entity.new(map_entity: ent, manifest: Manifest.new(package: ent.package, name: ent.name)))
|
||||
end
|
||||
|
||||
add_entity(Player.new(spawnpoint: @map_loader.spawnpoints.sample, manifest: Manifest.new(package: "base", name: "biped")))
|
||||
add_entity(Player.new(spawnpoint: @map_loader.spawnpoints.sample, manifest: Manifest.new(package: "base", name: "character")))
|
||||
|
||||
# TODO: Load lights from MapLoader
|
||||
add_light(Light.new(id: available_light, x: 3, y: -6, z: 6))
|
||||
|
||||
@@ -6,7 +6,7 @@ class IMICFPS
|
||||
@map = Map.new(map_loader: @options[:map_loader])
|
||||
@map.setup
|
||||
|
||||
@player = @map.find_entity_by(name: "biped")
|
||||
@player = @map.find_entity_by(name: "character")
|
||||
@camera = Camera.new(position: @player.position.clone)
|
||||
@camera.attach_to(@player)
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class IMICFPS
|
||||
add_asset(:model, entity.package, entity.name)
|
||||
end
|
||||
|
||||
add_asset(:model, "base", "biped")
|
||||
add_asset(:model, "base", "character")
|
||||
|
||||
@act = false
|
||||
@cycled = false
|
||||
|
||||
Reference in New Issue
Block a user