文章分类 - 【015------> 01】javascript
摘要:1、跳跃:模拟人跳跃一开始有一个初速度V , 重力加速度为g ,两者方向相反.每过一段时间(t 为间隔时间):V = V1;V1 = V + gt;dy = (V + V1)*t / 2; // 表示在t时间内运动的距离
阅读全文
摘要:<!DOCTYPE html><!-- saved from url=(0041)http://tryhtml5.sinaapp.com/polycoll.html --><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"> <title> 凸多边形 碰撞检测 </title><styl
阅读全文
摘要:1、实现机打效果 1 /* 功能:在指定节点内,逐字输出指定的文字 2 参数: 3 idName: 结点的id名字 4 str: 要机打的文字串 5 */ 6 function TypeTextIiteral(idName, str) 7 { 8 var test1=document.getElementById(idName); 9 var typeTimer = setInterval(TypeOut, 100);10 var i=0;11 function Typ...
阅读全文