xzfc / agar-expose

Yet another ogar client
12 stars 12 forks source link

add rendering modifications #3

Closed u624ka closed 8 years ago

u624ka commented 8 years ago

"Show Mass" now displays mass of every cell Viruses show the number of W's until split instead of mass Cell names and mass Y position is now adjustable through window.bakaconf.cellNameOffsetY and .cellMassOffsetY Cell mass font size is now adjustable trough window.bakaconf.cellMassScale Score X and Y are now adjustable through window.bakaconf.scoreX and .scoreY Cells are now color-coded based on threat level (can splitkill, can eat, neutral, can be eaten, can be splitkilled). Enabled through window.agar.enableColorCoding. By default, can be toggled by '['. Color coding can be set to offensive (compare to your biggest cell) or defensive (compare to your smallest cell). Set through window.agar.colorOffensive (true for offensive, false for defensive). Toggled by ''' (single quote). Virus and pellet colors are now adjustable through window.bakaconf.virusColor and .pelletColor

Experimental: split guides for own cells, viruses and enemy cells that can splitkill you. Enabled through window.agar.enableSplitGuides, can be toggled by ']' by default. Split guide linewidth adjustable through window.bakaconf.splitGuideWidth

xzfc commented 8 years ago

Плохой коммит.

u624ka commented 8 years ago

Экспоз должен только вытаскивать наружу переменную window.agar, но сам по себе ничего не должен делать, если эту переменную не трогать

Хорошо, учту на будущее.

Регекспы хрупкие.

Зич поменял логику в новейшей версии. Например, в коде для покраски вынес цвет в отдельное значение и уже потом его присваивал заливке с границами. Я не понимаю, как ты хочешь покрыть все возможные извращения одним выражением. Само собой, они ломаться будут время от времени.

В сообщении к коммиту упоминаются хоткеи, хотя экспоз ими не заведует.

Моя ошибка: они в бакаскрипте заданы.