脚本
文章平均质量分 70
arterta
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Javascript 继承
近日看了下html5 游戏开发的一些内容,核心的东西是canvas和javascript的开发。 从网上找了一个开源的框架kineticjs.js,一些很好的游戏开发架构。 学习了下其中的javascript继承的写法。写个小例子,以备日后查看。 (function(){ var Util = { //subclass baseclass extend: functi原创 2013-07-29 14:51:11 · 481 阅读 · 0 评论 -
[转载]html5 local database
记录下来,以备查看 ---------------------------------------------------------------- The Web SQL Database API isn't actually part of the HTML5 specification but it is a separate specification which introduc转载 2013-08-26 11:08:05 · 762 阅读 · 0 评论 -
[转载]Writing Fast, Memory-Efficient JavaScript
转自:http://coding.smashingmagazine.com/2012/11/05/writing-fast-memory-efficient-javascript/ --------------------------------------------------------------------------------- JavaScript engines su转载 2013-08-25 10:51:52 · 1170 阅读 · 0 评论 -
html5 本地存储
代码小记。 var LocalUtils = (function(){ var p = {}; //写cookie p.writeCookie = function(name,value,days) { var date, expires; if (days) { date = new Date(); date.setTime(da原创 2013-08-23 12:18:16 · 528 阅读 · 0 评论 -
javascript 加载 xml
使用javascript 加载解析xml。 var book = function(){}; book.prototype.loadXML = function(file) { xmlDoc = null; try //Internet Explorer { xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=f原创 2013-08-19 15:15:44 · 610 阅读 · 0 评论 -
html5使用TexturePacker生成的SpriteSheet
之前使用Texturepacker 生成的Spritesheet很是顺手,所以现在在学习html5的时候,不自然的就像试一下html5和Texturepacker的结合,写了个小例子。 首先,使用Texturepacker生成的配置文件选择为xml. 生成的xml格式如下: <!--Format: n => name of the sprite x => s原创 2013-08-19 16:49:49 · 1174 阅读 · 0 评论 -
mark html5游戏开发的引擎createjs
标记一下js开发的引擎 http://www.createjs.com/原创 2013-08-19 10:27:36 · 745 阅读 · 0 评论 -
使用Html5的canvas制作的小动画
周末闲来无事,了解了下html5动画制作的一些基本流程,写了个小例子。 记录下来, html代码。在最后测试了下Kinetic.js。 下载地址 http://kineticjs.com Download source。 Arsenal Transfer Info Javascript脚本。 (原创 2013-07-29 16:03:03 · 938 阅读 · 0 评论 -
Ruby 读取png图片的信息
学习ruby,尝试用ruby读取png的基本信息。 网上找到的开源的库chunky_png, 下载地址: https://github.com/wvanbergen/chunky_png。 chunky_png 是一个很强大的库,可以修改png图片的数据。 本小例子只是读取一些基本的信息。 require "chunky_png" class PngImageInfo def in原创 2013-07-25 15:53:44 · 2166 阅读 · 0 评论 -
Ruby List Files
学习Ruby 随手写的一个小例子。 #罗列目录下所有的文件 class FolderList #初始化 def initialize() @itemCount = 0; end #罗列 def startList() p = File.dirname(__FILE__); puts "dir path: " + p; puts "==========start原创 2013-07-25 12:00:22 · 709 阅读 · 0 评论 -
Ruby 抓取图片
从网上找了一段代码记下来,研究一下。 # @date:2011/2/26 # @author:wuzhenzhong require 'net/http' require 'thread' require "open-uri" require "fileutils" module Log def Log.i(msg) print "[INFO]#{msg}\n" end转载 2013-07-30 16:24:36 · 1202 阅读 · 0 评论 -
[转载]JavaScript世界的一等公民 - 函数
转自:http://software.intel.com/zh-cn/articles/javascript-first-class-citizen-function Dawei Cheng 程大伟 ----------------------------------------------------------------------------------- 简介转载 2013-08-25 10:20:32 · 676 阅读 · 0 评论
分享