当前注册人数422581人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Super Brick Breaker - A Simple DirectDraw Game

使用DirectX (DirectDraw)创建一个简单的小游戏的示例及演示

2008年05月19日
VC6, C++Windows, Win2K, WinXP, Visual Studio, DirectX, Dev
这是一个使用DirectDraw实现的一个小游戏,有点像弹小球的那种,如果你也想写一些小游戏的代码,可以跟着学习一下。
相关知识

The main reason I chose to build a Break Out clone as my first game was that I thought this type of game would be simple and pretty quick to code. Unfortunately, this proved to not be the case. The part of the game that took the most effort (and time) was the collision detection and collision resolution (i.e. how to reflect the ball) between the ball and the bricks, the ball and the paddle and the ball and playing area boundaries. I am reasonably happy with the current collision detection and collision resolution code, but it is an area that I will continue to improve. (any and all suggestions/criticisms welcome). The main problem with the collision resolution is when the ball intersects symmetrically on a single corner of a brick or the paddle.

源代码原文下载:
Super Brick Breaker - A Simple DirectDraw Game An article on using DirectX (DirectDraw) to create a simple game

源码图片

点击链接查看大图
从本站下载附件及源代码(1个附件,已经成功下载817次)

最值得关注的外文源代码

Face Detection C++ Library with Skin and Motion Analysis
Using unmanaged C++ and DirectX 9 Ex to Create an anti-aliased, semi-transparent, 3D spinning cube
A DirectDraw Framework made of template classes
introductory example of how to create a simple application using the DirectDraw library
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论74次,此处显示最近20次评论! 查看所有评论

akima  2017年06月28日
就是打方块小游戏,已经很老了,非常适合入门,我想下载来看看源码,看看它是怎么实现里面的游戏逻辑的
nicemia  2015年07月09日
hao
miota27  2014年06月06日
来学习学习的,感谢分享
若柳芊妍  2014年05月05日
希望有用
若柳芊妍  2014年05月05日
学习
sungaojie  2013年07月21日
学习了!
老搜马  2013年06月25日
很不错
huihui  2013年05月27日
谢谢
小满  2013年05月25日
怎么demo和资源压缩文件解压不了啊
wangfanfan  2013年04月11日
谢谢
ahhbb  2013年02月17日
henhao
lance2012  2012年11月01日
谢谢
zwq  2012年09月26日
谢谢分享
边走边吟  2012年08月25日
里面的2个压缩包是坏的,打不开。
52009311  2012年08月21日
看起来不错啊
dq  2012年08月03日
别下了,里面的2个压缩包都是坏的。
azrock  2012年06月06日
学习下
飞鹰  2012年05月09日
正需要这方面东西 谢谢
zxj  2012年03月18日
学习下
zijiecandy  2012年02月22日
学习下
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明