Rockem: Robot Boxing Sample (DirectSound 3D, DirectDraw)

Click to open or copy the files for the Rockem sample.

This sample demonstrates many of the features of DirectX, including DirectDraw, Direct 3D and DirectSound. It also demonstrates DirectSound3D.

This game is not optimized for raw speed.  It is meant to give a clear demonstration of how the DirectX technologies can be used.

When you build this sample, it will create a Rockem3d.exe file in either the retail or debug subdirectories, depending on which version you built.  However, you must then copy the EXE up one directory to the Rockem sample root (such as c:\dxsdk\sdk\samples\rockem).  This is because Rockem also needs to find its WAV files and other resources from that directory.

Building SDK Samples

This sample uses the following keywords:

abs; addattachedsurface; adddebris; addlight; addmovecallback; addpositionkey; addvisual; blt; checkinputandupdate; cleanup; clear; commitdeferredsettings; createanimation; createanimationset; createbufferfromwavefile; createdevicefromd3d; createframe; createlightrgb; createmeshbuilder; createpalette; createsoundbuffer; createsoundbuffer3d; createsurface; createviewport; createwindowex; d3denumdevicecallback; d3dval; ddenumcallback; ddenumdisplaymodescallback; defwindowproc; deletevisual; destroywindow; direct3drmcreate; directdrawcreate; directdrawenumerate; directsoundcreate; dispatchmessage; dosplashscreen; enterhighestvideomode; enterlowestvideomode; enternextvideomode; enterprevvideomode; entervideomode; entervideomodewhbd; enumdevices; enumdisplaymodes; failed; fclose; finddevice; flip; fopen; forceupdate; fread; fseek; getasynckeystate; getattachedsurface; getcaps; getdc; getdisplaymode; getnamedobject; getposition; getstatus; getstockobject; getsystemmetrics; gettextmetrics; initclass; initd3ddevice; initdirectx; initscene; initwindow; iskeydown; islost; load; loadaccelerators; loadcursor; loadicon; loadtexture; loadtextures; lock; lookat; makeintresource; mcisendstring; memcpy; memset; move; outputdebugstring; pack; pausemidi; peekmessage; play; player1animationcallback; player2animationcallback; playmidi; playrandomwave; playsoundds; positioncamera; postmessage; postquitmessage; queryinterface; rand; readdata; recalcpowerbars; reentercurrentvideomode; regerror; registerclass; release; releasedc; releasesplashscreen; render; renderscene; replaymidi; restore; restoredisplaymode; restoresurfaces; resumemidi; rgb; runintro; setback; setbkmode; setbuffercount; setcooperativelevel; setdefaulttexturecolors; setdefaulttextureshades; setdirectdrawexclusivemode; setdisplaymode; setdither; setenableframe; setframe; setoptions; setorientation; setpalette; setperspective; setposition; setquality; setrollofffactor; setrotation; setshades; settextcolor; settexturequality; settime; settimer; setzbuffermode; showcursor; showwindow; softwareguid; sortdisplaymodes; sprintf; stop; stopallsounds; stopmidi; strcmp; strcpy; switch; termdirectx; termscene; textout; timegettime; traceerrord3d; traceerrord3drm; traceerrordd; traceerrords; transitioncamera; translateaccelerator; translatemessage; try_d3d; try_d3drm; try_dd; try_ds; unlock; update; updatedebris; updateopponent; updatewindow; winmain; wndproc; wsprintf; zeromemory