xna-4.0

Game Architecture

怎甘沉沦 提交于 2019-11-27 05:13:55
问题 I have a question about a XNA game I'm making, but it is also a generic question for future games. I'm making a Pong game and I don't know exactly what to update where, so I'll explain better what I mean. I have a class Game, Paddle and Ball and, for example, I want to verify the collisions between the ball with the screen limits or the paddles, but I come across 2 approaches to do this: Higher Level Approach - Make paddle and ball properties public and on the Game.Update check for collisions