love.physics.newWorld (Français)

Créer un nouvel environnement physique. Cette fonction créer un nouvel environnement avec la taille précissée en paramètre, pas de gravité et le 'sleeping' activé.

Fonction

Removed in LÖVE 0.7.0
This variant is not supported in that and later versions.

Synopsis

world = love.physics.newWorld( w, h )

Arguments

number w
La largeur de l'environnement physique.
number h
La hauteur de l'environnement physique.

Retour

World world
A World object.

Fonction

Available since LÖVE 0.7.0
This variant is not supported in earlier versions.

Synopsis

world = love.physics.newWorld( x1, y1, x2, y2 )

Arguments

number x1
The smallest x position in the world.
number y1
The smallest y position in the world.
number x2
The largest x position in the world.
number y2
The largest y position in the world.

Retour

World world
A World object.

Fonction

Synopsis

world = love.physics.newWorld( x1, y1, x2, y2, xg, yg, sleep )

Arguments

number x1
The smallest x position in the world.
number y1
The smallest y position in the world.
number x2
The largest x position in the world.
number y2
The largest y position in the world.
number xg
The x component of gravity.
number yg
The y component of gravity.
boolean sleep (true)
Whether sleep is possible in the world.

Retour

World world
Le nouvel environnement physique créé.

Voir Aussi

Autres Langues