Skip to content

Instantly share code, notes, and snippets.

@Draknek
Created July 28, 2011 22:49
Show Gist options
  • Save Draknek/1112755 to your computer and use it in GitHub Desktop.
Save Draknek/1112755 to your computer and use it in GitHub Desktop.
Annoyances with FlashPunk:
Mask code has nonintuitive data dependencies
-> can directly change origin/size even when mask set
-> hitbox is not a usable mask
Too many private variables: make more stuff public
/** private */ comments: unnecessary and often out of date
Entity.world gets unset immediately when removed
Emitter class inflexible
FP.world can have unexpected behaviour
Data class doesn't work well
Whether it is tied to file location is unclear
Annoying API
Can't clear it
Tilemap/Grid behaviour with negative coordinates
Sound class needs variable start point
Image scaled width behaviour?
World transitions
Text class default values should be prefixed with "default"
Entities added with addGraphic are set to inactive so tweens don't work on them
nearestToEntity can return same entity
Can't have same entity render at various z
Spritemap index/frame is wrong way round
Tilemap.usePositions and Grid.usePositions
Angles are negated (and in degrees but we'll let that one slide)
Tilemap.getIndex is confusing and not very useful
Game code should be the same in fixed framerate and variable framerate
- switch on some other variable?
Spritemap frame timing should use time per frame not frames per second
No camera scaling
Console and screen scaling is order-dependent
collide/collidePoint/etc. require entity position
Suspected bugs:
Tilemap/Grid behaviour with saving/loading and usePositions?
PreRotated cache behaviour with different frameCounts for same source image
Data class doesn't check for exceptions -- important?
Setting type before superconstructor
Tilde doesn't work for some reason
Fixes to investigate:
5ed771f blckknght single-buffer
Rolpege group
smoothstep http://sol.gfxile.net/interpolation/
resizable
rendering interpolation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment