What are the statements in XNA?
Posted
by
Katie Hajduk
on Game Development
See other posts from Game Development
or by Katie Hajduk
Published on 2012-12-09T16:46:09Z
Indexed on
2012/12/09
17:20 UTC
Read the original article
Hit count: 234
xna-4.0
A hypothetical game called “AlienShooter” needs to be able to work on Windows and on the Xbox. In the Windows version, the keyboard will handle firing at alien spaceships, and this functionality is contained within a method called “KeyboardSupport()”. In the Xbox version of the game, the gamepad will be used for shooting, and this functionality is contained within a method called “GamepadSupport()”. Write the statement(s) that must be added so that the appropriate code is used in the each version of the game.
© Game Development or respective owner