登录
首页 » 其他项目 » C++开发的推箱子游戏 1.类的划分 Cdraw类 绘画加载地图(包括围墙、人、箱子等等) Cman类 是否完成(过关) 即时更新...

C++开发的推箱子游戏 1.类的划分 Cdraw类 绘画加载地图(包括围墙、人、箱子等等) Cman类 是否完成(过关) 即时更新...

于 2022-01-25 发布 文件大小:78.94 kB
0 267
下载积分: 2 下载次数: 1

代码说明:

C++开发的推箱子游戏 1.类的划分 Cdraw类 绘画加载地图(包括围墙、人、箱子等等) Cman类 是否完成(过关) 即时更新地图 2.设计思想 从文件map.txt里读取地图信息,然后通过Cdraw类加载地图,通过keydown事件调用Cman里的重载函数updatemap, 单参数updateMap(UINT nChar)是用于更改当前小人以及箱子的坐标,记录下来后传给updateMap(int x1, int y1, int x2, int y2, int x3, int y3) 从而改变地图。-C development Tuixiangzi a game. Class division Cdraw painting category loaded maps (including the wall, boxes, etc.) if the class completed Cman (clearance) updated maps 2. Design ideas from the paper map.txt Lane read map information, then pass Cdraw Class Loading maps, Calling the incident through keydown Cman Lane updatemap of overloading functions, updateMap single parameter (UINT nChar) is used to change the current villains and the coordinates of the boxes, After record pass updateMap (int x1, y1 int, int x2, int y2, x3 int, int y3), thus changing map.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 银行自动柜员机相关,dos下模拟实现银行自动柜员机系统
    银行自动柜员机相关,dos下模拟实现银行自动柜员机系统-Bank automated teller machine-related, dos simulated realization of bank automated teller machine system
    2022-04-17 00:38:34下载
    积分:1
  • Classic Doger source code using Managed Directx realize very exciting, with the...
    经典的Doger源代码 用Managed Directx实现 征得很精彩 有完整的光照,材质,还有优秀的游戏程序算法-Classic Doger source code using Managed Directx realize very exciting, with the consent of a complete light, texture, there are excellent game program algorithm
    2023-02-27 20:00:03下载
    积分:1
  • FDTD FOR 1D photonic crystals,含增益介质
    FDTD FOR 1D photonic crystals,含增益介质-FDTD FOR 1D photonic crystals, including the gain medium
    2022-10-24 18:35:03下载
    积分:1
  • 3 节点示例中特设仿真与 AODV
    # 3 节点示例中特设仿真与 AODV # 定义的选项 设置 val(chan) 通道/WirelessChannel; # 通道类型 设置 val(prop) 传播/TwoRayGround; # 电波传播 模型 设置 val(netif) Phy/WirelessPhy; # 网络接口类型 设置 val(mac) Mac/802_11; # MAC 类型 设置 val(ifq) 队列/DropTail/PriQueue; # 接口队列类型 设置的 val(ll) LL; # 链接图层类型 设置 val(ant) 天线/OmniAntenna; # 天线模型 设置的 val(ifqlen) 50 ; # 种中的最大数据包 设置的 val(nn) 3 ; mobilenodes # 人数 设置 val(rp) AODV ; # 路由协议 设置的 val(x) 500 ; # X 维度的地形 设置的 val(y) 400 ; # Y 维度的地形 设置的 val(stop) 150 ; # 时间的仿真结束 设置 ns [新模拟器] 设置 tracefd [打开 simple.tr w] 设置 windowVsTime2 [打开 win.tr w] 设置 namtrace [打开 simwrls.nam w]
    2022-06-19 05:32:39下载
    积分:1
  • C++实现的复数+_*/运算,自己用了很多年了
    C++实现的复数+_*/运算,自己用了很多年了-C++ complex
    2022-02-16 03:10:28下载
    积分:1
  • 设计开关电源时经常用到隔离变压器,这份文档可以告诉你如何设计隔离变压器...
    设计开关电源时经常用到隔离变压器,这份文档可以告诉你如何设计隔离变压器-The design of switching power supplies often use isolation transformers, the document can tell you how to design the isolation transformer
    2022-01-25 22:37:06下载
    积分:1
  • 经典的推箱子游戏 boxman~欢迎交流学习
    经典的推箱子游戏 boxman~欢迎交流学习-Classic Sokoban game boxman ~ welcome the exchange of learning
    2022-08-09 16:23:36下载
    积分:1
  • pw Forum enhance security procedures, safety problems landing. Question and answ...
    pw论坛的增强安全性程序,安全登陆问题。提问和回答的-pw Forum enhance security procedures, safety problems landing. Question and answer
    2022-03-09 09:32:38下载
    积分:1
  • 此为民意调查,用户可以进行再线投票,并查看统计结果。
    此为民意调查,用户可以进行再线投票,并查看统计结果。-to this poll, users can re-line vote, and to see results.
    2022-03-11 12:07:19下载
    积分:1
  • Simple Robot Control Program
    -- Simple Robot Control Program -------------------------------------------------------------------------- -- Left is left IR sensor - 1=object to left -- Right is rigth IR sensor - 1=object to right -- Lmotor_dir 1=forward 0=reverse -- Rmotor_dir 1=forward 0=reverse -- Lmotor_speed 111=fast 000=slow -- Rmotor_speed 111=fast 000=slow --- Simple Robot Control Program -------------------------------------------------------------------------- -- Left is left IR sensor- 1=object to left -- Right is rigth IR sensor- 1=object to right -- Lmotor_dir 1=forward 0=reverse -- Rmotor_dir 1=forward 0=reverse -- Lmotor_speed 111=fast 000=slow -- Rmotor_speed 111=fast 000=slow
    2022-05-21 11:44:55下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载