Ludum Dare Code Pong

Last Commits by udo

By Time Commit URL / Comment Size
udo (27) 23. Sep 2018 ยท 02:01 UTC 01177466 http://direct.openfu.com/ld/mazeblobber/v13.html 44kB
2018-09-23 02:01:55 UTC Play initial import // testing the commit system // - persist tiles in the dungeon variable - show surrounding tiles // New tile type *, tile can now have an item on it, the item's name is shown in the tile description when you're standing on it // Layout to make more room for the text log // basic/naive raycasting for visibility computation // Stint McGrath says 'Why...?' // Now with corpses! // Equip items // - bundled player action functions in playerActions (mainly to make the source file easier to navigate) - inventory and lightRadius is now part of the player object // inventory shortcuts are now stable letters // Fixed HTML corruption // - grouped AI actions - grouped creature and item templates - attacking creatures are now red // Damage model: Attacker hits, for each equipped item that has .ac there is then a chance of Math.random() < item.ac / attacker.accuracy that the item will absorb damage: amount *= clamp(1-absorption, 0, 1) // renderMap() showTileInfo() showPlayerStats() are now independent and have no side effects tick() passes time but does not display anything updateUI() refreshes display but does not pass time turn() passes time and updates UI ^^^ this should be the default for most player actions