struct CrystalPong::MainState

Defined in:

crystal_pong.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def ball_pos : Tuple(Int32, Int32) #

[View source]
def ball_vel : SF::Vector2(Float64) #

[View source]
def ball_vel=(ball_vel : SF::Vector2(Float64)) #

[View source]
def player_1_score : Int32 #

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

[View source]
def player_2_score : Int32 #

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

[View source]
def randomize_vec(vec : SF::Vector2(Float64), x : Float64, y : Float64) #

[View source]
def reset_ball(ball) #

[View source]