Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
Game Engine Example
main
Game
Acceleration
Level
AquaticRuin
AquaticRuinBg
BackdropBuilder
Builder
ChemicalPlantBg
PlayfieldBuilder
Test
TestBg
Tile
Backdrop
Map
Namespace
Animator
Playfield
Rasterizer
Distortion
Built with Crystal 1.9.2
2023-10-07 19:14:15 UTC
struct
Game::Acceleration
Game::Acceleration
Struct
Value
Object
Defined in:
game.cr
Constructors
.new
(cap =
10
)
Instance Method Summary
#accel
(ax, ay)
#decel_x
#decel_y
#recap
(cap)
#speed
#x
: Float64
#x=
(x : Float64)
#y
: Float64
#y=
(y : Float64)
Constructor Detail
def self.
new
(cap =
10
)
#
[
View source
]
Instance Method Detail
def
accel
(ax, ay)
#
[
View source
]
def
decel_x
#
[
View source
]
def
decel_y
#
[
View source
]
def
recap
(cap)
#
[
View source
]
def
speed
#
[
View source
]
def
x
: Float64
#
[
View source
]
def
x=
(x : Float64)
#
[
View source
]
def
y
: Float64
#
[
View source
]
def
y=
(y : Float64)
#
[
View source
]