Difference between revisions of "love.physics.newWorld (Русский)"

 
(One intermediate revision by the same user not shown)
Line 40: Line 40:
 
{{param_(Русский)|World|world|Новый объект World.}}
 
{{param_(Русский)|World|world|Новый объект World.}}
 
== Смотрите также ==
 
== Смотрите также ==
* [[parent::World_(Русский)]]
+
* [[parent::love.physics_(Русский)]]
 +
* [[Constructs::World_(Русский)]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Создает объект World.}}
 
{{#set:Description=Создает объект World.}}
 +
{{#set:Since=000}}
 
== Другие языки ==
 
== Другие языки ==
 
{{i18n|love.physics.newWorld}}
 
{{i18n|love.physics.newWorld}}

Latest revision as of 16:20, 5 June 2013

Создает объект World.

Функция

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

Вид

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

Аргументы

number w
Ширина.
number h
Высота.

Возвращает

World world
Новый объект World.

Функция

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

Вид

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

Аргументы

number x1
Наименьшая X координата в объекте World.
number y1
Наименьшая Y координата в объекте World.
number x2
Наибольшая X координата в объекте World.
number y2
Наибольшая Y координата в объекте World.

Возвращает

World world
Новый объект World.

Функция

Вид

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

Аргументы

number x1
Наименьшая X координата в объекте World.
number y1
Наименьшая Y координата в объекте World.
number x2
Наибольшая X координата в объекте World.
number y2
Наибольшая Y координата в объекте World.
number xg
X компонента гравитации.
number yg
Y компонента гравитации.
boolean sleep (true)
Могут ли тела засыпать.

Возвращает

World world
Новый объект World.

Смотрите также


Другие языки