Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gamesalad Essentials

You're reading from   Gamesalad Essentials Create awesome cross-platform games in no time, and with no coding

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781784391973
Length 154 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Miguel DeQuadros Miguel DeQuadros
Author Profile Icon Miguel DeQuadros
Miguel DeQuadros
Arrow right icon
View More author details
Toc

How GameSalad makes it all easy

GameSalad simplifies the development of your game. No need to learn a crazy confusing language! All the programming you do here is done by drag-and-drop behavior-based modules into the actors or objects in the game. Everything is drag-and-drop. No need to program tiles to build your levels!

For example, here is a very simple collision detection system using the iOS Sprite Kit development:

- (void)checkForAndResolveCollisionsForPlayer:(Player *)player forLayer:(TMXLayer *)layer
{
      NSInteger indices[8] = {7, 1, 3, 5, 0, 2, 6, 8};
      player.onGround = NO;  ////Here
      for (NSUInteger i = 0; i < 8; i++) {
        NSInteger tileIndex = indices[i];
     
        CGRect playerRect = [player collisionBoundingBox];
        CGPoint playerCoord = [layer
        coordForPoint:player.desiredPosition];
     
        NSInteger tileColumn = tileIndex % 3;
        NSInteger tileRow = tileIndex / 3;
        CGPoint tileCoord = CGPointMake(playerCoord...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image