DONUTS

所属分类:Windows CE
开发工具:Others
文件大小:316KB
下载次数:150
上传日期:2008-05-14 17:12:34
上 传 者xajhuang
说明:  Windows CE 5.0 DirectDraw 微软示例源代码 一个比较小巧俱全的游戏源代码
(Microsoft Windows CE 5.0 DirectDraw sample source code of a relatively small taste of the game source code)

文件列表:
INCLUDE\ddmm.h (1038, 2004-07-01)
INCLUDE\ddutil.h (1655, 2004-07-01)
INCLUDE\ddutil2.h (1400, 2004-07-01)
INCLUDE\lbprintf.h (1042, 2004-07-01)
DDUTIL\ddutil.cpp (9815, 2004-07-01)
DDUTIL\makefile (662, 2004-07-01)
DDUTIL\obj\ARMV4I\retail\ddutil.obj (16310, 2008-05-14)
DDUTIL\obj\ARMV4I\retail\_objects.mac (66, 2008-05-14)
DDUTIL\sources (957, 2004-07-01)
DONUTS\bangbang.wav (24120, 2004-07-01)
DONUTS\bounce.wav (13468, 2004-07-01)
DONUTS\c_bang.wav (2410, 2004-07-01)
DONUTS\donuts.bmp (272438, 2004-07-01)
DONUTS\donuts.c (53113, 2004-07-01)
DONUTS\donuts.h (5918, 2004-07-01)
DONUTS\donuts.ico (766, 2004-07-01)
DONUTS\donuts.rc (1858, 2004-07-01)
DONUTS\dsutil.c (9832, 2004-07-01)
DONUTS\d_bang.wav (21722, 2004-07-01)
DONUTS\gunfire.wav (6376, 2004-07-01)
DONUTS\hum.wav (9416, 2004-07-01)
DONUTS\level.wav (54192, 2004-07-01)
DONUTS\makefile (662, 2004-07-01)
DONUTS\p_bang.wav (21824, 2004-07-01)
DONUTS\resource.h (891, 2004-07-01)
DONUTS\rev.wav (6234, 2004-07-01)
DONUTS\shield.wav (31534, 2004-07-01)
DONUTS\skid.wav (9154, 2004-07-01)
DONUTS\sources (1556, 2004-07-01)
DONUTS\splash.bmp (308278, 2004-07-01)
DONUTS\s_bang.wav (2588, 2004-07-01)
DDUTIL\obj\ARMV4I\retail (0, 2008-05-14)
DDUTIL\obj\ARMV4I (0, 2008-05-14)
DDUTIL\obj (0, 2008-05-14)
INCLUDE (0, 2008-05-14)
DDUTIL (0, 2008-05-14)
DONUTS (0, 2008-05-14)

//----------------------------------------------------------------------------- // // Sample Name: Space Donuts Sample // // Copyright (c) 19***-2000 Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- Description =========== This simple game shows how to combine DirectDraw and DirectSound. Although it demonstrates other DirectX components, it is primarily intended to show how to animate multiple sprites. The DirectSound component can be compiled out by not defining USE_DSOUND. User's Guide ============ Input is from the keyboard. No other input device is supported. The commands are listed on the opening screen. All numbers must be entered from the numeric keypad. Key Command ESC, F12 Quit 4 Turn left 6 Turn right 5 Stop 8 Accelerate forward 2 Accelerate backward 7 Shield SPACEBAR Fire ENTER Start game F1 Toggle trailing afterimage effect on/off F3 Turn audio on/off F5 Toggle frame rate display on/off F10 Main menu The game uses the following command line switches, which are case-sensitive: e Use software emulation, not hardware acceleration t Test mode, no input required x Stress mode. Never stop if you can help it S Turn sound off/on (only if compiled with USE_DSOUND) Programming Notes ================= This game demonstrates many of the features of DirectDraw. It takes advantage of hardware acceleration if it is supported by the driver. The program requires less than 1 MB of video RAM. The sound code is deliberately designed to stress the DirectSound API. It is not intended to be a demonstration of how to use DirectSound API efficiently. For example, each bullet on the screen uses a different sound buffer. Space Donuts creates over 70 sound buffers (including duplicates), and between 20 to 25 may be playing at any time. The sounds are implemented using the helper functions in Dsutil.h and Dsutil.c (found in the Sdk\Samples\Misc directory). These functions might help you to add sound to your application quickly and easily. This library must be linked if USE_DSOUND is defined. Note: This sample requires hardware flipping support. If the display driver doesn't support page flipping the sample will exit during initialization.

近期下载者

相关文件


收藏者