class JamWarmUp::Bullet

Defined in:

jam_warm_up/bullet.cr

Constant Summary

Color = SF::Color::Red
Damage = 25
Height = 12
Radius = 6
Speed = 1920
Width = 48

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0) #

[View source]

Instance Method Detail

def circle : SF::CircleShape #

[View source]
def collision_box : CollisionBox #

[View source]
def color #

[View source]
def damage #

[View source]
def dead? : Bool #

[View source]
def die #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def height #

[View source]
def radius #

[View source]
def rectangle : SF::RectangleShape #

[View source]
def speed #

[View source]
def update(frame_time) #

[View source]
def width #

[View source]
def x : Int32 | Float32 #

[View source]
def y : Int32 | Float32 #

[View source]