Skip to content

Commit

Permalink
Version 1.58
Browse files Browse the repository at this point in the history
Fxied LAyer scaling and layer scissor.
  • Loading branch information
MikeHart66 committed Feb 8, 2016
1 parent 8b564e6 commit 14ae2d5
Show file tree
Hide file tree
Showing 66 changed files with 2,007 additions and 466 deletions.
18 changes: 18 additions & 0 deletions Changes.txt
@@ -1,3 +1,21 @@
Version 1.58

*Changes*

- Added children flag to ftObject.SetActive so it affects children too
- ftLayer.SetLayerScissor now works with virtual values, no offsets anymore

*Fixes*

- Fixed/Changed ftLayer.Render regarding layer scaling.
- Fixed ftObject.Render regarding layer scaling and also object culling.

*New example*

- Layer/LayerScaling/LayerScaling.monkey
- TileMaps/Platformer_Physics/Platformer_Physics.monkey

-----------------------------------------------------------------------------------------
Version 1.57

*New functionalities*
Expand Down
13 changes: 2 additions & 11 deletions cftAStar.monkey
Expand Up @@ -142,7 +142,6 @@ Class ftGridNode
Self.block = blockFlag
End
'------------------------------------------
'changes:Changed in v1.55
'summery:Sets the position of a node inside a grid.
Method SetPos:Void(xpos:Float, ypos:Float, relative:Bool = False)
If relative = True Then
Expand Down Expand Up @@ -197,7 +196,6 @@ Class ftAStar
End
'#DOCON#
'------------------------------------------
'changes:Changed in v1.55
'summery:Add a node to a grid.
Method AddNode:ftGridNode(ID:Int, xpos:Float, ypos:Float, relative:Bool = False)
Local tmpNode := New ftGridNode
Expand Down Expand Up @@ -451,7 +449,6 @@ Class ftAStar
Return 0
End
'------------------------------------------
'changes:New in v.155
'summery:Returns the angle of the grid.
Method GetAngle:Float()
Return Self.angle
Expand Down Expand Up @@ -638,13 +635,11 @@ Class ftAStar
Return ret
End
'------------------------------------------
'changes:New in v.155
'summery:Returns the X scale factor of the grid.
Method GetScaleX:Float()
Return Self.scaleX
End
'------------------------------------------
'changes:New in v.155
'summery:Returns the Y scale factor of the grid.
Method GetScaleY:Float()
Return Self.scaleY
Expand Down Expand Up @@ -840,7 +835,6 @@ Class ftAStar
End

'------------------------------------------
'changes:Changed in v1.55
'summery:Sets the position of a grid and its nodes.
Method SetPos:Void(x:Float, y:Float, relative:Bool = False)
If relative = True Then
Expand All @@ -863,7 +857,6 @@ Class ftAStar
End

'------------------------------------------
'changes:Changed in v1.55
'summery:Sets the X position of a grid and its nodes.
Method SetPosX:Void(x:Float, relative:Bool = False)
If relative = True Then
Expand All @@ -875,15 +868,14 @@ Class ftAStar
node.x = node.xDist + Self.xPos
Next
'Scale and rotate all nodes accordning to the scale factors and the angle of the grid
If Self.GetScaleX() <> 1.0 Or Self.GetScaleY() <> 1.0 then
If Self.GetScaleX() <> 1.0 Or Self.GetScaleY() <> 1.0 Then
Self.SetScale(0.0, 0.0, True)
Elseif Self.GetAngle() <> 0.0
Self.SetAngle(0.0, True)
Endif
End

'------------------------------------------
'changes:Changed in v1.55
'summery:Sets the Y position of a grid and its nodes.
Method SetPos:Void(y:Float, relative:Bool = False)
If relative = True Then
Expand All @@ -895,15 +887,14 @@ Class ftAStar
node.y = node.yDist + Self.yPos
Next
'Scale and rotate all nodes accordning to the scale factors and the angle of the grid
If Self.GetScaleX() <> 1.0 Or Self.GetScaleY() <> 1.0 then
If Self.GetScaleX() <> 1.0 Or Self.GetScaleY() <> 1.0 Then
Self.SetScale(0.0, 0.0, True)
Elseif Self.GetAngle() <> 0.0
Self.SetAngle(0.0, True)
Endif
End

'------------------------------------------
'changes:Changed in v1.55.
'summery:Sets the scale of a grid and position its nodes regarding the angle.
Method SetScale:Void(x:Float, y:Float, relative:Bool = False)
If relative = True Then
Expand Down
5 changes: 3 additions & 2 deletions cftBox2D.monkey
Expand Up @@ -271,8 +271,9 @@ Class ftBox2D
fixtureDef.density = 0.7
fixtureDef.friction = 0.1
fixtureDef.restitution = 0.9
'bodyDef.angle = (tmpObj.GetAngle())* 0.0174533
bodyDef.angle = (tmpObj.GetAngle()+90)* 0.0174533
bodyDef.angle = (tmpObj.GetAngle())* 0.0174533
'bodyDef.angle = (tmpObj.GetAngle()+90)* 0.0174533
'Print (tmpObj.GetWidth()+":"+tmpObj.GetHeight()+":"+tmpObj.GetAngle()+":"+(bodyDef.angle/0.0174533))

bodyDef.position.Set( tmpObj.GetPosX()/m_physScale, tmpObj.GetPosY()/m_physScale)
body = m_world.CreateBody(bodyDef)
Expand Down

0 comments on commit 14ae2d5

Please sign in to comment.