class Buzzle::Scene::View

Defined in:

buzzle/scene/view.cr

Constant Summary

BORDER_HIDE = Game::GRID_SIZE * 2
EDGE_VIEWABILITY = Game::GRID_SIZE * 1
VIEW_THRESHOLD = Game::GRID_SIZE * 3

Constructors

Instance Method Summary

Instance methods inherited from class Buzzle::View

height : Int32 height, viewable?(x, y, width, height, view_x, view_y)
viewable?(obj : Obj, view_x, view_y)
viewable?
, width : Int32 width, x : Int32 x, y : Int32 y

Constructor methods inherited from class Buzzle::View

new(x : Int32, y : Int32, width : Int32, height : Int32, view_x : Int32 = 0, view_y : Int32 = 0) new

Constructor Detail

def self.new(player : Buzzle::Player, room : Buzzle::Room::Base) #

[View source]

Instance Method Detail

def draw #

draws border around view to smooth view movement


[View source]
def movement(frame_time) #

[View source]
def player : Player #

[View source]
def room : Room::Base #

[View source]
def room=(room : Room::Base) #

[View source]
def screen_x #

[View source]
def screen_y #

[View source]
def update(frame_time) #

[View source]
def viewable?(obj : Obj) #

[View source]