Start and restart play mode

This commit is contained in:
2023-10-11 22:22:41 +00:00
parent cff5483325
commit 8f455476f1
9 changed files with 129 additions and 172 deletions

View File

@@ -600,6 +600,11 @@ var Game = {
register_obj(obj) {
this.objects[obj.body] = obj;
},
unregister_obj(obj) {
if (this.objects[obj.body] === obj)
this.objects[obj.body] = undefined;
},
/* Returns an object given an id */
object(id) {