Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tilemap#paste diffX and diffY equations changed #393

Merged
merged 7 commits into from
Feb 12, 2014
Merged

Tilemap#paste diffX and diffY equations changed #393

merged 7 commits into from
Feb 12, 2014

Conversation

BrettJephson
Copy link

This should correct an issue with copying and pasting sections of tilemaps to different x/y coordinates. Relates to this forum post: http://www.html5gamedevs.com/topic/3367-tilemap-copy-paste-issues/

I've added a QUnit test for this change. As it is dealing with data manipulation I found it useful.

The tests highlighted another possible issue with tilemap copy and paste. Changing data in copied data will actually change the tilemap it is copied from. This is because the copy creates an array with the same tile references as the actual tilemap. Not sure of the best solution there as memory could be an issue.

I'd be interested in contributing further to Phaser and I was wondering if adding some more unit tests might be useful, what are your thoughts?

photonstorm added a commit that referenced this pull request Feb 12, 2014
Tilemap#paste diffX and diffY equations changed
@photonstorm photonstorm merged commit 59ea674 into phaserjs:dev Feb 12, 2014
photonstorm added a commit that referenced this pull request Feb 12, 2014
…er window (thanks georgiee)

Added TimerEvent.pendingDelete and checks in Timer.update, so that removing an event in a callback no longer throws an exception (thanks georgiee)
Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy)
Added SAT.js to TypeScript definition. Now compiles properly.
Added missing Line.js to the Grunt file.
Tilemap#paste diffX and diffY equations changed, fixed issue #393 (thanks brejep)
Added missing return value in Body.hitLeft and hitRight, fixes issue #398 (thanks ram64).
Fixed easing tween example case. Issue #379 (thanks wesleywerner)
Removed SAT.js UMD wrapped, fixes issue #361 (thanks luizbills)
photonstorm added a commit that referenced this pull request Feb 12, 2014
…er window (thanks georgiee)

Added TimerEvent.pendingDelete and checks in Timer.update, so that removing an event in a callback no longer throws an exception (thanks georgiee)
Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy)
Added SAT.js to TypeScript definition. Now compiles properly.
Added missing Line.js to the Grunt file.
Tilemap#paste diffX and diffY equations changed, fixed issue #393 (thanks brejep)
Added missing return value in Body.hitLeft and hitRight, fixes issue #398 (thanks ram64).
Fixed easing tween example case. Issue #379 (thanks wesleywerner)
Removed SAT.js UMD wrapped, fixes issue #361 (thanks luizbills)
Removed inContact check from Body.separate.
Fixed Tilemap docs (wrongly pointed to Tileset methods)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants