]> git.lizzy.rs Git - dragonblocks.git/commit
Code style overhaul
authorElias Fleckenstein <eliasfleckenstein@web.de>
Fri, 25 Jun 2021 20:36:16 +0000 (22:36 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Fri, 25 Jun 2021 20:36:16 +0000 (22:36 +0200)
commitab08df8f4a6588ea3541a187cccce5c3c559459a
tree2b054ee033f6cb8755863a169da852d624cbc16d
parent7dbc5032b29febdc34ef802151c48681c23c1deb
Code style overhaul
- fixed code format and a few performance / style flaws
- modernized JavaScript (always use arrow function now)
- rewrote main menu, the main menu code itself can now be restarted without having to reload the page (but other pieces of code need to be made compatible still)
- better inventory hiding / showing
- use EventTarget for some things that were previously done by callbacks
- added basic support for running as a chrome app (e.g. the quit button closing the app)
- focus more on chrome / chromium instead of firefox, fix graphical flaws caused by chromium acting different than chrome
- automatic error reporting
- gui tweaks, especially in main menu
- some terminology changes and simplification of internal structures, less polluted dragonblocks namespace
- more effective interaction with backend, do more things backend-side
- use saved DOM element references instead of IDs in some cases
- use less object orientation in cases where it does not make sense to use OOP
50 files changed:
api.php
credits.json
engine/assets.js [new file with mode: 0644]
engine/builtin.js
engine/chat.js
engine/chatcommands.js
engine/craftfield.js
engine/creative_inventory.js
engine/entity.js
engine/falling_node.js
engine/group.js
engine/gui.js
engine/hudbar.js
engine/init.js
engine/inventory.js
engine/inventory_container.js
engine/inventory_group.js
engine/item.js
engine/item_entity.js
engine/item_stack.js [new file with mode: 0644]
engine/itemstack.js [deleted file]
engine/key_handler.js
engine/mainmenu.js
engine/map.js
engine/map_interaction.js
engine/map_node.js
engine/mapgen.js
engine/menu.js
engine/node.js
engine/out_stack.js [new file with mode: 0644]
engine/pixel_manipulator.js
engine/player.js
engine/recipe.js
engine/ressources.js [deleted file]
engine/skin.js
engine/spawned_entity.js
engine/timer.js
engine/tool.js
engine/world.js
game/chest/init.js
game/furnace/inventory.js
game/furnace/itemdef.js
game/plants/plants.js
game/skins/ui.js
game/tnt/init.js
index.html
lib/dblib.js
settings.json
style.css
version.json [new file with mode: 0644]