начать 4.0

This commit is contained in:
2021-10-05 15:10:01 +03:00
parent 4f90255c9a
commit aa294c8530
21 changed files with 1060 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
function Физика()
{
this.создать = function()
{
this.движок = Matter.Engine.create({
enableSleeping: true,
gravity: {
y: 2,
},
});
};
this.обновить = function() {
Matter.Engine.update(this.движок);
};
// Конструктор.
this.создать();
}