There are several reasons why contact and collision are not detected in your Swift project. Below is a checklist I've made when setting up collision on Swift:
1. On Swift 3.0, function didBeginContact is changed to:
optional func didBegin(_ contact: SKPhysicsContact) { ... }
2. Have you implemented the SKPhysicsContactDelegate protocol?
class yourClass: SKScene, SKPhysicsContactDelegate { ... }
2. Have you implemented the Contact Delegate?
self.physicsWorld.contactDelegate = self
3. Have you defined the necessary Category Bit Masks?
let firstCategory: UInt32 = 0x1 << 0
let secondCategory: UInt32 = 0x1 << 1
4. Have you assigned the correct Category Masks to your Sprite Nodes?
firstNode.physicsBody?.categoryBitMask = firstCategory
5. Have you configured the correct Contact and Collision Masks to your Sprite Nodes?
firstNode.physicsBody?.contactTestBitMask = secondCategory
firstNode.physicsBody?.collisionBitMask = secondCategory
6. Remember that one of the colliding Sprite Nodes must be dynamic
yourNode.physicsBody?.isDynamic = true
Smaller iPhone Games
A list of small apps and games for iPhone, iPad, and iPod
Sunday, September 25, 2016
Tuesday, May 10, 2016
Friday, October 31, 2014
Sky Panda IOS game for iPhone 5, iPhone 6, and iPhone 6 Plus
This Panda wants to learn to fly!
Fully compatible with iPhone 5, iPhone 6, iPhone 6+, iPad Air.
Download Sky Panda for free from iTunes Store now!
Sunday, October 26, 2014
8 Hours of Boring Sounds for your insomnia problem
Listen to 8 hours of boring sounds designed specifically to treat insomnia and other sleeping disorders.
Enjoy a deep sleep tonight with an endless stream of nature's finest sounds.
Thursday, October 2, 2014
iPhone 5, iPhone 6 and 6+ Resolution Table
Devices | iPhone 5, 5C, 5S iPod Touch 5g | iPhone 6 | iPhone 6+ |
Resolution | 1136 x 640 | 1334 x 750 | 2208 x 1242 (1080 x 1920) |
PPI | 326 ppi | 326 ppi | 401 ppi |
Logical resolution (points) | 320 x 568 | 375 x 667 | 414 x 736 |
Screen size(diagonal) | 4" | 4.7" | 5.5" |
Default file suffix | file-568h@2x.png | ? | ? |
Cocos2D file suffix | file-iphone5hd.png | ? | ? |
Aspect ratio | 16:9 | 16:9 | |
Icon size | 120 x 120(114 x 114) | 120x120 | 180 x 180 |
Max texture size | 2048 x 2048 | ? | ? |
Thursday, May 22, 2014
HACKERS™ Codemaster | Cool Action-Puzzle Game for iPhone and iPod Touch
Hack as many passwords as you can!
HACKERS™ Codemaster is an action-puzzle game that will challenge your memory skills and test it to the limit!
Use the built-in code scanner to break the code sequences and decipher passwords!
Features:
- 999+ Random puzzles
- Cool Sci-Fi themed graphics, sounds and animations
- 5 Different hacking skills available:
Script Kiddies (Score: 0 - 10)
Hacktivist (Score: 11 - 20)
The Criminal (Score: 21 - 30)
Black Hat (Score: 31 - 50)
Enemy Of The State (Hack 61 passwords or more to get this rank)
Retro Basketball game for iPhone and iPod Touch Available on iTunes
Test your basketball skills with this fun mini game and see how many points you can get in 30 seconds!
Features:
* Cool retro graphics
* Original sound plays
* Recommended for fans of arcades
Features:
* Cool retro graphics
* Original sound plays
* Recommended for fans of arcades
April Fool's Clock for iPhone and iPod Touch, Easy prank to play on your friends!
This Clock Ticks Backwards!!
Surprise everyone this April with April Fool's Clock, a cute clock that offers much fun to anyone!
Show it to your friends and families and the clock will make a big smile on their face guaranteed!!
Features:
* Reverse Analog clock
* Cute vintage graphics
* Very Funny!
Surprise everyone this April with April Fool's Clock, a cute clock that offers much fun to anyone!
Show it to your friends and families and the clock will make a big smile on their face guaranteed!!
Features:
* Reverse Analog clock
* Cute vintage graphics
* Very Funny!
Mechanical Alarm Clock for iPhone and iPod Touch
Turn your iPhone or iPod Touch into a beautiful mechanical clock alarm!
With visible clock engine, you can see how the clock is working inside!
Features:
* Built-in Alarm with 9 cool alarm sounds to select
* Adjustable brightness setting
* Volume & vibration control
* Beautiful animated graphics that will make you relax
With visible clock engine, you can see how the clock is working inside!
Features:
* Built-in Alarm with 9 cool alarm sounds to select
* Adjustable brightness setting
* Volume & vibration control
* Beautiful animated graphics that will make you relax
Beautiful Vintage Clock for iPhone & iPod Touch
Turn your iPhone or iPod Touch into a beautiful vintage alarm clock!
With visible clock engine, you can see how the clock is working inside!
Features:
* Built-in Alarm with 9 cool alarm sounds to select
* Adjustable Brightness setting
* Volume & Vibration control
* Beautiful animated graphics optimized for iPhone 4/4S/5/5C/5S and iPod 5
With visible clock engine, you can see how the clock is working inside!
Features:
* Built-in Alarm with 9 cool alarm sounds to select
* Adjustable Brightness setting
* Volume & Vibration control
* Beautiful animated graphics optimized for iPhone 4/4S/5/5C/5S and iPod 5
Haunted Clock on iTunes
Watch out! This is no ordinary antique clock. Every few minutes or so spirits and ghosts will begin to appear near or inside the clock! Hands on the wall, children laughing, and eerie apparitions are some of the strange happenings that you will encounter as the new owner of this clock. If you have decided to own this clock, make sure you look after it…
Features:
* Pre-1930 Antique Animated Wall Clock with pendulum
* High quality software graphics with 16 bit stereo sound effects
* Optimized for iPhone and iPod Touch running IOS 7
Features:
* Pre-1930 Antique Animated Wall Clock with pendulum
* High quality software graphics with 16 bit stereo sound effects
* Optimized for iPhone and iPod Touch running IOS 7
Inventor's Clock on iTunes
With Animated Clock Engine, the Inventor’s Clock Alarm turns your iPhone or iPod touch into a beautiful analog clock with alarm!
Subscribe to:
Posts (Atom)