These are chat archives for Azurasky1/DragonArena

4th
Aug 2016
Billy B.
@Azurasky1
Aug 04 2016 06:21
ok
were u able to figure out why the code didn't work previously
Andrea Sonny
@andreasonny83
Aug 04 2016 06:35
Sure, have a look at the code difference in my commit. There were several errors around
Billy B.
@Azurasky1
Aug 04 2016 06:53
it doesn't look terribly different to me
i think im missing something
Andrea Sonny
@andreasonny83
Aug 04 2016 06:54
Did you have a look at the code difference in git?
Billy B.
@Azurasky1
Aug 04 2016 06:54
yeah i'm looking at it right now
the drawimage for the enemy is the same, do you know what was causing the error?
my theory was that it was running before the image had a chance to load
Andrea Sonny
@andreasonny83
Aug 04 2016 06:58
Azurasky1/DragonArena@53991c3
One big miatake was the App.prototype.update you put inside the
App.prototype.boardReady
Then, using variables not declared around
I exposed the app object to the global scope so it's easier to debug. You can simply type $app in your Chrome console, at any time, to look inside that