This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local linq = require('linq') | |
| local class = require('class') | |
| local component_base = class() | |
| local function assign(dest, source) | |
| for k,v in pairs(source) do | |
| dest[k] = v | |
| end | |
| return dest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _ from 'underscore'; | |
| export default class TextureAtlas { | |
| constructor(json, image) { | |
| this._textures = {}; | |
| let texture = new THREE.Texture(image); | |
| texture.needsUpdate = true; | |
| let frames = json.frames; | |
| _.keys(frames).forEach(function(key, i) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" type="text/css" href="css/index.css" /> | |
| <title></title> | |
| </head> | |
| <body> |