начали 3.3

This commit is contained in:
2021-09-17 15:17:03 +03:00
parent 769f8791a2
commit 16b041b16b
38 changed files with 684 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.создать();
}