Fixed Grass01-Grass05 scaling issues.

This commit is contained in:
Nick Winter 2014-07-15 18:08:00 -07:00
parent 8c9c41f477
commit 03cc2d1af0
2 changed files with 10 additions and 11 deletions

View file

@ -328,7 +328,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
@baseScaleX *= -1 if @getActionProp 'flipX'
@baseScaleY *= -1 if @getActionProp 'flipY'
# temp, until these are re-exported with perspective
floors = ['Dungeon Floor', 'Indoor Floor', 'Grass', 'Goal Trigger', 'Obstacle']
floors = ['Dungeon Floor', 'Indoor Floor', 'Grass', 'Grass01', 'Grass02', 'Grass03', 'Grass04', 'Grass05', 'Goal Trigger', 'Obstacle']
if @options.camera and @thangType.get('name') in floors
@baseScaleY *= @options.camera.y2x

View file

@ -22,8 +22,7 @@ presets = {
'grassy': {
'type':'grassy'
'borders':['Tree 1', 'Tree 2', 'Tree 3']
'floors':['Grass']
# 'floors':['Grass01', 'Grass02', 'Grass03']
'floors':['Grass01', 'Grass02', 'Grass03', 'Grass04', 'Grass05']
'decorations': {
'house': {
'num':[1,2] #min-max