Comments (3)
Agreed. This is a change I would have liked rolling into the last update but
was
overlooked. Will be done for next release.
You keep this up, Mike, and I'm going to have to start subversioning. ;P
Original comment by [email protected]
on 22 Jun 2009 at 7:39
- Added labels: Priority-High, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from collisiondetectionkit.
There are lots of more places in your code where strong typing is pleased. Start
subversioning :-P.
Original comment by [email protected]
on 24 Jun 2009 at 5:28
from collisiondetectionkit.
I just made some changes in findCollisions() to support strongly-typed
parameters.
I find this helpful because I can keep strict mode and all warnings.
protected function findCollisions(item1:DisplayObject, item2:DisplayObject):void
{
var item1_isText:Boolean = false, item2_isText:Boolean = false;
var item1xDiff:Number, item1yDiff:Number;
if (item1 is TextField)
{
item1_isText = ( TextField(item1).antiAliasType == "advanced") ? true : false;
TextField(item1).antiAliasType = ( TextField(item1).antiAliasType == "advanced") ? "normal" : TextField(item1).antiAliasType;
}
if(item2 is TextField)
{
item2_isText = ( TextField(item2).antiAliasType == "advanced") ? true : false;
TextField(item2).antiAliasType = ( TextField(item2).antiAliasType == "advanced") ? "normal" : TextField(item2).antiAliasType;
}
Original comment by [email protected]
on 18 Dec 2010 at 6:15
from collisiondetectionkit.
Related Issues (20)
- Need way to specify whether to include overlapping array HOT 2
- Call dispose() on BitmapData objects when done HOT 2
- Need way to define a 'Region of Interest' within which collissions are checked for HOT 2
- Ignore same object
- the projects slowdown after 10-20 seconds HOT 4
- Rotation isn't taken into account with the points returned from the collision.overlapping array HOT 2
- Predictive Collision Detection HOT 2
- Cannot detect collisions on display object if alpha is at zero HOT 1
- Wrong collisions detections, misses collisions
- Scaling the parent of objects in a collision list causes null object errors HOT 2
- Collisions not registering between dynamically created balls in Text example HOT 1
- No collisions found after scaling up a sprite's parent
- Object overlap while not showing any hit sign.
- Exclude Color (almost) not working HOT 3
- Code throws a lot of untyped warnings
- Children collisions are not detected correctly when the parent is rotated
- Mouse Down Event Not Firing When An Item Is Behind Another Item
- Need way to determine target in checkCollisions HOT 3
- Need way to specify whether to include overlapping array HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collisiondetectionkit.