Should actors in a game be responsible for drawing themselves?
- by alex
I am very new to game development, but not to programming.
I am (again) playing around with a Pong type game using JavaScript's canvas element.
I have created a Paddle object which has the following properties...
width
height
x
y
colour
I also have a Pong object which has properties such as...
width
height
backgroundColour
draw().
The…