- 浏览: 389855 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
zhchyun2008:
这里有个小问题,背景有时候会出现?不知道如何解决
分享一个ToolTip类,趋于完美! -
heiliuer:
歌词可以用,我试了好几个,都行的
百度MP3音乐API接口及应用 -
connectu:
感觉不错,英文版的。
JMX in Action -
海阔天空1991:
楼主,有没有什么途径可以知道歌曲对应的信息?
百度MP3音乐API接口及应用 -
xiegqooo:
简单的关闭 tomcat
import java.io.IO ...
关于Java钩子的使用
package engine { import flash.display.*; import flash.geom.*; public class AnimationState { public static var DIR_NULL:int = 0; public static var DIR_LEFT:int = 1; public static var DIR_RIGHT:int = 2; public static var DIR_UP:int = 4; public static var DIR_DN:int = 8; public static var DIR_LEFT_UP:int = DIR_LEFT | DIR_UP; public static var DIR_LEFT_DN:int = DIR_LEFT | DIR_DN; public static var DIR_RIGHT_UP:int = DIR_RIGHT | DIR_UP; public static var DIR_RIGHT_DN:int = DIR_RIGHT | DIR_DN; public static var MOTION_WALK:int = 0; //行走 public static var MOTION_WAIT:int = 1; //普通待机 public static var MOTION_FIGHT_WAIT:int = 2; //战斗待机 public static var MOTION_SKILL:int = 3; //施法 private var m_nFrameNum:int = 0; //动作总帧数 private var m_nAnimTotalTime:int = 0; //动作时间长度(单位毫秒) private var m_nCurrDuration:int = 0; //当时动作已持续了多少时间 private var m_nCurrMotionFrame:int = 0; //当时动作插入到哪一帧了 private var m_currMotion:int = 0; //当时动作是编号 private var m_Entity:Entity = null; //动作的主人 private var m_bLoop:Boolean = false; //动作是否循环 private var m_bMotionEnd:Boolean = false; //是否播完了 public function AnimationState(nMotion:int, nFrameNum:int, nTotalTime:int, et:Entity, loop:Boolean) { this.m_currMotion = nMotion; this.m_nFrameNum = nFrameNum; this.m_nAnimTotalTime = nTotalTime; this.m_Entity = et; this.m_nCurrDuration = 0; this.m_bLoop = loop; } public function ResetMotion():void { this.m_nCurrDuration = 0; this.m_bMotionEnd = false; } public function MotionIsEnd():Boolean { return this.m_bMotionEnd; } public function AddTime():void { var nFrameTime:int = Engine.GetInstance().GetCurrFrameTime(); this.m_nCurrDuration += nFrameTime; if (m_bMotionEnd) return; //算出每一帧插入的时间长度 var nSingleFrameTime:int = this.m_nAnimTotalTime / this.m_nFrameNum; var nFrameNum:int = this.m_nCurrDuration/nSingleFrameTime; if (nFrameNum > this.m_nFrameNum) { m_nCurrDuration = this.m_nCurrDuration % nSingleFrameTime; if (this.m_bLoop) { nFrameNum = 0; } else { m_bMotionEnd = true; return; } } //算出来的帧和当前帧相同就什么也不做 if (nFrameNum == this.m_nCurrMotionFrame) return; //设置为当前帧 this.m_nCurrMotionFrame = nFrameNum; //单帧的象素宽度和高度 var nFramePixelWidth:int = this.m_Entity.GetSurface().width; var nFramePixelHeight:int = this.m_Entity.GetSurface().height; //画 var bmpArr:Array = this.m_Entity.GetBmpArr(); var nLen:int = bmpArr.length; var nY:int = this.m_Entity.GetTopPosByDir(); for (var i:int=0; i<nLen; i++) { var bmd:BitmapData = bmpArr[i] as BitmapData; if (bmd) { var rect:Rectangle = new Rectangle(m_nCurrMotionFrame*nFramePixelWidth, nY, nFramePixelWidth, nFramePixelHeight); this.m_Entity.GetSurface().copyPixels(bmd, rect, new Point(), null, null, true); } } } } }
发表评论
-
学习AS3.0全局函数
2011-07-27 20:16 1962使用目的:字符串的编码与解码。 说明:escape()函数会将 ... -
[心得] 把纯文本嵌入as3类中
2011-06-27 11:07 879必须知道文本的编码类型, 否则中文会读出乱码 [Emb ... -
两个翻转BitmapData的函数
2011-06-20 16:57 1794//向右旋转90度 public function scal ... -
http://dl.iteye.com/upload/attachment/435134/b797675d-eb2f-3c7f-8ed0-f612a5813b8
2011-06-20 16:52 1488这东西不太可能只用滤镜来实现,实实在在用程序画出来还差不多 ... -
重写FLEX组件
2011-06-20 16:05 1967一、为什么要重写组件 1、在FLEX已有组件无法满足业务需求, ... -
Flex Builder快捷键大全
2011-06-16 11:38 1872Ctrl + Shift + L :列出所有快捷键 Ctrl ... -
as3三角函数应用
2011-06-11 18:01 2240基本三角函数的计算: 角的正弦值 = 对边 / 斜边 角的余弦 ... -
Flash使用服务器时间
2011-06-07 10:36 1405在做Flash应用时,有时可能会遇到需要使用服务器时间的情况, ... -
分享一个ToolTip类,趋于完美!
2011-06-07 10:26 1263package myas { import ... -
忽略PNG透明区域的事件
2011-06-07 10:24 1874困扰了我好几天,也没人帮我解决..。 最后在网上找到了方法。 ... -
Flex中使用三角函数sin() cos()进行圆形排列
2011-05-14 13:16 2326private const CENTRE:Point = ne ... -
Using non-embedded images in a spark BitmapImage
2011-04-18 11:21 1177TiledImage.mxml <?xml vers ... -
在Flash Player 10.2中使用原生鼠标指针
2011-04-01 17:17 1944Adobe Flash Player 10.2 版本引入了一个 ... -
童年の忆
2011-03-21 19:13 1134送给儿时的自己。 -
有时候我们需要将某个数组清空或者说重置
2011-01-27 23:35 1197有时候我们需要将某个数组清空或者说重置,我最常用的办法的是重新 ... -
利用render事件来提高as3程序的运行效率
2011-01-27 23:21 1966AS3中的DisplayObject有一个render事件,他 ... -
解决RemoteClass alias信息丢失
2011-01-17 11:31 1651问题发生场景:flex程序中存在多个module都调用一个 ... -
Flex 4 List控件分页功能的实现
2010-12-23 11:48 2816要想了解Flex 4 List控件的分页功能(paging)的 ... -
Flash 游戏设计笔记:计时器制作
2010-11-12 10:03 1495[img][/img]在游戏当中, ... -
flash 游戏设计笔记:切割位图技术
2010-11-12 09:56 1668今天探讨一下这个关于 ...
相关推荐
* Supports user's own sound effects for each animation state. * AI has 3 patrol modes: Stay in place, or dynamic random wandering, or using a waypoints path (integrated Waypoint Editor).
Supports user's own sound effects for each animation state. AI has 3 patrol modes: Stay in place, or dynamic random wandering, or using a waypoints path (integrated Waypoint Editor). AI can alert its ...
Understand the latest features of Unity 5 such as state machines, meshes, and animation graphs Move, transform, and change objects over time using script files Use the animation editor and curve tools...
An exposition of state-of-the-art techniques in rendering and animation. This book provides a unique synthesis of techniques and theory. Each technique is illustrated with a series of full-color ...
卫星电视 特温特大学硕士预科课程的状态转换可视化项目。 由 Alex Aalbertsberg (@Vaeil) 创建
An exposition of state-of-the-art techniques in rendering and animation. This book provides a unique synthesis of techniques and theory. Each technique is illustrated with a series of full-color ...
Web Animation API 是通往 Web 动画光明未来的大门。 如果你在你最喜欢的浏览器中使用 Flash 工具,以及 CSS 渲染引擎的速度和控制它的能力,不仅可以显示动画,还可以实现动画将根据的逻辑,你会说什么?玩过?
3 State Checkbox for Android in pure Material Style, with animation between the states. Usage In your layout: In Kotlin: // set both the checked and indeterminate state checkbox.setChecked(true, ...
状态动画演示在我的演讲状态动画中使用的演示使它们正确无误演示版基本过渡展示简单的过渡用法缓和图使用VueTweezing和tween.js在运行时生成缓动图运动图使用VueMotion(弹簧物理学)在运行时生成的运动图多边形使用...
css参考手册W3School ...state 属性。 3 animation-name 规定 @keyframes 动画的名称。 3 animation-duration 规定动画完成一个周期所花费的秒或毫秒。 3 animation-timing- function 规定动画的速度曲线。 3
function onRender(state) { window.scrollTo(0, state.y);};var animation = new AdditiveAnimation({ onRender: onRender});现在调用animate方法开始动画: var fromState = { y: 0 };var toState = { y: 1000 };...
CSS3动画--animation属性(name和duration)-附件资源
在知道有 animation-play-state 这个animation的参数时,我内心是激动的。在得知iOS端并不支持时,一股凉意袭来 animation-play-state 先来介绍一下今天的主角 animation-play-state animation-play-stateCSS属性...
state = (oldState, action) => newState 但 animation = (time) => frame React Animation Orchestrator是一个库,它解决了状态更改几乎是瞬时的事实,但动画根据定义需要花费时间来完成这一事实之间的差异问题...
此资源仅供学习使用,请...Motion Matching for Unity (MxM) is an advanced alternative animation system to mecanim which enables fluid and responsive character animation without the need for state machines.
用法 var animation = new RNTAnimation ( { // Start state start : { top : this . state . position . top , left : this . state . position . left } , // End state end : { top : 0 , left : 0 } , // ...
前言 本文主要给大家分享的是关于利用CSS3动画实现圆圈由小变大向外扩散的效果实例,文中涉及到 CSS3 的动画...所有动画属性的简写属性,除了 animation-play-state 属性。 3 animation-name 规定 @keyframes
AnimationSystem:关于从头开始创建类似于虚幻引擎4的动画系统的实验
flutter_todos_redux Flutter的业余项目,使用redux进行状态管理。 UI的灵感来自的。 屏幕截图 我一直在颤抖大约3周(2018年9月)。这是我为检查框架而构建的第一个Flutter应用程序。代码库的结构不好,也可以进行...
Lolcat CSS属性 整体CSS属性翻译为Lolcat aka Lolspeak 如果您有任何建议,请随时提交请求请求 特性 'animation-delay': 'animashun-delay' ... 'animation-play-state': 'animashun-pulay-state' 'animation-timing