I\'m working on a small arcade video game, and I am looking to double buffer to improve animation. I have one class that\'s supposed to draw the blank image, and another class t
You're calling dbg on the this instance, not the instance of render.
dbg
this
render
You need to change it to
render.dbg.drawLine(....)
Alternatively, if you wanted to leave the dbg call the same, you could call
this.gameRender();
first and then call
dbg.drawLine(...);