游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3523|回复: 5

重要补充:压缩包中少了个"再快一点.h"

[复制链接]

42

主题

334

帖子

344

积分

中级会员

Rank: 3Rank: 3

积分
344
发表于 2004-7-29 09:18:00 | 显示全部楼层 |阅读模式
在11章.再快一点的源程序中漏了一个文件"再快一点.h"
请把以下程序拷贝建立成"再快一点.h"文件,并放在11章的源程序中。
感谢 lacutis1976 的提醒。

#if !defined(AFX__H__BE1E6F56_ADAE_4754_9454_24FF3D113F9D__INCLUDED_)
#define AFX__H__BE1E6F56_ADAE_4754_9454_24FF3D113F9D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
        #error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"                // main symbols

/////////////////////////////////////////////////////////////////////////////
// CMyApp:
// See 再快一点.cpp for the implementation of this class
//

class CMyApp : public CWinApp
{
public:
        CMyApp();
        HCURSOR m_Cur0;
        HCURSOR m_Cur1;
        HCURSOR m_Cur2;
        HCURSOR m_Cur3;
// Overrides
        // ClassWizard generated virtual function overrides
        //{{AFX_VIRTUAL(CMyApp)
        public:
        virtual BOOL InitInstance();
        //}}AFX_VIRTUAL

// Implementation

        //{{AFX_MSG(CMyApp)
        //}}AFX_MSG
        DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX__H__BE1E6F56_ADAE_4754_9454_24FF3D113F9D__INCLUDED_)
[em5]

0

主题

10

帖子

10

积分

新手上路

Rank: 1

积分
10
发表于 2004-7-29 12:24:00 | 显示全部楼层

Re:重要补充:压缩包中少了个"再快一点.h"

我觉得第11章也没快多少。
可以再快一点吗?
或者让他跑起来呀.

42

主题

334

帖子

344

积分

中级会员

Rank: 3Rank: 3

积分
344
 楼主| 发表于 2004-7-29 14:24:00 | 显示全部楼层

Re:重要补充:压缩包中少了个"再快一点.h"

你可以将"DX游戏类库"下常数定义.h中
#define TIMER                150
改一下试试
#define TIMER                100

0

主题

10

帖子

10

积分

新手上路

Rank: 1

积分
10
发表于 2004-7-29 17:57:00 | 显示全部楼层

Re:重要补充:压缩包中少了个"再快一点.h"

感觉好很多了,

#define Timer 100 后的速度有点象以前玩金庸群侠传online的感觉.

啊!好怀念玩金庸群侠传的时候啊!!!

42

主题

334

帖子

344

积分

中级会员

Rank: 3Rank: 3

积分
344
 楼主| 发表于 2004-8-2 09:10:00 | 显示全部楼层

Re:重要补充:压缩包中少了个"再快一点.h"

你还可以修改跑、走的步长。
void game::manmove(int i)//活动对象的移动
{if(man.lb>=2) return;//是静物返回
if(man.smz<1) return;//生命值
if(find_p==1)        //find_p;无搜索0有搜索1
        {if(man.pk<1) return;} //无搜索路径返回,
int stx,sty,qx,qy;
switch(man.zs)
        {case 2: {stx=9;sty=6;break;}//跑步长,修改跑步长
         case 1: {stx=4;sty=2;break;}//走步长,修改走步长
                 default:{stx=2;sty=1;break;}
        }
......
}

42

主题

334

帖子

344

积分

中级会员

Rank: 3Rank: 3

积分
344
 楼主| 发表于 2004-8-2 09:15:00 | 显示全部楼层

Re:重要补充:压缩包中少了个"再快一点.h"

你还可以修改跑、走的步长。
void game::manmove(int i)//活动对象的移动
{if(man.lb>=2) return;//是静物返回
if(man.smz<1) return;//生命值
if(find_p==1)        //find_p;无搜索0有搜索1
        {if(man.pk<1) return;} //无搜索路径返回,
int stx,sty,qx,qy;
switch(man.zs)
        {case 2: {stx=9;sty=6;break;}//跑步长,修改跑步长
         case 1: {stx=4;sty=2;break;}//走步长,修改走步长
                 default:{stx=2;sty=1;break;}
        }
......
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-7-4 10:32

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表