从上一篇继续
首先还是需要创建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 ...
- 22:18
- 浏览 (179)
- 评论 (1)
- 分类: D Language
- 发布在 D语言 圈子
看了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 ...
- 21:18
- 浏览 (262)
- 评论 (3)
- 分类: D Language
- 发布在 D语言 圈子
从去年开始关注起D 因为本人并不是程序员 所以唯一感兴趣的就是拿它做游戏 然后就看到了arclib 于是想装上试试 不过官网上的文档实在有点滞后 在配置上费了一些周折 我把这个过程写出来 希望对那些想要使用D和arclib的爱好者能够起到一点帮助:)
OS:windows XP SP2
需求:
DMD 1.027 & Tango Version 0.99.5
不要用其它版本 因为很可能无法正常编译
下载:http://www.dsource.org/projects/ ...
- 20:00
- 浏览 (347)
- 评论 (4)
- 分类: D Language
- 发布在 D语言 圈子
- 浏览: 293 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
arcLib学习笔记——动画和 ...
晕倒呀,刚才google了一下arclib,是不是D语言的呀,我怎么看到有点怪, ...
-- by javaeyename -
arcLib学习笔记——创建精 ...
最近正在看yage 3d的源代码
-- by redduke -
arcLib学习笔记——创建精 ...
为啥不研究一下3d游戏阿
-- by hqs7636 -
arcLib学习笔记——创建精 ...
咳咳,2D的就不考虑了。有没有闲的发慌的高手去移植一下下 Ogre?
-- by oldrev -
配置arclib Game Library
看了一下源代码 这个库的Phobos和Tango版本居然不一致 真神奇
-- by redduke






评论排行榜