从上一篇继续   首先还是需要创建Sprite和Frame  animationImage是图像路径(char[])   animationFrame = new Frame(Texture(animationImage), Rect(70,496,70,124)); Rect的四个参数(起始点X坐标,起始点Y坐标,宽度,高度)单位:像素 private LinearAnimation animation; animation = new LinearAnimation(animationFrame, 4, 200, LinearAnimat ...
看了dsource上的Tank游戏源代码 基本了解代码结构 话说这arclib文档的更新速度实在是......不敢恭维 import arc.all; import arc.scenegraph.all; import arc.physics.all; import arc.physics.shapes.all; private Sprite sprite; private Frame frame; private Box box; private char[] image = "image/arclib_logo.png"; int ...
从去年开始关注起D  因为本人并不是程序员  所以唯一感兴趣的就是拿它做游戏  然后就看到了arclib  于是想装上试试  不过官网上的文档实在有点滞后  在配置上费了一些周折  我把这个过程写出来  希望对那些想要使用D和arclib的爱好者能够起到一点帮助:) OS:windows XP SP2 需求: DMD 1.027 & Tango Version 0.99.5 不要用其它版本 因为很可能无法正常编译 下载:http://www.dsource.org/projects/ ...
redduke
搜索本博客
最近加入圈子
最新评论