Skip to content

Commit

Permalink
Added new Phaser event section block for easier code separation.
Browse files Browse the repository at this point in the history
Added Phaser variable types for sprites, tile sprites and physic sprites.
Added auto-cleanup for Phaser group sprites.
Fixed critical Phaser performance issues which had registered the same event handler several time (up to 20 000).
Improved Phaser helper and Phaser extra frameworks to latest api changes.
  • Loading branch information
MarkusBordihn committed Feb 23, 2024
1 parent 6d99642 commit 39c6c53
Show file tree
Hide file tree
Showing 28 changed files with 1,060 additions and 478 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"WASD",
"winbox",
"worker",
"worldbounds",
"xlink",
"yandex"
],
Expand Down
8 changes: 8 additions & 0 deletions locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"AS_ACTION_TEXT": "als Aktion Text",
"AS_ARCADE_SPRITE": "als Arcade Sprite",
"AS_AUDIO": "als Ton",
"AS_BACKGROUND": "als Hintergrund",
"AS_BALL": "als Ball",
"AS_CEILING": "als Decke",
"AS_DYNAMIC_TEXT": "als dynamischen Text",
Expand Down Expand Up @@ -79,6 +80,7 @@
"BLOCKS_PHASER_DEBUG_POINTER": "Debug Zeiger",
"BLOCKS_PHASER_DEBUG_SPRITE": "Debug Sprite",
"BLOCKS_PHASER_DYNAMIC_TEXT_ADD_HIGHSCORE": "als Highscore",
"BLOCKS_PHASER_EVENT": "Ereignisse",
"BLOCKS_PHASER_EXAMPLE_FILES": "Beispiel Dateien",
"BLOCKS_PHASER_EXAMPLE_FILES_BACKGROUND": "Hintergrundbilder",
"BLOCKS_PHASER_EXAMPLE_FILES_BALL": "Ballbilder",
Expand Down Expand Up @@ -111,6 +113,7 @@
"BLOCKS_PHASER_MOUSE_KEYS": "Maus Tasten",
"BLOCKS_PHASER_NO_AUTOSTART": "nicht automatisch starten",
"BLOCKS_PHASER_ON_CREATE": "beim Erstellen",
"BLOCKS_PHASER_ON_EVENT": "bei Ereignis",
"BLOCKS_PHASER_ON_INPUT": "bei Eingabe",
"BLOCKS_PHASER_ON_OUT_OF_BOUNDS": "beim Verlassen des Spielfelds",
"BLOCKS_PHASER_ON_PRELOAD": "beim Vorausladen",
Expand Down Expand Up @@ -144,10 +147,13 @@
"BLOCKS_PHASER_TIME_EVENT": "nach",
"BLOCKS_PHASER_TIME_LOOP_EVENT": "wiederhole alle",
"BLOCKS_PHASER_UPDATE": "Aktualisieren",
"BLOCKS_PHASER_VARIABLE_AUDIO": "Audio",
"BLOCKS_PHASER_VARIABLE_TEXT": "Text",
"BLOCKS_PHASER_VARIABLE_GROUP": "Gruppe",
"BLOCKS_PHASER_VARIABLE_INPUT": "Eingabe",
"BLOCKS_PHASER_VARIABLE_SPRITE": "Sprite",
"BLOCKS_PHASER_VARIABLE_TILE_SPRITE": "Tile Sprite",
"BLOCKS_PHASER_VARIABLE_ARCADE_SPRITE": "Arcade Sprite",
"BLOCKS_PHASER_WITH_THE_SIZE": "mit der Größe",
"BLOCKS_PHASER_WORLD": "Welt",
"BLOCKS_PHASER_WORLD_ARCADE_PHYSICS": "Welt Arcade-Physik",
Expand Down Expand Up @@ -272,6 +278,8 @@
"VELOCITY_X": "Geschwindigkeit x",
"VELOCITY_Y": "Geschwindigkeit y",
"VISIBLE": "Sichtbar",
"WARNING.NO_VARIABLE_DEFINED": "Keine Variable definiert",
"WARNING.RESERVED_VARIABLE_NAME": "Reservierter Variablename",
"WITH_AUTOSCROLL": "mit automatisches Scrollen",
"WITH_DIMENSION": "mit Abmessung",
"WITH_GROUP": "mit Gruppe",
Expand Down
8 changes: 8 additions & 0 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"AS_ACTION_TEXT": "as action text",
"AS_ARCADE_SPRITE": "as arcade sprite",
"AS_AUDIO": "as audio",
"AS_BACKGROUND": "as background",
"AS_BALL": "as ball",
"AS_CEILING": "as ceiling",
"AS_DYNAMIC_TEXT": "as dynamic text",
Expand Down Expand Up @@ -80,6 +81,7 @@
"BLOCKS_PHASER_DEBUG_SPRITE": "debug sprite",
"BLOCKS_PHASER_DYNAMIC_TEXT_ADD_HIGHSCORE": "as highscore",
"BLOCKS_PHASER_INPUT_LOGIC": "Input Logic",
"BLOCKS_PHASER_EVENT": "Events",
"BLOCKS_PHASER_EXAMPLE_FILES": "Example Files",
"BLOCKS_PHASER_EXAMPLE_FILES_BACKGROUND": "Backgroud Images",
"BLOCKS_PHASER_EXAMPLE_FILES_BALL": "Ball Images",
Expand Down Expand Up @@ -112,6 +114,7 @@
"BLOCKS_PHASER_MOUSE_KEYS": "mouse keys",
"BLOCKS_PHASER_NO_AUTOSTART": "no autostart",
"BLOCKS_PHASER_ON_CREATE": "on create",
"BLOCKS_PHASER_ON_EVENT": "on event",
"BLOCKS_PHASER_ON_INPUT": "on input",
"BLOCKS_PHASER_ON_OUT_OF_BOUNDS": "on out of bounds",
"BLOCKS_PHASER_ON_PRELOAD": "on preload",
Expand Down Expand Up @@ -145,10 +148,13 @@
"BLOCKS_PHASER_TIME_LOOP_EVENT": "repeat every",
"BLOCKS_PHASER_UPDATE": "Update",
"BLOCKS_PHASER_WITH_THE_SIZE": "with the size",
"BLOCKS_PHASER_VARIABLE_AUDIO": "Audio",
"BLOCKS_PHASER_VARIABLE_TEXT": "Text",
"BLOCKS_PHASER_VARIABLE_GROUP": "Group",
"BLOCKS_PHASER_VARIABLE_INPUT": "Input",
"BLOCKS_PHASER_VARIABLE_SPRITE": "Sprite",
"BLOCKS_PHASER_VARIABLE_TILE_SPRITE": "Tile Sprite",
"BLOCKS_PHASER_VARIABLE_ARCADE_SPRITE": "Arcade Sprite",
"BLOCKS_PHASER_WORLD": "World",
"BLOCKS_PHASER_WORLD_ARCADE_PHYSICS": "world arcade physics",
"BLOCKS_PHASER_WORLD_ARCADE_PHYSICS_CHANGE": "change world arcade physics",
Expand Down Expand Up @@ -272,6 +278,8 @@
"VELOCITY_X": "velocity x",
"VELOCITY_Y": "velocity y",
"VISIBLE": "visible",
"WARNING.NO_VARIABLE_DEFINED": "No variable defined",
"WARNING.RESERVED_VARIABLE_NAME": "Reserved variable name",
"WITH_AUTOSCROLL": "with autoscroll",
"WITH_DIMENSION": "with dimension",
"WITH_GROUP": "with group",
Expand Down
Loading

0 comments on commit 39c6c53

Please sign in to comment.