Difference between revisions of "love.physics.newWorld"
m (1 revision: Importing from potato (again).) |
m |
||
Line 1: | Line 1: | ||
− | |||
Creates a new World. | Creates a new World. | ||
This function creates a new World with the given size, no gravity and sleeping turned on. | This function creates a new World with the given size, no gravity and sleeping turned on. | ||
Line 32: | Line 31: | ||
{{#set:Description=Creates a new World. | {{#set:Description=Creates a new World. | ||
}} | }} | ||
+ | == Other Languages == | ||
+ | {{i18n|love.physics.newWorld}} |
Revision as of 20:44, 18 November 2010
Creates a new World. This function creates a new World with the given size, no gravity and sleeping turned on.
Contents
Function
Synopsis
world = love.physics.newWorld( w, h )
Arguments
Returns
World world
- A World object.
Function
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.
Returns
World world
- A brave new World.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info