mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	Make game.size take zoom into consideration (#836)
* Make game.size take zoom into consideration * Fix formatting * Fix formatting * Apply suggestions from code review Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net> * Move _sizeBuffer * Apply suggestions from code review Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net> * Update list from wolfenrains suggestion * Fix formatting * Update CHANGELOG.md Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
This commit is contained in:
		| @ -228,9 +228,7 @@ class MultipleShapes extends BaseGame | ||||
|       lastToAdd = createRandomCollidable(lastToAdd, screenCollidable); | ||||
|       final lastBottomRight = | ||||
|           lastToAdd.toAbsoluteRect().bottomRight.toVector2(); | ||||
|       final screenSize = size / camera.zoom; | ||||
|       if (lastBottomRight.x < screenSize.x && | ||||
|           lastBottomRight.y < screenSize.y) { | ||||
|       if (lastBottomRight.x < size.x && lastBottomRight.y < size.y) { | ||||
|         add(lastToAdd); | ||||
|         totalAdded++; | ||||
|       } else { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo