BuoYancYdabl / Atomic-Incremental

Incremental game about atoms. Made in TIC-80
MIT License
1 stars 0 forks source link

Code refactory #5

Closed BuoYancYdabl closed 1 year ago

BuoYancYdabl commented 1 year ago

Get rid of the unknown global and local variables, such as var. Get rid of local variables outside any function to prevent code-confusing later. Create pseudo-constant variables, that wont be changed (before creating new constant have to check the list of all constants Lua is using to prevent overwriting suficient constants, such as _G or _VERSION.