Search found 1 match

by vinperdom
Wed Oct 21, 2020 1:56 am
Forum: Support and Development
Topic: scope of self in classes
Replies: 1
Views: 3295

scope of self in classes

I'm using the classes lib from CS50 (I'll show in the code below). I have a Shield.lua class for a shield, https://github.com/vinperdom/Colorless/blob/master/src/Shield.lua (here, and the class lib is in lib/class.lua). If I put all the logic inside the update function it works properly, but if I ab...