commit d228d6e2639f1f66c822853d8b4cce84f2d8f8bb Author: ysandler Date: Tue Nov 22 22:48:39 2016 -0600 Init diff --git a/app.js b/app.js new file mode 100644 index 0000000..da2febf --- /dev/null +++ b/app.js @@ -0,0 +1,63 @@ +//Aliases +var Container = PIXI.Container, + autoDetectRenderer = PIXI.autoDetectRenderer, + loader = PIXI.loader, + resources = PIXI.loader.resources, + Sprite = PIXI.Sprite, + b = new Bump(PIXI); + +var stage = new Container(), + renderer = autoDetectRenderer(1280, 720); + + renderer.autoResize = true; + renderer.resize(1280, 720); + + stage.position.x = 0 - window.innerWidth / 2; + +//Global Interactives +var player; +var platforms = []; +var walls = []; +var enemies = []; +let terminals = []; +let terminalsHacked = 0; +var background; +var ladder; + + + loader + .add(["assets/sprites/world/test/platform.jpg", + "assets/sprites/octocat/octocatIdle.json", + "assets/sprites/octocat/octocatWalk.json", + "assets/sprites/octocat/octocatHurt.json", + "assets/sprites/octocat/octocatDead.json", + "assets/sprites/octocat/octocatJump.json", + "assets/sprites/octocat/octocatMelee.json", + "assets/sprites/enemy/enemyWalk.json", + "assets/sprites/enemy/enemyIdle.json", + "assets/sprites/world/levelrender2.png"]) + .load(worldSetup); + +function worldSetup(){ + + + background = new Sprite(resources["assets/sprites/world/levelrender2.png"].texture); + background.x = 720; + background.y = 0; + background.width = 1280; + background.height = 720; + stage.addChild(background); + + if(platformSetup() && enemySetup() && ladderSetup() && playerSetup() && terminalSetup()){ + console.log("Loaded") + } + +} + +function setAnimationFPS(fps) { + return 1000/fps; +} + +const fpsTimeout = 1000/60; + +document.body.appendChild(renderer.view); diff --git a/assets/js/events/getDistance.js b/assets/js/events/getDistance.js new file mode 100644 index 0000000..59d783d --- /dev/null +++ b/assets/js/events/getDistance.js @@ -0,0 +1,35 @@ +function getDistance(a, b) { + let aX = Math.abs(a.x); + let aY = Math.abs(a.y); + let bX = Math.abs(b.x); + let bY = Math.abs(b.y); + + let xAxisDist = Math.abs(aX - bX); + let yAxisDist = Math.abs(aY - bY); + + let c = (xAxisDist * xAxisDist) + (yAxisDist * yAxisDist) + return Math.sqrt(c); + } + + function isInRange(distance, range){ + if(distance < range){ + return true; + } + else{ + return false; + } + } + + function moveTowards(a, b, speed){ + let aX = a.x; + let bX = b.x; + let newX = 0; + + if(aX < bX){ + newX = aX + speed; + } + else{ + newX = aX - speed; + } + return newX; + } \ No newline at end of file diff --git a/assets/js/events/keyboardHandler.js b/assets/js/events/keyboardHandler.js new file mode 100644 index 0000000..d440aeb --- /dev/null +++ b/assets/js/events/keyboardHandler.js @@ -0,0 +1,37 @@ +//Capture Key Strokes +function keyboard(keyCode) { + var key = {}; + key.code = keyCode; + key.isDown = false; + key.isUp = true; + key.press = undefined; + key.release = undefined; + //The `downHandler` + key.downHandler = function(event) { + if (event.keyCode === key.code) { + if (key.isUp && key.press) key.press(); + key.isDown = true; + key.isUp = false; + } + event.preventDefault(); + }; + + //The `upHandler` + key.upHandler = function(event) { + if (event.keyCode === key.code) { + if (key.isDown && key.release) key.release(); + key.isDown = false; + key.isUp = true; + } + event.preventDefault(); + }; + + //Attach event listeners + window.addEventListener( + "keydown", key.downHandler.bind(key), false + ); + window.addEventListener( + "keyup", key.upHandler.bind(key), false + ); + return key; +} \ No newline at end of file diff --git a/assets/js/events/nextAnimationFrame.js b/assets/js/events/nextAnimationFrame.js new file mode 100644 index 0000000..72822e3 --- /dev/null +++ b/assets/js/events/nextAnimationFrame.js @@ -0,0 +1,9 @@ +function nextAnimationFrame(animation){ + if(animation.frameIndex >= animation.frameLength){ + animation.frameIndex = 1; + } + else{ + animation.frameIndex++; + } + return animation.frameIndex; +} \ No newline at end of file diff --git a/assets/js/interactable/enemy/enemy.js b/assets/js/interactable/enemy/enemy.js new file mode 100644 index 0000000..2fcea28 --- /dev/null +++ b/assets/js/interactable/enemy/enemy.js @@ -0,0 +1,222 @@ +function enemySetup(){ + + //Animation Objects + var enemyIdle = { + id: {}, + frameIndex: 1, + frameLength: 16, + play: function(){ + return this.id["enemyIdle" + (this.frameIndex = nextAnimationFrame(this))]; + }, + fps: setAnimationFPS(10) + } + + var enemyWalk = { + id: {}, + frameIndex: 1, + frameLength: 21, + play: function(){ + return this.id["enemyWalk" + (this.frameIndex = nextAnimationFrame(this))]; + }, + fps: setAnimationFPS(30) + } + + //Loading Sprite Sheets ito animation Onjects + enemyIdle.id = PIXI.loader.resources["assets/sprites/enemy/enemyIdle.json"].textures; + enemyWalk.id = PIXI.loader.resources["assets/sprites/enemy/enemyWalk.json"].textures; + + let levelFollowEnemies = [ + { + x: 1400, + y: 630, + height: 80, + width: 80, + visible: true, + startingTexture : enemyIdle.id["enemyIdle1"], + detectionRange: 150 + }, + { + x: 1800, + y: 630, + height: 80, + width: 80, + visible: true, + startingTexture : enemyIdle.id["enemyIdle1"], + detectionRange: 150 + } + ]; + + let levelPatrolEnemies = [ + { + startPosition: { + x: 1400, + y: 390 + }, + endPosition: { + x: 1800, + y: 390 + }, + height: 80, + width: 80, + visible: true, + startingTexture : enemyIdle.id["enemyIdle1"], + startDirection : "right" + }, + { + startPosition: { + x: 800, + y: 390 + }, + endPosition: { + x: 1250, + y: 390 + }, + height: 80, + width: 80, + visible: true, + startingTexture : enemyIdle.id["enemyIdle1"], + startDirection : "right" + }, + { + startPosition: { + x: 1250, + y: 390 + }, + endPosition: { + x: 800, + y: 390 + }, + height: 80, + width: 80, + visible: true, + startingTexture : enemyIdle.id["enemyIdle1"], + startDirection : "left" + } + ] + + levelFollowEnemies.forEach(function(e){ + enemies.push(createFollowEnemy(e)) + }); + + levelPatrolEnemies.forEach(function(e){ + enemies.push(createPatrolEnemy(e)) + }); + + + function createFollowEnemy(data){ + let enemy = new Sprite(data.startingTexture.texture); + enemy.x = data.x; + enemy.y = data.y; + enemy.height = data.height; + enemy.width = data.width; + enemy.visible = data.visible; + enemy.currentAnimation = enemyIdle; + enemy.anchor.x = 0.5; + + enemy.Animate = function(){ + setTimeout(function(){ + enemy.texture = enemy.currentAnimation.play(); + enemy.Animate(); + }, enemy.currentAnimation.fps); + }; + + enemy.Chase = function(){ + setTimeout(function(){ + if(isInRange(getDistance(player || {}, enemy), data.detectionRange) && Math.floor(enemy.x) != Math.floor(player.x) && player.alive()){ + let moveValue = moveTowards(enemy, player, 1); + if((moveValue > enemy.x) && enemy.scale.x < 0){ + enemy.scale.x = 0.3125; + } + if((moveValue < enemy.x) && enemy.scale.x > 0){ + enemy.scale.x = -0.3125; + } + enemy.x = moveValue; + enemy.currentAnimation = enemyWalk; + } + else{ + enemy.currentAnimation = enemyIdle; + } + enemy.Chase(); + }, fpsTimeout) + }; + + enemy.Animate(); + enemy.Chase(); + + stage.addChild(enemy); + return enemy; + } + + + function createPatrolEnemy(data){ + let enemy = new Sprite(data.startingTexture.texture); + enemy.startPosition = data.startPosition; + enemy.endPosition = data.endPosition; + enemy.x = enemy.startPosition.x; + enemy.y = enemy.startPosition.y; + enemy.height = data.height; + enemy.width = data.width; + enemy.visible = data.visible; + enemy.currentAnimation = enemyWalk; + enemy.anchor.x = 0.5; + enemy.toEndPosition = true; + enemy.startDirection = data.startDirection; + + if(enemy.startDirection === "left"){ + enemy.scale.x = -0.3125; + } + + enemy.Animate = function(){ + setTimeout(function(){ + enemy.texture = enemy.currentAnimation.play(); + enemy.Animate(); + }, 50); + }; + + enemy.Patrol = function(){ + let moveValue; + if(enemy.toEndPosition){ + if(!getDistance(enemy, enemy.endPosition) < 1){ + moveValue = moveTowards(enemy, enemy.endPosition, 1); + enemy.x = moveValue; + if(enemy.startDirection === "right"){ + enemy.scale.x = 0.3125; + } + else{ + enemy.scale.x = -0.3125; + } + } + else{ + enemy.toEndPosition = false; + } + } + else{ + if(!getDistance(enemy, enemy.startPosition) < 1){ + moveValue = moveTowards(enemy, enemy.startPosition, 1); + enemy.x = moveValue; + if(enemy.startDirection === "right"){ + enemy.scale.x = -0.3125; + } + else{ + enemy.scale.x = 0.3125; + } + } + else{ + enemy.toEndPosition = true; + } + } + + setTimeout(function(){ + enemy.Patrol() + }, fpsTimeout) + }; + + enemy.Animate(); + enemy.Patrol(); + + stage.addChild(enemy); + return enemy; + } + + return true; +} diff --git a/assets/js/interactable/enemy/enemyDepricated.js b/assets/js/interactable/enemy/enemyDepricated.js new file mode 100644 index 0000000..c758ea7 --- /dev/null +++ b/assets/js/interactable/enemy/enemyDepricated.js @@ -0,0 +1,50 @@ +//var enemy = []; + +let enemy = { + + //Properties + transform: { + x: 0, + y: 0, + zOrder: 0, + xv: 0, + yv: 0 + }, + sprite: new Sprite(idle.id["enemyIdle_"+idle.frameIndex]), + canMove: true, + isAware: false, + bounds: { + topLeft: 0, + topRight: 0, + bottomLeft: 0, + bottomRight: 0 + }, + + State: function(state){ + state(this); + } +} + + +//States +function IdleEnter (obj){ + return function(){ + obj.bounds.topLeft = 5; + }; + +} + +function setupEnemies(){ + + //Jake + var Jake = Object.create(enemy); + Jake.State(IdleEnter(Jake)); + console.log(Jake); + //Mark + var Mark = Object.create(enemy); + Mark.State(IdleEnter(Mark)); + console.log(Mark); + +} + +//setupEnemies() \ No newline at end of file diff --git a/assets/js/interactable/level/ladder.js b/assets/js/interactable/level/ladder.js new file mode 100644 index 0000000..b39174d --- /dev/null +++ b/assets/js/interactable/level/ladder.js @@ -0,0 +1,23 @@ +function ladderSetup(){ + +ladder = createLadder({ + y : 150, + x : 1965, + width: 20, + height: 550, + visible: false +}); + + function createLadder(data){ + let lad = new Sprite(resources["assets/sprites/world/test/platform.jpg"].texture); + lad.y = data.y; + lad.x = data.x; + lad.width = data.width; + lad.height = data.height; + lad.zOrder = data.zOrder; + lad.visible = data.visible; + stage.addChild(lad); + return lad; + } + return true; +} \ No newline at end of file diff --git a/assets/js/interactable/level/platform.js b/assets/js/interactable/level/platform.js new file mode 100644 index 0000000..b50a789 --- /dev/null +++ b/assets/js/interactable/level/platform.js @@ -0,0 +1,163 @@ + function platformSetup() { + + let levelPlatforms = [ + { + y : 690, + x : 720, + height: 100, + width : 1280, + visible: false + }, + { + y : 655, + x : 1160, + width: 100, + height: 30, + visible: true + }, + { + y : 605, + x : 1103, + width: 60, + height: 10, + visible: true + }, + { + y : 545, + x : 1200, + width: 190, + height: 10, + visible: true + }, + { + y : 460, + x : 720, + width: 1280, + height: 30, + visible: true + }, + { + y : 655, + x : 1550, + width: 100, + height: 30, + visible: true + }, + { + y : 605, + x : 1477, + width: 60, + height: 10, + visible: true + }, + { + y : 545, + x : 1575, + width: 250, + height: 10, + visible: true + }, + { + y : 235, + x : 1085, + width: 190, + height: 10, + visible: true + }, + { + y : 235, + x : 805, + width: 190, + height: 10, + visible: true + }, + { + y : 200, + x : 1320, + width: 620, + height: 10, + visible: true + } + ]; + + let levelWalls = [ + { + y : 500, + x : 1090, + width: 10, + height: 110, + visible: true + }, + { + y : 500, + x : 1460, + width: 10, + height: 110, + visible: true + }, + { + y : 500, + x : 1940, + width: 10, + height: 160, + visible: true + }, + { + y : 210, + x : 1940, + width: 10, + height: 200, + visible: true + }, + { + y : 221, + x : 1315, + width: 10, + height: 250, + visible: true + }, + { + y : 100, + x : 715, + width: 10, + height: 720, + visible: true + }, + { + y : 100, + x : 1995, + width: 10, + height: 720, + visible: true + }, + { + y : 145, + x : 715, + width: 1920, + height: 10, + visible: true + } + ] + + levelPlatforms.forEach(function(p){ + platforms.push(createPlatform(p)); + }); + + levelWalls.forEach(function(w){ + walls.push(createPlatform(w)); + }); + + function createPlatform(data){ + let plat = new Sprite(resources["assets/sprites/world/test/platform.jpg"].texture); + plat.y = data.y; + plat.x = data.x; + plat.width = data.width; + plat.height = data.height; + plat.zOrder = data.zOrder; + plat.visible = false; + stage.addChild(plat); + return plat; + } + + return true; +} diff --git a/assets/js/interactable/level/sounds.js b/assets/js/interactable/level/sounds.js new file mode 100644 index 0000000..7c195f6 --- /dev/null +++ b/assets/js/interactable/level/sounds.js @@ -0,0 +1,24 @@ +var jumpsfx = new Howl({ + src: ['assets/sfx/Jump.wav'] +}); + +var walkingsfx = new Howl({ + src: ['assets/sfx/walking.wav'], + loop: true +}); +walkingsfx.mute(true); +walkingsfx.play(); + + +var hackingsfx = new Howl({ + src: ['assets/sfx/hacking.wav'], + loop: true +}); +hackingsfx.mute(true); +hackingsfx.play(); + + +var deathsfx = new Howl({ + src: ['assets/sfx/death.wav'], + volume: 0.4 +}); \ No newline at end of file diff --git a/assets/js/interactable/level/terminal.js b/assets/js/interactable/level/terminal.js new file mode 100644 index 0000000..fefd8b9 --- /dev/null +++ b/assets/js/interactable/level/terminal.js @@ -0,0 +1,92 @@ +function terminalSetup() { + + let levelTerminals = [ + { + y : 640, + x : 1365, + height: 50, + width : 50, + alpha: 0 + }, + { + y : 640, + x : 1870, + height: 50, + width : 50, + alpha: 0 + }, + { + y : 400, + x : 1580, + height: 50, + width : 50, + alpha: 0 + }, + { + y : 400, + x : 1005, + height: 50, + width : 50, + alpha: 0 + } + ]; + + levelTerminals.forEach(function(t){ + terminals.push(createTerminal(t)); + }); + + function createTerminal(data){ + let term = new Sprite(resources["assets/sprites/world/test/platform.jpg"].texture); + term.y = data.y; + term.x = data.x; + term.height = data.height; + term.width = data.height; + term.alpha = data.alpha; + term.hacked = false; + + term.hackMeter = new Sprite(resources["assets/sprites/world/test/platform.jpg"].texture); + term.hackMeter.height = 5; + term.hackMeter.width = 0; + term.hackMeter.x = data.x; + term.hackMeter.y = data.y += -10; + term.hackMeter.tint = 16745055; + + term.hackMeterBack = new Sprite(resources["assets/sprites/world/test/platform.jpg"].texture); + term.hackMeterBack.height = 5; + term.hackMeterBack.width = 50; + term.hackMeterBack.x = data.x; + term.hackMeterBack.y = data.y += -0; + term.hackMeterBack.tint = 0; + + + + term.hackedValue = 0; + + term.Hacking = function(){ + if(b.hit(player, term, false) && player.isPressingActive && !term.hacked){ + hackingsfx.mute(false); + term.hackedValue++; + term.hackMeter.width = term.hackedValue / 2; + if(term.hackedValue > 99){ + hackingsfx.mute(true); + term.hacked = true; + term.hackedValue = 100; + terminalsHacked++; + } + } + else{ + hackingsfx.mute(true); + } + setTimeout(function(){ + term.Hacking(); + }, fpsTimeout * 2) + } + + term.Hacking(); + stage.addChild(term); + stage.addChild(term.hackMeterBack); + stage.addChild(term.hackMeter); + return term; + } + return true; +} \ No newline at end of file diff --git a/assets/js/interactable/player/player.js b/assets/js/interactable/player/player.js new file mode 100644 index 0000000..aea43ee --- /dev/null +++ b/assets/js/interactable/player/player.js @@ -0,0 +1,225 @@ +//This `setup` function will run when the image has loaded +function playerSetup() { + + + //------------------Add Sprites to Animations----------------- + dead.id = PIXI.loader.resources["assets/sprites/octocat/octocatDead.json"].textures; + idle.id = PIXI.loader.resources["assets/sprites/octocat/octocatIdle.json"].textures; + walk.id = PIXI.loader.resources["assets/sprites/octocat/octocatWalk.json"].textures; + hurt.id = PIXI.loader.resources["assets/sprites/octocat/octocatHurt.json"].textures; + jump.id = PIXI.loader.resources["assets/sprites/octocat/octocatJump.json"].textures; + + //Setup the player + player = new Sprite(idle.id["catIdle_"+idle.frameIndex]); + player.canControl = true; + player.anchor.x = 0.5; + player.anchor.y = 1; + player.vx = 0; + player.vy = 0; + player.x = 810; + player.y = 695; + player.width = 45; + player.height = 45; + player.currentAnimation = idle; + player.health = 1; + player.jumped = false; + player.isHurt = false; + player.isPressingActive = false; + player.isClimbing = false; + + player.alive = function () { + if(player.health > 0){ + return true; + } + else{ + player.health = 0; + return false; + } + } + + + player.isGrounded = function(){ + + let collision = b.rectangleCollision(player, platforms[0], false, false, false) || + b.rectangleCollision(player, platforms[1], false, false, false) || + b.rectangleCollision(player, platforms[2], false, false, false) || + b.rectangleCollision(player, platforms[3], false, false, false) || + b.rectangleCollision(player, platforms[4], false, false, false) || + b.rectangleCollision(player, platforms[5], false, false, false) || + b.rectangleCollision(player, platforms[6], false, false, false) || + b.rectangleCollision(player, platforms[7], false, false, false) || + b.rectangleCollision(player, platforms[8], false, false, false) || + b.rectangleCollision(player, platforms[9], false, false, false) || + b.rectangleCollision(player, platforms[10], false, false, false); + + if(collision === "bottom"){ + if(player.alive() && !player.isHurt){ + if(player.vx == 0){ + player.currentAnimation = idle; + } + if(player.vx != 0){ + player.currentAnimation = walk; + } + } + return true; + } + else{ + if(!player.isHurt){ + player.currentAnimation = jump; + } + return false; + } + }; + + + player.direction = function(){ + if(player.scale.x = 1) + return "right"; + else + return "left"; +} + + player.hurt = function(){ + if(!player.isHurt){ + + player.isHurt = true; + player.health--; + player.canControl = false; + player.vx = 0; + + if(player.alive()){ + player.currentAnimation = hurt; + setTimeout(function(){ + player.canControl = true; + player.vx = 0; + player.currentAnimation = idle; + player.isHurt = false; + }, 500); + } + else{ + player.canControl = false; + player.currentAnimation = dead; + player.vx = 0; + deathsfx.play(); + walkingsfx.mute(true); + hackingsfx.mute(true); + } + } + }; + + player.Animate = function(){ + setTimeout(function(){ + player.texture = player.currentAnimation.play(); + player.Animate(); + }, player.currentAnimation.fps); + } + + player.Update = function () { + + if(b.hit(player, ladder, false, false)){ + player.isClimbing = true; + platforms[4].width = 0; + } + else{ + player.isClimbing = false; + platforms[4].width = 1280; + } + + if(!player.isGrounded() && !player.jumped && !player.isClimbing){ + player.vy = 10; + } + else if(player.jumped){ + player.vy = -10; + } + + if(!player.alive()){ + player.vx = 0; + } + + + + player.x += player.vx; + player.y += player.vy; + + if(b.hit(player, enemies[0], false)){ + if(isInRange(getDistance(player, enemies[0]), 73)){ + player.hurt(); + } + } + if(b.hit(player, enemies[1], false)){ + if(isInRange(getDistance(player, enemies[1]), 73)){ + player.hurt(); + } + } + + b.hit(player, walls[0], true, false); + b.hit(player, walls[1], true, false); + b.hit(player, walls[2], true, false); + b.hit(player, walls[3], true, false); + b.hit(player, walls[4], true, false); + b.hit(player, walls[5], true, false); + b.hit(player, walls[6], true, false); + b.hit(player, walls[7], true, false); + + requestAnimationFrame(player.Update); + }; + + + player.Update(); //Repeats every Frame + player.Animate(); //Stand alone loop for object animations + keyStrokeSetup(); //Sets up player Controller + stage.addChild(player); + return true; +} + + //Create Animations + var idle = { + id: {}, + frameIndex: 1, + frameLength: 22, + play: function(){ + return this.id["catIdle_" + (this.frameIndex = nextAnimationFrame(this))]; + }, + fps: setAnimationFPS(24) + } + + var walk = { + id: {}, + frameIndex: 1, + frameLength: 21, + play: function(){ + return this.id["catWalk_" + (this.frameIndex = nextAnimationFrame(this))]; + }, + fps: setAnimationFPS(30) + } + + var hurt = { + id: {}, + frameIndex: 1, + frameLength: 22, + play: function(){ + return this.id["catHurt_" + (this.frameIndex = nextAnimationFrame(this))]; + }, + fps: setAnimationFPS(30) + } + + var dead = { + id: {}, + frameIndex: 1, + frameLength: 1, + play: function(){ + return this.id["catDead_1"]; + }, + fps: setAnimationFPS(30) + } + + var jump = { + id: {}, + frameIndex: 1, + frameLength: 20, + play: function(){ + return this.id["catJump_" + (this.frameIndex = nextAnimationFrame(this))]; + }, + fps: setAnimationFPS(30) + } + diff --git a/assets/js/interactable/player/playerController.js b/assets/js/interactable/player/playerController.js new file mode 100644 index 0000000..c4b8c66 --- /dev/null +++ b/assets/js/interactable/player/playerController.js @@ -0,0 +1,95 @@ +function keyStrokeSetup(){ + + //Capture the keyboard arrow keys + var left = keyboard(37), + up = keyboard(38), + right = keyboard(39), + down = keyboard(40), + space = keyboard(32); + ctrl = keyboard(17); + + //Left arrow key `press` method + left.press = function() { + if(player.canControl){ + //Change the cat's velocity when the key is pressed + player.vx = -5; + if(player.scale.x > 0){ + player.scale.x = -0.17578125; + } + player.currentAnimation = walk; + walkingsfx.mute(false); + } + }; + + //Left arrow key `release` method + left.release = function() { + + if(player.canControl){ + //If the left arrow has been released, and the right arrow isn't down, + //Stop the cat + if (!right.isDown ) { + player.vx = 0; + player.currentAnimation = idle; + walkingsfx.mute(true); + } + } + }; + + //Right + right.press = function() { + if(player.canControl){ + player.vx = 5; + if(player.scale.x < 0){ + player.scale.x = 0.17578125; + } + player.currentAnimation = walk; + walkingsfx.mute(false); + } + }; + right.release = function() { + if(player.canControl){ + if (!left.isDown) { + player.vx = 0; + player.currentAnimation = idle; + walkingsfx.mute(true); + } + } + }; + + //Jump + space.press = function(){ + if(player.canControl && !player.isClimbing){ + + jumpsfx.play(); + player.jumped = true; + player.vy = -5; + player.currentAnimation = jump; + + setTimeout(function(){ + player.jumped = false; + player.vy = 5; + }, 200); + + console.log("jumped"); + + } + }; + + //Ctrl + ctrl.press = function() { + console.log('Pressed Activate'); + player.isPressingActive = true; + }; + + ctrl.release = function(){ + player.isPressingActive = false; + } + + //up +up.press = function(){ + if(player.isClimbing){ + player.vy = -1; + } +} +} + diff --git a/assets/js/state.js b/assets/js/state.js new file mode 100644 index 0000000..637e138 --- /dev/null +++ b/assets/js/state.js @@ -0,0 +1,27 @@ +//Set the game state +var state = play; + +gameLoop(); + +function gameLoop() { + + //Loop this function 60 times per second + requestAnimationFrame(gameLoop); + + //Update the current game state: + state(); + + //Render the stage + renderer.render(stage); +} + +function play() { + if(terminalsHacked === 4){ + window.location="gameover.html" + } + if(!player.alive()){ + setTimeout(function(){ + window.location="gameover.html" + }, 1500) + } +} \ No newline at end of file diff --git a/assets/raw/models/Guard.zip b/assets/raw/models/Guard.zip new file mode 100644 index 0000000..7490d7c Binary files /dev/null and b/assets/raw/models/Guard.zip differ diff --git a/assets/raw/models/Guard/Guard face.png b/assets/raw/models/Guard/Guard face.png new file mode 100644 index 0000000..d27f4e3 Binary files /dev/null and b/assets/raw/models/Guard/Guard face.png differ diff --git a/assets/raw/models/Guard/Guard.blend b/assets/raw/models/Guard/Guard.blend new file mode 100644 index 0000000..4ec1e07 Binary files /dev/null and b/assets/raw/models/Guard/Guard.blend differ diff --git a/assets/raw/models/Hospital-Level.zip b/assets/raw/models/Hospital-Level.zip new file mode 100644 index 0000000..417230b Binary files /dev/null and b/assets/raw/models/Hospital-Level.zip differ diff --git a/assets/raw/models/Hospital-Level/025511124_prevstill.jpeg b/assets/raw/models/Hospital-Level/025511124_prevstill.jpeg new file mode 100644 index 0000000..044a2d5 Binary files /dev/null and b/assets/raw/models/Hospital-Level/025511124_prevstill.jpeg differ diff --git a/assets/raw/models/Hospital-Level/2000px-Biohazard.svg.png b/assets/raw/models/Hospital-Level/2000px-Biohazard.svg.png new file mode 100644 index 0000000..1b59998 Binary files /dev/null and b/assets/raw/models/Hospital-Level/2000px-Biohazard.svg.png differ diff --git a/assets/raw/models/Hospital-Level/Door.png b/assets/raw/models/Hospital-Level/Door.png new file mode 100644 index 0000000..25bddeb Binary files /dev/null and b/assets/raw/models/Hospital-Level/Door.png differ diff --git a/assets/raw/models/Hospital-Level/Hospital Wall.png b/assets/raw/models/Hospital-Level/Hospital Wall.png new file mode 100644 index 0000000..e4e4b96 Binary files /dev/null and b/assets/raw/models/Hospital-Level/Hospital Wall.png differ diff --git a/assets/raw/models/Hospital-Level/IVBag.png b/assets/raw/models/Hospital-Level/IVBag.png new file mode 100644 index 0000000..8d75028 Binary files /dev/null and b/assets/raw/models/Hospital-Level/IVBag.png differ diff --git a/assets/raw/models/Hospital-Level/MetalPlatesDucts0021_1_200.jpg b/assets/raw/models/Hospital-Level/MetalPlatesDucts0021_1_200.jpg new file mode 100644 index 0000000..c2f1e21 Binary files /dev/null and b/assets/raw/models/Hospital-Level/MetalPlatesDucts0021_1_200.jpg differ diff --git a/assets/raw/models/Hospital-Level/MetalPlatesDucts0021_1_200_n.jpg b/assets/raw/models/Hospital-Level/MetalPlatesDucts0021_1_200_n.jpg new file mode 100644 index 0000000..e8cfa9b Binary files /dev/null and b/assets/raw/models/Hospital-Level/MetalPlatesDucts0021_1_200_n.jpg differ diff --git a/assets/raw/models/Hospital-Level/Room1.blend b/assets/raw/models/Hospital-Level/Room1.blend new file mode 100644 index 0000000..8e6f56a Binary files /dev/null and b/assets/raw/models/Hospital-Level/Room1.blend differ diff --git a/assets/raw/models/Hospital-Level/Tiles.png b/assets/raw/models/Hospital-Level/Tiles.png new file mode 100644 index 0000000..d2db9ff Binary files /dev/null and b/assets/raw/models/Hospital-Level/Tiles.png differ diff --git a/assets/raw/models/Hospital-Level/c03815648.png b/assets/raw/models/Hospital-Level/c03815648.png new file mode 100644 index 0000000..2404ba4 Binary files /dev/null and b/assets/raw/models/Hospital-Level/c03815648.png differ diff --git a/assets/raw/models/Hospital-Level/c03815648_n.png b/assets/raw/models/Hospital-Level/c03815648_n.png new file mode 100644 index 0000000..feef8d3 Binary files /dev/null and b/assets/raw/models/Hospital-Level/c03815648_n.png differ diff --git a/assets/raw/models/Hospital-Level/m9KRT1Wh9X3Qv60siDnOxkQ.jpg b/assets/raw/models/Hospital-Level/m9KRT1Wh9X3Qv60siDnOxkQ.jpg new file mode 100644 index 0000000..cce5467 Binary files /dev/null and b/assets/raw/models/Hospital-Level/m9KRT1Wh9X3Qv60siDnOxkQ.jpg differ diff --git a/assets/raw/models/Octocat.zip b/assets/raw/models/Octocat.zip new file mode 100644 index 0000000..296d671 Binary files /dev/null and b/assets/raw/models/Octocat.zip differ diff --git a/assets/raw/models/Octocat/Octocat.blend b/assets/raw/models/Octocat/Octocat.blend new file mode 100644 index 0000000..88a97c1 Binary files /dev/null and b/assets/raw/models/Octocat/Octocat.blend differ diff --git a/assets/raw/models/Octocat/Octocat.blend1 b/assets/raw/models/Octocat/Octocat.blend1 new file mode 100644 index 0000000..3a3f51b Binary files /dev/null and b/assets/raw/models/Octocat/Octocat.blend1 differ diff --git a/assets/raw/models/Octocat/Octocat.png b/assets/raw/models/Octocat/Octocat.png new file mode 100644 index 0000000..c3401c7 Binary files /dev/null and b/assets/raw/models/Octocat/Octocat.png differ diff --git a/assets/raw/models/Octocat/Tentacles.png b/assets/raw/models/Octocat/Tentacles.png new file mode 100644 index 0000000..df781e1 Binary files /dev/null and b/assets/raw/models/Octocat/Tentacles.png differ diff --git a/assets/raw/sprites/enemy/animations.zip b/assets/raw/sprites/enemy/animations.zip new file mode 100644 index 0000000..d9c92f2 Binary files /dev/null and b/assets/raw/sprites/enemy/animations.zip differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0001.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0001.png new file mode 100644 index 0000000..e0e8a3c Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0001.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0002.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0002.png new file mode 100644 index 0000000..35a254b Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0002.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0003.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0003.png new file mode 100644 index 0000000..8ece487 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0003.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0004.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0004.png new file mode 100644 index 0000000..3a8a4b9 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0004.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0005.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0005.png new file mode 100644 index 0000000..57a88a4 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0005.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0006.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0006.png new file mode 100644 index 0000000..492e8f1 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0006.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0007.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0007.png new file mode 100644 index 0000000..f36e655 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0007.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0008.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0008.png new file mode 100644 index 0000000..f983eaf Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0008.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0009.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0009.png new file mode 100644 index 0000000..f32de6f Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0009.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0010.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0010.png new file mode 100644 index 0000000..9b26f03 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0010.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0011.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0011.png new file mode 100644 index 0000000..c38ddbd Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0011.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/idle/idle0012.png b/assets/raw/sprites/enemy/animations/animations/idle/idle0012.png new file mode 100644 index 0000000..0991152 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/idle/idle0012.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0001.png b/assets/raw/sprites/enemy/animations/animations/walk0001.png new file mode 100644 index 0000000..50f223f Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0001.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0002.png b/assets/raw/sprites/enemy/animations/animations/walk0002.png new file mode 100644 index 0000000..c170611 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0002.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0003.png b/assets/raw/sprites/enemy/animations/animations/walk0003.png new file mode 100644 index 0000000..f17ed98 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0003.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0004.png b/assets/raw/sprites/enemy/animations/animations/walk0004.png new file mode 100644 index 0000000..a91c9a3 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0004.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0005.png b/assets/raw/sprites/enemy/animations/animations/walk0005.png new file mode 100644 index 0000000..b780281 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0005.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0006.png b/assets/raw/sprites/enemy/animations/animations/walk0006.png new file mode 100644 index 0000000..cc76275 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0006.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0007.png b/assets/raw/sprites/enemy/animations/animations/walk0007.png new file mode 100644 index 0000000..d85fea1 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0007.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0008.png b/assets/raw/sprites/enemy/animations/animations/walk0008.png new file mode 100644 index 0000000..b7255d1 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0008.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0009.png b/assets/raw/sprites/enemy/animations/animations/walk0009.png new file mode 100644 index 0000000..7167ae3 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0009.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0010.png b/assets/raw/sprites/enemy/animations/animations/walk0010.png new file mode 100644 index 0000000..e933f15 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0010.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0011.png b/assets/raw/sprites/enemy/animations/animations/walk0011.png new file mode 100644 index 0000000..8ce19b8 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0011.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0012.png b/assets/raw/sprites/enemy/animations/animations/walk0012.png new file mode 100644 index 0000000..2c83cae Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0012.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0013.png b/assets/raw/sprites/enemy/animations/animations/walk0013.png new file mode 100644 index 0000000..6131798 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0013.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0014.png b/assets/raw/sprites/enemy/animations/animations/walk0014.png new file mode 100644 index 0000000..a82abf8 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0014.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0015.png b/assets/raw/sprites/enemy/animations/animations/walk0015.png new file mode 100644 index 0000000..17ce02c Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0015.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0016.png b/assets/raw/sprites/enemy/animations/animations/walk0016.png new file mode 100644 index 0000000..f5ea2cf Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0016.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0017.png b/assets/raw/sprites/enemy/animations/animations/walk0017.png new file mode 100644 index 0000000..96021fd Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0017.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0018.png b/assets/raw/sprites/enemy/animations/animations/walk0018.png new file mode 100644 index 0000000..b9146cf Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0018.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0019.png b/assets/raw/sprites/enemy/animations/animations/walk0019.png new file mode 100644 index 0000000..0dc5c09 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0019.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0020.png b/assets/raw/sprites/enemy/animations/animations/walk0020.png new file mode 100644 index 0000000..d616ece Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0020.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0021.png b/assets/raw/sprites/enemy/animations/animations/walk0021.png new file mode 100644 index 0000000..fdd3888 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0021.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0022.png b/assets/raw/sprites/enemy/animations/animations/walk0022.png new file mode 100644 index 0000000..5073196 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0022.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0023.png b/assets/raw/sprites/enemy/animations/animations/walk0023.png new file mode 100644 index 0000000..f7aa5a6 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0023.png differ diff --git a/assets/raw/sprites/enemy/animations/animations/walk0024.png b/assets/raw/sprites/enemy/animations/animations/walk0024.png new file mode 100644 index 0000000..196a5a8 Binary files /dev/null and b/assets/raw/sprites/enemy/animations/animations/walk0024.png differ diff --git a/assets/raw/sprites/octocat/dead0000.png b/assets/raw/sprites/octocat/dead0000.png new file mode 100644 index 0000000..1d2af53 Binary files /dev/null and b/assets/raw/sprites/octocat/dead0000.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0001.png b/assets/raw/sprites/octocat/hurt/catHurt0001.png new file mode 100644 index 0000000..3a3f85b Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0001.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0002.png b/assets/raw/sprites/octocat/hurt/catHurt0002.png new file mode 100644 index 0000000..7e83f74 Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0002.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0003.png b/assets/raw/sprites/octocat/hurt/catHurt0003.png new file mode 100644 index 0000000..a700acd Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0003.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0004.png b/assets/raw/sprites/octocat/hurt/catHurt0004.png new file mode 100644 index 0000000..ac42dd5 Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0004.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0005.png b/assets/raw/sprites/octocat/hurt/catHurt0005.png new file mode 100644 index 0000000..c8ced80 Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0005.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0006.png b/assets/raw/sprites/octocat/hurt/catHurt0006.png new file mode 100644 index 0000000..eaa9733 Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0006.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0007.png b/assets/raw/sprites/octocat/hurt/catHurt0007.png new file mode 100644 index 0000000..55a90dd Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0007.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0008.png b/assets/raw/sprites/octocat/hurt/catHurt0008.png new file mode 100644 index 0000000..4d1d6e9 Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0008.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0009.png b/assets/raw/sprites/octocat/hurt/catHurt0009.png new file mode 100644 index 0000000..fef8efa Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0009.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0010.png b/assets/raw/sprites/octocat/hurt/catHurt0010.png new file mode 100644 index 0000000..7a2ca10 Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0010.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0011.png b/assets/raw/sprites/octocat/hurt/catHurt0011.png new file mode 100644 index 0000000..9bdf08c Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0011.png differ diff --git a/assets/raw/sprites/octocat/hurt/catHurt0012.png b/assets/raw/sprites/octocat/hurt/catHurt0012.png new file mode 100644 index 0000000..32c252d Binary files /dev/null and b/assets/raw/sprites/octocat/hurt/catHurt0012.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0001.png b/assets/raw/sprites/octocat/idle/catIdle0001.png new file mode 100644 index 0000000..8a0344a Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0001.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0002.png b/assets/raw/sprites/octocat/idle/catIdle0002.png new file mode 100644 index 0000000..c9967d1 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0002.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0003.png b/assets/raw/sprites/octocat/idle/catIdle0003.png new file mode 100644 index 0000000..62d349e Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0003.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0004.png b/assets/raw/sprites/octocat/idle/catIdle0004.png new file mode 100644 index 0000000..8903dc4 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0004.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0005.png b/assets/raw/sprites/octocat/idle/catIdle0005.png new file mode 100644 index 0000000..7eae45c Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0005.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0006.png b/assets/raw/sprites/octocat/idle/catIdle0006.png new file mode 100644 index 0000000..3a1effb Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0006.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0007.png b/assets/raw/sprites/octocat/idle/catIdle0007.png new file mode 100644 index 0000000..df35196 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0007.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0008.png b/assets/raw/sprites/octocat/idle/catIdle0008.png new file mode 100644 index 0000000..71b5a8c Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0008.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0009.png b/assets/raw/sprites/octocat/idle/catIdle0009.png new file mode 100644 index 0000000..b0dee1a Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0009.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0010.png b/assets/raw/sprites/octocat/idle/catIdle0010.png new file mode 100644 index 0000000..4fe65ab Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0010.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0011.png b/assets/raw/sprites/octocat/idle/catIdle0011.png new file mode 100644 index 0000000..da08e45 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0011.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0012.png b/assets/raw/sprites/octocat/idle/catIdle0012.png new file mode 100644 index 0000000..2e2bf2d Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0012.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0013.png b/assets/raw/sprites/octocat/idle/catIdle0013.png new file mode 100644 index 0000000..4e90150 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0013.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0014.png b/assets/raw/sprites/octocat/idle/catIdle0014.png new file mode 100644 index 0000000..8b6a330 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0014.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0015.png b/assets/raw/sprites/octocat/idle/catIdle0015.png new file mode 100644 index 0000000..ca37346 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0015.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0016.png b/assets/raw/sprites/octocat/idle/catIdle0016.png new file mode 100644 index 0000000..730394b Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0016.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0017.png b/assets/raw/sprites/octocat/idle/catIdle0017.png new file mode 100644 index 0000000..be0215d Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0017.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0018.png b/assets/raw/sprites/octocat/idle/catIdle0018.png new file mode 100644 index 0000000..ee075c8 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0018.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0019.png b/assets/raw/sprites/octocat/idle/catIdle0019.png new file mode 100644 index 0000000..a608997 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0019.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0020.png b/assets/raw/sprites/octocat/idle/catIdle0020.png new file mode 100644 index 0000000..7ce33b4 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0020.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0021.png b/assets/raw/sprites/octocat/idle/catIdle0021.png new file mode 100644 index 0000000..c780fa4 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0021.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0022.png b/assets/raw/sprites/octocat/idle/catIdle0022.png new file mode 100644 index 0000000..cda9a3d Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0022.png differ diff --git a/assets/raw/sprites/octocat/idle/catIdle0023.png b/assets/raw/sprites/octocat/idle/catIdle0023.png new file mode 100644 index 0000000..cbd4ef8 Binary files /dev/null and b/assets/raw/sprites/octocat/idle/catIdle0023.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0001.png b/assets/raw/sprites/octocat/jump/catJump0001.png new file mode 100644 index 0000000..e7d22c4 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0001.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0002.png b/assets/raw/sprites/octocat/jump/catJump0002.png new file mode 100644 index 0000000..6f34278 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0002.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0003.png b/assets/raw/sprites/octocat/jump/catJump0003.png new file mode 100644 index 0000000..d7eff42 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0003.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0004.png b/assets/raw/sprites/octocat/jump/catJump0004.png new file mode 100644 index 0000000..136693d Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0004.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0005.png b/assets/raw/sprites/octocat/jump/catJump0005.png new file mode 100644 index 0000000..f2fdedd Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0005.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0006.png b/assets/raw/sprites/octocat/jump/catJump0006.png new file mode 100644 index 0000000..e975b50 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0006.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0007.png b/assets/raw/sprites/octocat/jump/catJump0007.png new file mode 100644 index 0000000..cb852a9 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0007.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0008.png b/assets/raw/sprites/octocat/jump/catJump0008.png new file mode 100644 index 0000000..26453a6 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0008.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0009.png b/assets/raw/sprites/octocat/jump/catJump0009.png new file mode 100644 index 0000000..a5dea49 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0009.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0010.png b/assets/raw/sprites/octocat/jump/catJump0010.png new file mode 100644 index 0000000..ec88678 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0010.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0011.png b/assets/raw/sprites/octocat/jump/catJump0011.png new file mode 100644 index 0000000..b3dede7 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0011.png differ diff --git a/assets/raw/sprites/octocat/jump/catJump0012.png b/assets/raw/sprites/octocat/jump/catJump0012.png new file mode 100644 index 0000000..afa1994 Binary files /dev/null and b/assets/raw/sprites/octocat/jump/catJump0012.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0001.png b/assets/raw/sprites/octocat/melee/catMelee0001.png new file mode 100644 index 0000000..3d56d22 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0001.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0002.png b/assets/raw/sprites/octocat/melee/catMelee0002.png new file mode 100644 index 0000000..17a1b8a Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0002.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0003.png b/assets/raw/sprites/octocat/melee/catMelee0003.png new file mode 100644 index 0000000..60ce909 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0003.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0004.png b/assets/raw/sprites/octocat/melee/catMelee0004.png new file mode 100644 index 0000000..6752a84 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0004.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0005.png b/assets/raw/sprites/octocat/melee/catMelee0005.png new file mode 100644 index 0000000..18ebcd8 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0005.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0006.png b/assets/raw/sprites/octocat/melee/catMelee0006.png new file mode 100644 index 0000000..2820cf8 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0006.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0007.png b/assets/raw/sprites/octocat/melee/catMelee0007.png new file mode 100644 index 0000000..2274dba Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0007.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0008.png b/assets/raw/sprites/octocat/melee/catMelee0008.png new file mode 100644 index 0000000..e3d846a Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0008.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0009.png b/assets/raw/sprites/octocat/melee/catMelee0009.png new file mode 100644 index 0000000..83521b0 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0009.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0010.png b/assets/raw/sprites/octocat/melee/catMelee0010.png new file mode 100644 index 0000000..3c1e789 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0010.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0011.png b/assets/raw/sprites/octocat/melee/catMelee0011.png new file mode 100644 index 0000000..531ba98 Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0011.png differ diff --git a/assets/raw/sprites/octocat/melee/catMelee0012.png b/assets/raw/sprites/octocat/melee/catMelee0012.png new file mode 100644 index 0000000..87dff0d Binary files /dev/null and b/assets/raw/sprites/octocat/melee/catMelee0012.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0001.png b/assets/raw/sprites/octocat/walk/catwalk0001.png new file mode 100644 index 0000000..aa3f9c3 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0001.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0002.png b/assets/raw/sprites/octocat/walk/catwalk0002.png new file mode 100644 index 0000000..59740d3 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0002.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0003.png b/assets/raw/sprites/octocat/walk/catwalk0003.png new file mode 100644 index 0000000..89a3c47 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0003.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0004.png b/assets/raw/sprites/octocat/walk/catwalk0004.png new file mode 100644 index 0000000..5d30d9a Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0004.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0005.png b/assets/raw/sprites/octocat/walk/catwalk0005.png new file mode 100644 index 0000000..01acb7d Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0005.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0006.png b/assets/raw/sprites/octocat/walk/catwalk0006.png new file mode 100644 index 0000000..5cbda14 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0006.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0007.png b/assets/raw/sprites/octocat/walk/catwalk0007.png new file mode 100644 index 0000000..723cc9d Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0007.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0008.png b/assets/raw/sprites/octocat/walk/catwalk0008.png new file mode 100644 index 0000000..3a731f0 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0008.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0009.png b/assets/raw/sprites/octocat/walk/catwalk0009.png new file mode 100644 index 0000000..41e10a2 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0009.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0010.png b/assets/raw/sprites/octocat/walk/catwalk0010.png new file mode 100644 index 0000000..e5ff89f Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0010.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0011.png b/assets/raw/sprites/octocat/walk/catwalk0011.png new file mode 100644 index 0000000..01c4875 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0011.png differ diff --git a/assets/raw/sprites/octocat/walk/catwalk0012.png b/assets/raw/sprites/octocat/walk/catwalk0012.png new file mode 100644 index 0000000..d44a459 Binary files /dev/null and b/assets/raw/sprites/octocat/walk/catwalk0012.png differ diff --git a/assets/sFX/ComputerHack.wav b/assets/sFX/ComputerHack.wav new file mode 100644 index 0000000..c50ea6d Binary files /dev/null and b/assets/sFX/ComputerHack.wav differ diff --git a/assets/sFX/Hacking.wav b/assets/sFX/Hacking.wav new file mode 100644 index 0000000..268e7af Binary files /dev/null and b/assets/sFX/Hacking.wav differ diff --git a/assets/sFX/Jump.wav b/assets/sFX/Jump.wav new file mode 100644 index 0000000..d67d201 Binary files /dev/null and b/assets/sFX/Jump.wav differ diff --git a/assets/sFX/death.wav b/assets/sFX/death.wav new file mode 100644 index 0000000..a046e85 Binary files /dev/null and b/assets/sFX/death.wav differ diff --git a/assets/sFX/walking.wav b/assets/sFX/walking.wav new file mode 100644 index 0000000..97a6214 Binary files /dev/null and b/assets/sFX/walking.wav differ diff --git a/assets/sprites/enemy/enemyIdle.json b/assets/sprites/enemy/enemyIdle.json new file mode 100644 index 0000000..88f01b4 --- /dev/null +++ b/assets/sprites/enemy/enemyIdle.json @@ -0,0 +1,141 @@ +{"frames": { + +"enemyIdle1": +{ + "frame": {"x":1,"y":511,"w":114,"h":250}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":6,"w":114,"h":250}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle2": +{ + "frame": {"x":1,"y":511,"w":114,"h":250}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":6,"w":114,"h":250}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle3": +{ + "frame": {"x":117,"y":511,"w":114,"h":250}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":6,"w":114,"h":250}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle4": +{ + "frame": {"x":235,"y":510,"w":114,"h":251}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":5,"w":114,"h":251}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle5": +{ + "frame": {"x":235,"y":257,"w":115,"h":251}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":5,"w":115,"h":251}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle6": +{ + "frame": {"x":1,"y":257,"w":115,"h":252}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":4,"w":115,"h":252}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle7": +{ + "frame": {"x":118,"y":257,"w":115,"h":252}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":4,"w":115,"h":252}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle8": +{ + "frame": {"x":352,"y":1,"w":115,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":3,"w":115,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle9": +{ + "frame": {"x":352,"y":256,"w":115,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":3,"w":115,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle10": +{ + "frame": {"x":352,"y":1,"w":115,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":3,"w":115,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle11": +{ + "frame": {"x":118,"y":257,"w":115,"h":252}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":4,"w":115,"h":252}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle12": +{ + "frame": {"x":1,"y":257,"w":115,"h":252}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":4,"w":115,"h":252}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle13": +{ + "frame": {"x":235,"y":257,"w":115,"h":251}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":5,"w":115,"h":251}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle14": +{ + "frame": {"x":235,"y":510,"w":114,"h":251}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":5,"w":114,"h":251}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle15": +{ + "frame": {"x":117,"y":511,"w":114,"h":250}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":6,"w":114,"h":250}, + "sourceSize": {"w":256,"h":256} +}, +"enemyIdle16": +{ + "frame": {"x":1,"y":511,"w":114,"h":250}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":6,"w":114,"h":250}, + "sourceSize": {"w":256,"h":256} +} +}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "enemyIdle.png", + "format": "RGBA8888", + "size": {"w":468,"h":762}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:335568688bbd6970f6ba4abb20ce32b6:298a7ec356bbfd49ba85db2d7aadff9b:5d6ccf37bedd7d9a3952749ad2d58f2d$" +} +} diff --git a/assets/sprites/enemy/enemyIdle.png b/assets/sprites/enemy/enemyIdle.png new file mode 100644 index 0000000..ffe4ace Binary files /dev/null and b/assets/sprites/enemy/enemyIdle.png differ diff --git a/assets/sprites/enemy/enemyWalk.json b/assets/sprites/enemy/enemyWalk.json new file mode 100644 index 0000000..2d61f92 --- /dev/null +++ b/assets/sprites/enemy/enemyWalk.json @@ -0,0 +1,180 @@ +{"frames": { + +"enemyWalk1": +{ + "frame": {"x":211,"y":1,"w":210,"h":245}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":12,"y":1,"w":210,"h":245}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk2": +{ + "frame": {"x":1,"y":1,"w":208,"h":248}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":13,"y":1,"w":208,"h":248}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk3": +{ + "frame": {"x":1,"y":500,"w":200,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":17,"y":1,"w":200,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk4": +{ + "frame": {"x":203,"y":500,"w":185,"h":254}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":24,"y":2,"w":185,"h":254}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk5": +{ + "frame": {"x":595,"y":1,"w":161,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":36,"y":2,"w":161,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk6": +{ + "frame": {"x":440,"y":751,"w":130,"h":254}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":51,"y":2,"w":130,"h":254}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk7": +{ + "frame": {"x":572,"y":750,"w":112,"h":254}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":2,"w":112,"h":254}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk8": +{ + "frame": {"x":686,"y":747,"w":120,"h":254}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":2,"w":120,"h":254}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk9": +{ + "frame": {"x":808,"y":499,"w":129,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":56,"y":1,"w":129,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk10": +{ + "frame": {"x":415,"y":256,"w":143,"h":243}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":47,"y":1,"w":143,"h":243}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk11": +{ + "frame": {"x":560,"y":256,"w":145,"h":240}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":46,"y":1,"w":145,"h":240}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk12": +{ + "frame": {"x":707,"y":256,"w":143,"h":241}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":47,"y":1,"w":143,"h":241}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk13": +{ + "frame": {"x":646,"y":499,"w":137,"h":246}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":52,"y":1,"w":137,"h":246}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk14": +{ + "frame": {"x":310,"y":756,"w":128,"h":251}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":58,"y":2,"w":128,"h":251}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk15": +{ + "frame": {"x":808,"y":754,"w":123,"h":250}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":57,"y":3,"w":123,"h":250}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk16": +{ + "frame": {"x":531,"y":501,"w":113,"h":247}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":57,"y":3,"w":113,"h":247}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk17": +{ + "frame": {"x":192,"y":756,"w":116,"h":252}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":56,"y":3,"w":116,"h":252}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk18": +{ + "frame": {"x":758,"y":1,"w":144,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":44,"y":3,"w":144,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk19": +{ + "frame": {"x":423,"y":1,"w":170,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":31,"y":3,"w":170,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk20": +{ + "frame": {"x":1,"y":755,"w":189,"h":253}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":22,"y":2,"w":189,"h":253}, + "sourceSize": {"w":256,"h":256} +}, +"enemyWalk21": +{ + "frame": {"x":1,"y":251,"w":208,"h":247}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":13,"y":1,"w":208,"h":247}, + "sourceSize": {"w":256,"h":256} +}}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "enemyWalk.png", + "format": "RGBA8888", + "size": {"w":938,"h":1009}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:d6dbec045e4e8cf9f67aace0f0c8f5f6:d7a07d5be50bebb168dcc66d1de3cf76:8e93c5ffd3586901d996af9a8f40df2c$" +} +} diff --git a/assets/sprites/enemy/enemyWalk.png b/assets/sprites/enemy/enemyWalk.png new file mode 100644 index 0000000..08465ce Binary files /dev/null and b/assets/sprites/enemy/enemyWalk.png differ diff --git a/assets/sprites/octocat/octocatDead.json b/assets/sprites/octocat/octocatDead.json new file mode 100644 index 0000000..25256c9 --- /dev/null +++ b/assets/sprites/octocat/octocatDead.json @@ -0,0 +1,20 @@ +{"frames": { + +"catDead_1": +{ + "frame": {"x":1,"y":1,"w":252,"h":142}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":0,"y":63,"w":252,"h":142}, + "sourceSize": {"w":252,"h":200} +}}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "octocatDead.png", + "format": "RGBA8888", + "size": {"w":254,"h":144}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:3c11ea87d6f92afe13c6cb6f692baab3:28ca204c96d92a0566fd32c34adf87e8:a616eb0f393fdae8818d669397924b96$" +} +} diff --git a/assets/sprites/octocat/octocatDead.png b/assets/sprites/octocat/octocatDead.png new file mode 100644 index 0000000..b29c822 Binary files /dev/null and b/assets/sprites/octocat/octocatDead.png differ diff --git a/assets/sprites/octocat/octocatHurt.json b/assets/sprites/octocat/octocatHurt.json new file mode 100644 index 0000000..064c284 --- /dev/null +++ b/assets/sprites/octocat/octocatHurt.json @@ -0,0 +1,189 @@ +{"frames": { + +"catHurt_1": +{ + "frame": {"x":1,"y":1,"w":188,"h":235}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":33,"y":9,"w":188,"h":235}, + "sourceSize": {"w":256,"h":235} +}, +"catHurt_2": +{ + "frame": {"x":191,"y":1,"w":187,"h":234}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":187,"h":234}, + "sourceSize": {"w":256,"h":234} +}, +"catHurt_3": +{ + "frame": {"x":344,"y":237,"w":185,"h":231}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":185,"h":231}, + "sourceSize": {"w":256,"h":231} +}, +"catHurt_4": +{ + "frame": {"x":1,"y":238,"w":182,"h":227}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":9,"w":182,"h":227}, + "sourceSize": {"w":256,"h":227} +}, +"catHurt_5": +{ + "frame": {"x":698,"y":1,"w":176,"h":220}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":37,"y":9,"w":176,"h":220}, + "sourceSize": {"w":256,"h":220} +}, +"catHurt_6": +{ + "frame": {"x":856,"y":223,"w":172,"h":218}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":38,"y":9,"w":172,"h":218}, + "sourceSize": {"w":256,"h":218} +}, +"catHurt_7": +{ + "frame": {"x":876,"y":1,"w":166,"h":219}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":40,"y":9,"w":166,"h":219}, + "sourceSize": {"w":256,"h":219} +}, +"catHurt_8": +{ + "frame": {"x":692,"y":225,"w":162,"h":221}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":41,"y":9,"w":162,"h":221}, + "sourceSize": {"w":256,"h":221} +}, +"catHurt_9": +{ + "frame": {"x":531,"y":226,"w":159,"h":222}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":43,"y":9,"w":159,"h":222}, + "sourceSize": {"w":256,"h":222} +}, +"catHurt_10": +{ + "frame": {"x":538,"y":1,"w":158,"h":222}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":44,"y":9,"w":158,"h":222}, + "sourceSize": {"w":256,"h":222} +}, +"catHurt_11": +{ + "frame": {"x":185,"y":238,"w":157,"h":223}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":44,"y":9,"w":157,"h":223}, + "sourceSize": {"w":256,"h":223} +}, +"catHurt_12": +{ + "frame": {"x":380,"y":1,"w":156,"h":223}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":45,"y":9,"w":156,"h":223}, + "sourceSize": {"w":256,"h":223} +}, +"catHurt_13": +{ + "frame": {"x":185,"y":238,"w":157,"h":223}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":44,"y":9,"w":157,"h":223}, + "sourceSize": {"w":256,"h":223} +}, +"catHurt_14": +{ + "frame": {"x":538,"y":1,"w":158,"h":222}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":44,"y":9,"w":158,"h":222}, + "sourceSize": {"w":256,"h":222} +}, +"catHurt_15": +{ + "frame": {"x":531,"y":226,"w":159,"h":222}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":43,"y":9,"w":159,"h":222}, + "sourceSize": {"w":256,"h":222} +}, +"catHurt_16": +{ + "frame": {"x":692,"y":225,"w":162,"h":221}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":41,"y":9,"w":162,"h":221}, + "sourceSize": {"w":256,"h":221} +}, +"catHurt_17": +{ + "frame": {"x":876,"y":1,"w":166,"h":219}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":40,"y":9,"w":166,"h":219}, + "sourceSize": {"w":256,"h":219} +}, +"catHurt_18": +{ + "frame": {"x":856,"y":223,"w":172,"h":218}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":38,"y":9,"w":172,"h":218}, + "sourceSize": {"w":256,"h":218} +}, +"catHurt_19": +{ + "frame": {"x":698,"y":1,"w":176,"h":220}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":37,"y":9,"w":176,"h":220}, + "sourceSize": {"w":256,"h":220} +}, +"catHurt_20": +{ + "frame": {"x":1,"y":238,"w":182,"h":227}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":9,"w":182,"h":227}, + "sourceSize": {"w":256,"h":227} +}, +"catHurt_21": +{ + "frame": {"x":344,"y":237,"w":185,"h":231}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":185,"h":231}, + "sourceSize": {"w":256,"h":231} +}, +"catHurt_22": +{ + "frame": {"x":191,"y":1,"w":187,"h":234}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":187,"h":234}, + "sourceSize": {"w":256,"h":234} +} +}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "octocatHurt.png", + "format": "RGBA8888", + "size": {"w":1043,"h":469}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:893519d6945761a46f81aff5dc0c0a8a:22f95b069f2bd94d20e9b53b8a2ba7e7:86bb9f4432cfdaf0546a0513b5be7b12$" +} +} diff --git a/assets/sprites/octocat/octocatHurt.png b/assets/sprites/octocat/octocatHurt.png new file mode 100644 index 0000000..9f91b24 Binary files /dev/null and b/assets/sprites/octocat/octocatHurt.png differ diff --git a/assets/sprites/octocat/octocatIdle.json b/assets/sprites/octocat/octocatIdle.json new file mode 100644 index 0000000..cb5d66e --- /dev/null +++ b/assets/sprites/octocat/octocatIdle.json @@ -0,0 +1,189 @@ +{"frames": { + +"catIdle_1": +{ + "frame": {"x":1,"y":240,"w":175,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":8,"w":175,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_2": +{ + "frame": {"x":1,"y":1,"w":176,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":8,"w":176,"h":237}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_3": +{ + "frame": {"x":690,"y":240,"w":175,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":175,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_4": +{ + "frame": {"x":692,"y":1,"w":174,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":9,"w":174,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_5": +{ + "frame": {"x":178,"y":240,"w":173,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":36,"y":9,"w":173,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_6": +{ + "frame": {"x":179,"y":1,"w":171,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":38,"y":9,"w":171,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_7": +{ + "frame": {"x":352,"y":1,"w":170,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":39,"y":9,"w":170,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_8": +{ + "frame": {"x":867,"y":239,"w":169,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":40,"y":10,"w":169,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_9": +{ + "frame": {"x":868,"y":1,"w":168,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":41,"y":10,"w":168,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_10": +{ + "frame": {"x":353,"y":240,"w":167,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":42,"y":10,"w":167,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_11": +{ + "frame": {"x":522,"y":240,"w":166,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":43,"y":10,"w":166,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_12": +{ + "frame": {"x":524,"y":1,"w":166,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":43,"y":10,"w":166,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_13": +{ + "frame": {"x":522,"y":240,"w":166,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":43,"y":10,"w":166,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_14": +{ + "frame": {"x":353,"y":240,"w":167,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":42,"y":10,"w":167,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_15": +{ + "frame": {"x":868,"y":1,"w":168,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":41,"y":10,"w":168,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_16": +{ + "frame": {"x":867,"y":239,"w":169,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":40,"y":10,"w":169,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_17": +{ + "frame": {"x":352,"y":1,"w":170,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":39,"y":9,"w":170,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_18": +{ + "frame": {"x":179,"y":1,"w":171,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":38,"y":9,"w":171,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_19": +{ + "frame": {"x":178,"y":240,"w":173,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":36,"y":9,"w":173,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catIdle_20": +{ + "frame": {"x":692,"y":1,"w":174,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":9,"w":174,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_21": +{ + "frame": {"x":690,"y":240,"w":175,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":175,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catIdle_22": +{ + "frame": {"x":1,"y":1,"w":176,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":8,"w":176,"h":237}, + "sourceSize": {"w":256,"h":237} +} +}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "octocatIdle.png", + "format": "RGBA8888", + "size": {"w":1037,"h":478}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:3e3ac24b24dc512448f560184034da57:1a21931b8d4a770f725ff46d2b4381c3:050bda55b72023a450102eb64c6cc61b$" +} +} diff --git a/assets/sprites/octocat/octocatIdle.png b/assets/sprites/octocat/octocatIdle.png new file mode 100644 index 0000000..405f6ab Binary files /dev/null and b/assets/sprites/octocat/octocatIdle.png differ diff --git a/assets/sprites/octocat/octocatJump.json b/assets/sprites/octocat/octocatJump.json new file mode 100644 index 0000000..3493ab4 --- /dev/null +++ b/assets/sprites/octocat/octocatJump.json @@ -0,0 +1,173 @@ +{"frames": { + +"catJump_1": +{ + "frame": {"x":687,"y":165,"w":218,"h":162}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":8,"w":218,"h":162}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_2": +{ + "frame": {"x":234,"y":162,"w":219,"h":162}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":8,"w":219,"h":162}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_3": +{ + "frame": {"x":1,"y":323,"w":219,"h":162}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":8,"w":219,"h":162}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_4": +{ + "frame": {"x":469,"y":1,"w":221,"h":162}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":8,"w":221,"h":162}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_5": +{ + "frame": {"x":679,"y":329,"w":223,"h":161}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":5,"y":8,"w":223,"h":161}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_6": +{ + "frame": {"x":453,"y":326,"w":224,"h":161}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":5,"y":8,"w":224,"h":161}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_7": +{ + "frame": {"x":222,"y":326,"w":229,"h":160}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":229,"h":160}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_8": +{ + "frame": {"x":455,"y":165,"w":230,"h":159}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":230,"h":159}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_9": +{ + "frame": {"x":1,"y":162,"w":231,"h":159}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":231,"h":159}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_10": +{ + "frame": {"x":1,"y":1,"w":232,"h":159}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":232,"h":159}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_11": +{ + "frame": {"x":235,"y":1,"w":232,"h":159}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":232,"h":159}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_12": +{ + "frame": {"x":1,"y":1,"w":232,"h":159}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":232,"h":159}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_13": +{ + "frame": {"x":1,"y":162,"w":231,"h":159}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":231,"h":159}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_14": +{ + "frame": {"x":455,"y":165,"w":230,"h":159}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":230,"h":159}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_15": +{ + "frame": {"x":222,"y":326,"w":229,"h":160}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":4,"y":8,"w":229,"h":160}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_16": +{ + "frame": {"x":453,"y":326,"w":224,"h":161}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":5,"y":8,"w":224,"h":161}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_17": +{ + "frame": {"x":679,"y":329,"w":223,"h":161}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":5,"y":8,"w":223,"h":161}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_18": +{ + "frame": {"x":469,"y":1,"w":221,"h":162}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":8,"w":221,"h":162}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_19": +{ + "frame": {"x":1,"y":323,"w":219,"h":162}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":8,"w":219,"h":162}, + "sourceSize": {"w":256,"h":256} +}, +"catJump_20": +{ + "frame": {"x":234,"y":162,"w":219,"h":162}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":8,"w":219,"h":162}, + "sourceSize": {"w":256,"h":256} +} +}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "octocatJump.png", + "format": "RGBA8888", + "size": {"w":915,"h":512}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:1d145bdb982be988d6c2d2c5091d0e08:ead0c2f726f765fbeba49d29684256d7:5b9034122731c7435533e847d10d99ea$" +} +} diff --git a/assets/sprites/octocat/octocatJump.png b/assets/sprites/octocat/octocatJump.png new file mode 100644 index 0000000..945e6a3 Binary files /dev/null and b/assets/sprites/octocat/octocatJump.png differ diff --git a/assets/sprites/octocat/octocatMelee.json b/assets/sprites/octocat/octocatMelee.json new file mode 100644 index 0000000..ad9de09 --- /dev/null +++ b/assets/sprites/octocat/octocatMelee.json @@ -0,0 +1,189 @@ +{"frames": { + +"catMelee_1": +{ + "frame": {"x":782,"y":229,"w":175,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":8,"w":175,"h":237}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_2": +{ + "frame": {"x":440,"y":1,"w":175,"h":233}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":175,"h":233}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_3": +{ + "frame": {"x":617,"y":1,"w":175,"h":226}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":12,"w":175,"h":226}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_4": +{ + "frame": {"x":794,"y":1,"w":175,"h":225}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":15,"w":175,"h":225}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_5": +{ + "frame": {"x":971,"y":1,"w":175,"h":223}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":18,"w":175,"h":223}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_6": +{ + "frame": {"x":959,"y":228,"w":176,"h":223}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":18,"w":176,"h":223}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_7": +{ + "frame": {"x":600,"y":236,"w":180,"h":224}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":18,"w":180,"h":224}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_8": +{ + "frame": {"x":411,"y":238,"w":187,"h":226}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":18,"w":187,"h":226}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_9": +{ + "frame": {"x":211,"y":238,"w":198,"h":230}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":17,"w":198,"h":230}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_10": +{ + "frame": {"x":1,"y":238,"w":208,"h":232}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":36,"y":17,"w":208,"h":232}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_11": +{ + "frame": {"x":222,"y":1,"w":216,"h":235}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":37,"y":16,"w":216,"h":235}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_12": +{ + "frame": {"x":1,"y":1,"w":219,"h":235}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":37,"y":16,"w":219,"h":235}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_13": +{ + "frame": {"x":222,"y":1,"w":216,"h":235}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":37,"y":16,"w":216,"h":235}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_14": +{ + "frame": {"x":1,"y":238,"w":208,"h":232}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":36,"y":17,"w":208,"h":232}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_15": +{ + "frame": {"x":211,"y":238,"w":198,"h":230}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":17,"w":198,"h":230}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_16": +{ + "frame": {"x":411,"y":238,"w":187,"h":226}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":35,"y":18,"w":187,"h":226}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_17": +{ + "frame": {"x":600,"y":236,"w":180,"h":224}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":18,"w":180,"h":224}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_18": +{ + "frame": {"x":959,"y":228,"w":176,"h":223}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":18,"w":176,"h":223}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_19": +{ + "frame": {"x":971,"y":1,"w":175,"h":223}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":18,"w":175,"h":223}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_20": +{ + "frame": {"x":794,"y":1,"w":175,"h":225}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":15,"w":175,"h":225}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_21": +{ + "frame": {"x":617,"y":1,"w":175,"h":226}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":12,"w":175,"h":226}, + "sourceSize": {"w":256,"h":256} +}, +"catMelee_22": +{ + "frame": {"x":440,"y":1,"w":175,"h":233}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":34,"y":9,"w":175,"h":233}, + "sourceSize": {"w":256,"h":256} +} +}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "octocatMelee.png", + "format": "RGBA8888", + "size": {"w":1147,"h":471}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:6477d98fb2a4e49a271695387207a0dd:f66ba51cd4c57eaee77b8bf9b73a69fc:503f7f0872d288b2b389dd23a8ef0caa$" +} +} diff --git a/assets/sprites/octocat/octocatMelee.png b/assets/sprites/octocat/octocatMelee.png new file mode 100644 index 0000000..c89f809 Binary files /dev/null and b/assets/sprites/octocat/octocatMelee.png differ diff --git a/assets/sprites/octocat/octocatWalk.json b/assets/sprites/octocat/octocatWalk.json new file mode 100644 index 0000000..9a836ec --- /dev/null +++ b/assets/sprites/octocat/octocatWalk.json @@ -0,0 +1,189 @@ +{"frames": { + +"catWalk_1": +{ + "frame": {"x":1,"y":1,"w":203,"h":237}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":26,"y":7,"w":203,"h":237}, + "sourceSize": {"w":256,"h":237} +}, +"catWalk_2": +{ + "frame": {"x":206,"y":1,"w":198,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":30,"y":7,"w":198,"h":236}, + "sourceSize": {"w":256,"h":236} +}, +"catWalk_3": +{ + "frame": {"x":406,"y":1,"w":186,"h":235}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":39,"y":7,"w":186,"h":235}, + "sourceSize": {"w":256,"h":235} +}, +"catWalk_4": +{ + "frame": {"x":594,"y":1,"w":164,"h":234}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":55,"y":7,"w":164,"h":234}, + "sourceSize": {"w":256,"h":234} +}, +"catWalk_5": +{ + "frame": {"x":760,"y":1,"w":147,"h":232}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":147,"h":232}, + "sourceSize": {"w":256,"h":232} +}, +"catWalk_6": +{ + "frame": {"x":786,"y":235,"w":139,"h":229}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":139,"h":229}, + "sourceSize": {"w":256,"h":229} +}, +"catWalk_7": +{ + "frame": {"x":408,"y":238,"w":130,"h":226}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":130,"h":226}, + "sourceSize": {"w":256,"h":226} +}, +"catWalk_8": +{ + "frame": {"x":540,"y":238,"w":123,"h":222}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":123,"h":222}, + "sourceSize": {"w":256,"h":222} +}, +"catWalk_9": +{ + "frame": {"x":665,"y":237,"w":119,"h":218}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":67,"y":7,"w":119,"h":218}, + "sourceSize": {"w":256,"h":218} +}, +"catWalk_10": +{ + "frame": {"x":278,"y":239,"w":128,"h":215}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":67,"y":7,"w":128,"h":215}, + "sourceSize": {"w":256,"h":215} +}, +"catWalk_11": +{ + "frame": {"x":141,"y":240,"w":135,"h":213}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":67,"y":7,"w":135,"h":213}, + "sourceSize": {"w":256,"h":213} +}, +"catWalk_12": +{ + "frame": {"x":1,"y":240,"w":138,"h":213}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":67,"y":7,"w":138,"h":213}, + "sourceSize": {"w":256,"h":213} +}, +"catWalk_13": +{ + "frame": {"x":141,"y":240,"w":135,"h":213}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":67,"y":7,"w":135,"h":213}, + "sourceSize": {"w":256,"h":213} +}, +"catWalk_14": +{ + "frame": {"x":278,"y":239,"w":128,"h":215}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":67,"y":7,"w":128,"h":215}, + "sourceSize": {"w":256,"h":215} +}, +"catWalk_15": +{ + "frame": {"x":665,"y":237,"w":119,"h":218}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":67,"y":7,"w":119,"h":218}, + "sourceSize": {"w":256,"h":218} +}, +"catWalk_16": +{ + "frame": {"x":540,"y":238,"w":123,"h":222}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":123,"h":222}, + "sourceSize": {"w":256,"h":222} +}, +"catWalk_17": +{ + "frame": {"x":408,"y":238,"w":130,"h":226}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":130,"h":226}, + "sourceSize": {"w":256,"h":226} +}, +"catWalk_18": +{ + "frame": {"x":786,"y":235,"w":139,"h":229}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":139,"h":229}, + "sourceSize": {"w":256,"h":229} +}, +"catWalk_19": +{ + "frame": {"x":760,"y":1,"w":147,"h":232}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":66,"y":7,"w":147,"h":232}, + "sourceSize": {"w":256,"h":232} +}, +"catWalk_20": +{ + "frame": {"x":594,"y":1,"w":164,"h":234}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":55,"y":7,"w":164,"h":234}, + "sourceSize": {"w":256,"h":234} +}, +"catWalk_21": +{ + "frame": {"x":406,"y":1,"w":186,"h":235}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":39,"y":7,"w":186,"h":235}, + "sourceSize": {"w":256,"h":235} +}, +"catWalk_22": +{ + "frame": {"x":206,"y":1,"w":198,"h":236}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":30,"y":7,"w":198,"h":236}, + "sourceSize": {"w":256,"h":236} +} +}, +"meta": { + "app": "http://www.codeandweb.com/texturepacker", + "version": "1.0", + "image": "octocatWalk.png", + "format": "RGBA8888", + "size": {"w":926,"h":465}, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:c6aac602c633ff44692f3cbf40f6766d:0f0295ed17c217b71988424071a98d04:1d2f2f5add1af56f8bd8befc73c38430$" +} +} diff --git a/assets/sprites/octocat/octocatWalk.png b/assets/sprites/octocat/octocatWalk.png new file mode 100644 index 0000000..b9d2789 Binary files /dev/null and b/assets/sprites/octocat/octocatWalk.png differ diff --git a/assets/sprites/world/gameoverBackground.png b/assets/sprites/world/gameoverBackground.png new file mode 100644 index 0000000..3385d75 Binary files /dev/null and b/assets/sprites/world/gameoverBackground.png differ diff --git a/assets/sprites/world/levelrender.png b/assets/sprites/world/levelrender.png new file mode 100644 index 0000000..8f315cb Binary files /dev/null and b/assets/sprites/world/levelrender.png differ diff --git a/assets/sprites/world/levelrender2.png b/assets/sprites/world/levelrender2.png new file mode 100644 index 0000000..9ec0ae9 Binary files /dev/null and b/assets/sprites/world/levelrender2.png differ diff --git a/assets/sprites/world/test/platform.jpg b/assets/sprites/world/test/platform.jpg new file mode 100644 index 0000000..df4c1b7 Binary files /dev/null and b/assets/sprites/world/test/platform.jpg differ diff --git a/gameover.html b/gameover.html new file mode 100644 index 0000000..ce7755e --- /dev/null +++ b/gameover.html @@ -0,0 +1,27 @@ + + + + + Mona's Escape + + + + + + +
+

Game Over

+

Thank you for playing our demo for GitHub's November 2016 GameOff

+ On GitHub + Play Again +
+

Programmer: Joshua Shoemaker @JShoemakerDev

+

Artist: Travis Gatlin @TTS_Travis

+

Level/Sound Designer: Spencer Shoemaker @syco1316

+
+ + + + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..b302b8b --- /dev/null +++ b/index.html @@ -0,0 +1,34 @@ + + + + Mona's Escape + + + + + + + + + + + + + + + + + + + + + + +