Skip to content

Commit

Permalink
unused graphic/image files remove
Browse files Browse the repository at this point in the history
  • Loading branch information
hasifumi committed Apr 13, 2012
1 parent 7ecdd73 commit 031543b
Show file tree
Hide file tree
Showing 211 changed files with 99 additions and 664 deletions.
2 changes: 1 addition & 1 deletion Resources/app.js
Expand Up @@ -18,7 +18,7 @@
game.frame = 0; game.frame = 0;
TestScene = require('testScene').testScene; TestScene = require('testScene').testScene;
testScene = new TestScene(game); testScene = new TestScene(game);
FieldScene = require('fieldscene').fieldScene; FieldScene = require('fieldScene').fieldScene;
fieldScene = new FieldScene(game); fieldScene = new FieldScene(game);
game.addEventListener('onload', function(e) { game.addEventListener('onload', function(e) {
var WINDOW_SCALE_FACTOR_X, WINDOW_SCALE_FACTOR_Y, screenScale; var WINDOW_SCALE_FACTOR_X, WINDOW_SCALE_FACTOR_Y, screenScale;
Expand Down
68 changes: 33 additions & 35 deletions Resources/fieldScene.js
@@ -1,37 +1,37 @@
var Map, clearMaps, map, mapjson, maps, quicktigame2d, self, updateMaps;
quicktigame2d = require('com.googlecode.quicktigame2d');
self = quicktigame2d.createScene();
map = "";
maps = [];
mapjson = "";
Map = require('map').Map;
clearMaps = function(_maps) {
var i, _i, _len;
for (_i = 0, _len = _maps.length; _i < _len; _i++) {
i = _maps[_i];
self.remove(i);
i = null;
}
return _maps = [];
};
updateMaps = function(_mapfile, _maps, _mapjson) {
var i, mapfile, _i, _len, _map, _ref, _results;
setTimeout(function() {
return Ti.API.debug("Sleep 3 sec.");
}, 3000);
mapfile = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, _mapfile);
mapjson = JSON.parse(mapfile.read().toString());
_mapjson = mapjson;
_ref = mapjson.layers;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
i = _ref[_i];
_results.push(mapjson.layers[_i].type === 'tilelayer' ? (_map = new Map(_mapfile, _i), _maps.push(_map), _maps[_i].z = _i, self.add(_maps[_i]), _i === 0 ? (_maps[_i].loadCollisionData(), _maps[_i].loadDoorData()) : void 0) : void 0);
}
return _results;
};
exports.fieldScene = function(_game) { exports.fieldScene = function(_game) {
var Map, Pad, Player, WINDOW_SCALE_FACTOR_X, WINDOW_SCALE_FACTOR_Y, clearMaps, map, mapjson, maps, nextMapX, nextMapY, nextPlayerX, nextPlayerY, pad, player, quicktigame2d, self, updateMaps; var Pad, Player, WINDOW_SCALE_FACTOR_X, WINDOW_SCALE_FACTOR_Y, nextMapX, nextMapY, nextPlayerX, nextPlayerY, pad, player;
quicktigame2d = require('com.googlecode.quicktigame2d');
self = quicktigame2d.createScene();
self.init = function() {};
map = "";
maps = [];
mapjson = "";
Map = require('map').Map;
clearMaps = function(_maps) {
var i, _i, _len;
for (_i = 0, _len = _maps.length; _i < _len; _i++) {
i = _maps[_i];
self.remove(i);
i = null;
}
return _maps = [];
};
updateMaps = function(_mapfile, _maps, _mapjson) {
var i, mapfile, _i, _len, _map, _ref, _results;
setTimeout(function() {
return Ti.API.debug("Sleep 3 sec.");
}, 3000);
mapfile = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, _mapfile);
mapjson = JSON.parse(mapfile.read().toString());
_mapjson = mapjson;
_ref = mapjson.layers;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
i = _ref[_i];
_results.push(mapjson.layers[_i].type === 'tilelayer' ? (_map = new Map(_mapfile, _i), _maps.push(_map), _maps[_i].z = _i, self.add(_maps[_i]), _i === 0 ? (_maps[_i].loadCollisionData(), _maps[_i].loadDoorData()) : void 0) : void 0);
}
return _results;
};
updateMaps('graphics/map/map001.json', maps, mapjson); updateMaps('graphics/map/map001.json', maps, mapjson);
map = maps[0]; map = maps[0];
Player = require('player').Player; Player = require('player').Player;
Expand Down Expand Up @@ -66,8 +66,6 @@ exports.fieldScene = function(_game) {
} }
player.animate(player.direction * 3, 2, 250, -1); player.animate(player.direction * 3, 2, 250, -1);
if (((player.vx !== 0) && (Math.abs(player.old_x - player.x) % player.width === 0)) || ((player.vy !== 0) && (Math.abs(player.old_y - player.y) % player.height === 0)) || ((map.vx !== 0) && (Math.abs(map.old_x - map.x) % player.width === 0)) || ((map.vy !== 0) && (Math.abs(map.old_y - map.y) % player.height === 0))) { if (((player.vx !== 0) && (Math.abs(player.old_x - player.x) % player.width === 0)) || ((player.vy !== 0) && (Math.abs(player.old_y - player.y) % player.height === 0)) || ((map.vx !== 0) && (Math.abs(map.old_x - map.x) % player.width === 0)) || ((map.vy !== 0) && (Math.abs(map.old_y - map.y) % player.height === 0))) {
Ti.API.info("player.x=" + player.x + ",y=" + player.y);
Ti.API.info("map.x=" + map.x + ",y=" + map.y);
player.isMoving = false; player.isMoving = false;
return player.walk = 1; return player.walk = 1;
} }
Expand Down
Binary file removed Resources/graphics/unused/A.png
Binary file not shown.
Binary file removed Resources/graphics/unused/B.png
Binary file not shown.
Binary file removed Resources/graphics/unused/Splash.png
Binary file not shown.
Binary file removed Resources/graphics/unused/blocks.png
Binary file not shown.
Binary file removed Resources/graphics/unused/button_2d.png
Binary file not shown.
Binary file removed Resources/graphics/unused/button_3d.png
Binary file not shown.
Binary file removed Resources/graphics/unused/button_reset.png
Binary file not shown.
Binary file removed Resources/graphics/unused/button_zoomin.png
Binary file not shown.
Binary file removed Resources/graphics/unused/button_zoomout.png
Binary file not shown.
Binary file removed Resources/graphics/unused/control_base.png
Binary file not shown.
39 changes: 0 additions & 39 deletions Resources/graphics/unused/desert.json

This file was deleted.

Binary file removed Resources/graphics/unused/desert_tiles.png
Binary file not shown.
Binary file removed Resources/graphics/unused/dog.png
Binary file not shown.
Binary file removed Resources/graphics/unused/explosion.png
Binary file not shown.
Binary file removed Resources/graphics/unused/flare.png
Binary file not shown.
1 change: 0 additions & 1 deletion Resources/graphics/unused/forestfire.pex

This file was deleted.

1 change: 0 additions & 1 deletion Resources/graphics/unused/galaxy.pex

This file was deleted.

Binary file removed Resources/graphics/unused/galaxy.png
Binary file not shown.
Binary file removed Resources/graphics/unused/icons_pack.png
Binary file not shown.
12 changes: 0 additions & 12 deletions Resources/graphics/unused/icons_pack_OGRE.xml

This file was deleted.

1 change: 0 additions & 1 deletion Resources/graphics/unused/magic.pex

This file was deleted.

Binary file removed Resources/graphics/unused/magic.png
Binary file not shown.
Binary file removed Resources/graphics/unused/particle.png
Binary file not shown.
1 change: 0 additions & 1 deletion Resources/graphics/unused/rocket.pex

This file was deleted.

0 comments on commit 031543b

Please sign in to comment.