начать 3.5

This commit is contained in:
2021-09-29 14:56:33 +03:00
parent a8702d6c27
commit cfee7b9a3c
19 changed files with 941 additions and 0 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.создать();
}