class Snake_Game::Food

Defined in:

snake.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def collision : RL::Rectangle #

[View source]
def consume #

[View source]
def draw #

[View source]
def pos : Raylib::Vector2 #

[View source]
def pos=(pos : Raylib::Vector2) #

[View source]
def size : Raylib::Vector2 #

[View source]
def size=(size : Raylib::Vector2) #

[View source]
def spawn_food #

[View source]
def update #

[View source]