class Snake_Game::Snake

Defined in:

snake.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def body_arr : Array(Raylib::Vector2) #

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

[View source]
def check_collision #

[View source]

[View source]
def draw #

[View source]
def eat(food) #

[View source]
def handle_keys #

[View source]
def move #

[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 snake_size : Int32 #

[View source]
def speed : Int32 #

[View source]
def speed=(speed : Int32) #

[View source]
def update #

[View source]