2009 Ubisoft Campus Recruitment
Direct3DCarRacingGame
Goal
• CreateacarracinggameusingDirect3D
Details
• Inthisgame,theplayermustbeabletocontrolacarusingUP/DOWN/LEFT/RIGHT
arrowstospeedup,slowdown,moveleft, andmoverightontheracingtrack
• Theracingtrackisaperfectlycircle,andthetrackiswideenoughtolet3carstorun
onsidebysideatthesametime(thetrackhas3lanes);nocarcanrunoutofthe
boundariesoftheracingtrack
• Therearetwocameramodes,theSHIFTkeyisusedtoswitchbetweenthetwo
modes
o Thegamecameracanfollowbehindthecartheplayeriscurrently
controlling,shootingatthecontrolledcarwithanangleof45degrees;the
viewofthecamerashouldbewideenoughtoseetheentirewidthofthe
racingfield
whentheSHIFTkeyispressedtochangetheviewofthecamera
;
nnotreverse;thecarshouldalwaysmoveforwardfollowingthecurveofthe
ack
keys
eansthecarismovingforwardalongthetrack,ratherthan
ovingstraightahead!)
tedondifferentlanes,
henacarhitsanyobstacleontheway,thecarexplodes
rshiteachother,bothexplode;therecanbeasmanyas3othercompeting
ars
racingaroundthetrack,thefirstcarwhichreachesthestarting
ointisthewinner
track
o Thegamecameracanalsobeatopdownviewofthewhole
• TheUP/DOWNarrowkeysaccelerates/deceleratesthecar,thereisamaximum
speedlimitforthecaryouarecontrolling,andtheminimumspeedofthecariszero
carsca
tr
• TheLEFT/RIGHTarrowkeysareusedtomovethecarleftorright;ifLEFT/RIGHT
arenotpressed,thecarshouldmoveforwardfollowingthecurrentcirclecurve
alongthetrack(whichm
m
• Therearerandomobstaclesalongtheracingtrackdistribu
w
• Thereareprogramcon trolledcarscompetingwithplayercontrolledcar,whenany
twoca
c
• After10lapsofthe
p
Chengdu Ubisoft Computer Software Co., Ltd.
- 1
- 2
前往页