Fixed nameplate oddly cutting off terrain, got a grid for terrain, first/third person toggle.

This commit is contained in:
2018-03-31 21:22:11 -05:00
parent 162e23d0b4
commit 05a77a0f11
6 changed files with 54 additions and 37 deletions

View File

@@ -2,7 +2,7 @@ class IMICFPS
class Player < GameObject
attr_accessor :speed
attr_reader :name, :bound_model
attr_reader :name, :bound_model, :first_person_view
def setup
bind_model(ModelLoader.new(type: :obj, file_path: "objects/biped.obj", game_object: self))
@@ -76,8 +76,10 @@ class IMICFPS
end
def draw
draw_nameplate
super
if !@first_person_view
draw_nameplate
super
end
end
def update