swift implementation of flappy bird. More at fullstackedu.com

Overview

BuddyBuild

FlappySwift

An implementation of Flappy Bird in Swift for iOS 8.

FlappySwift

Notes

We're launching a course Game Programming with Swift

If you are interested in early access to the course, head to fullstackedu.com and enter in your email in the signup box at the bottom of the page to be notified of updates on the course itself.

Authors

Comments
  • Bug on Device

    Bug on Device

    Run on my iphone5 (iOS 7.1.1). Broke when the screen was still dark. Guess is the problem for SpriteKit since even initial game app written in Swift with SpriteKit can't work on device, while change to OC it works fine.

    flappybirdbug

    opened by hehe-wz 16
  • Xcode 6 crashed when open .sks file

    Xcode 6 crashed when open .sks file

    Everytime when I open .sks file Xcode crashes or even worse system becames freezed (OS X 10.9)..

    This is very annoying cause it prevents me from experimenting with Swift and SpriteKit, anybody experienced this issue too?

    opened by voronianski 12
  • error in GameScene.swift

    error in GameScene.swift

    /FlappySwift-master/FlappyBird/GameScene.swift:206:19: Overriding method with selector 'touchesBegan:withEvent:' has incompatible type '(NSSet, UIEvent) -> ()'

    opened by lhlpasser 7
  • [Critical] 22 build issues in Xcode 6.0.1

    [Critical] 22 build issues in Xcode 6.0.1

    When I try to run FlappySwift in Xcode 6 (official release), I get 22 errors of the same type: Swift Compiler Error: <something> does not have a member named <something else>

    All errors are in the GameScene.swift file. This is a critical error which stops the program from functioning at all.

    opened by vedantchandra 6
  • dataWithContentsOfFile error

    dataWithContentsOfFile error

    /Users/macmini/Documents/FlappySwift-master/FlappyBird/GameViewController.swift:17:32: 'dataWithContentsOfFile(_:options:error:)' is unavailable: use object construction 'NSData(contentsOfFile:options:error:)'

    opened by cto123445 5
  • In the new version toRaw() is replaced by rawValue

    In the new version toRaw() is replaced by rawValue

    override func supportedInterfaceOrientations() -> Int { if UIDevice.currentDevice().userInterfaceIdiom == .Phone { return Int(UIInterfaceOrientationMask.AllButUpsideDown.rawValue) } else { return Int(UIInterfaceOrientationMask.All.rawValue) } }

    opened by JetQin 4
  • GameViewController.swift and 3 errors

    GameViewController.swift and 3 errors

    I have download the project, then use xcode 6.3.1 to open FlappyBird.xcodeproj

    however, i have got the follow three errors, andy idea how to fix these issues?

    FlappySwift-master/FlappyBird/GameScene.swift:206:19: Overriding method with selector 'touchesBegan:withEvent:' has incompatible type '(NSSet, UIEvent) -> ()'

    FlappySwift-master/FlappyBird/GameViewController.swift:15:58: 'NSString' is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?

    FlappySwift-master/FlappyBird/GameViewController.swift:34:36: 'UIView!' is not convertible to 'SKView'; did you mean to use 'as!' to force downcast?

    thanks email: [email protected]

    opened by stoneyzhang 3
  • Is this OK if I make some changes in the game & publish it to the AppStore?

    Is this OK if I make some changes in the game & publish it to the AppStore?

    Hi. I don't know much about the Copyright thing, so please help me out here! Is this OK if I make some changes in the game & publish it to the AppStore (for free)? What should I do about Copyright?

    opened by HappyIosDeveloper 2
  • Fix compilation errors in Swift 1.2 (Xcode 6.3 beta).

    Fix compilation errors in Swift 1.2 (Xcode 6.3 beta).

    1. AppDelegate: The type of the launchOptions parameter of the didFinishLaunchingWithOptions function was changed in Swift 1.2.
    2. "launchOptions: NSDictionary?"
    3. has become: "launchOptions: [NSObject: AnyObject]?"
    4. GameScene: Swift 1.2 has introduced a native Set type that bridges with NSSet.
    5. override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
    6. has become: override func touchesBegan(touches: Set, withEvent event: UIEvent) {
    7. GameViewController: Forced conversions in Swift 1.2 are represented with as!. This makes it clear that the conversion may fail if you attempt to downcast to a type that doesn’t represent the value’s type.
    8. let scene = archiver.decodeObjectForKey(NSKeyedArchiveRootObjectKey) as GameScene
    9. has become: let scene = archiver.decodeObjectForKey(NSKeyedArchiveRootObjectKey) as! GameScene
    10. let skView = self.view as SKView
    11. has become: let skView = self.view as! SKView

    NSString objects need to be converted to a Swift String value by casting.

    • let path = NSBundle.mainBundle().pathForResource(file, ofType: "sks")
    • has become: let path = NSBundle.mainBundle().pathForResource((file as String), ofType: "sks")
    opened by remixnine 2
  • Bird can fly off the screen

    Bird can fly off the screen

    If you keep touching the screen, the bird is able to fly off the screen and avoid all obstacles. This can be easily fixed by adding

    if bird.position.y > self.frame.size.height { bird.position.y = self.frame.size.height }

    inside override func update(currentTime: CFTimeInterval)

    opened by albertor24 2
  • Navigation controller updates

    Navigation controller updates

    • Add a navigation controller with menu
    • Basic skeleton to offer leaderboard, signout and game play options
    • Add README for AWS cloud setup
    • Update license
    opened by rohandubal 1
  • Modify The Impulse of the bird

    Modify The Impulse of the bird

    First of al thank you for this open source project I learned a lot form it😄.

    I played the game as a user and found out that it's pretty hard to get a normal score, actually I can't pass The first block and this annoyed me(as a player)!

    I looked at the code and modify this line in GameScene -> line number 211 bird.physicsBody?.applyImpulse(CGVector(dx: 0, dy: 30))

    into bird.physicsBody?.applyImpulse(CGVector(dx: 0, dy: 22))

    I tried different values and 22 was the most suitable one.

    This GIF below is the original game

    ezgif com-optimize

    And this is modified version

    ezgif com-optimize-2

    Note that here the player touch screen more times and this makes him get into game and pay more attention to the bird's movement.

    opened by hadyhelal 0
Owner
newline (formerly Fullstack.io)
newline (formerly Fullstack.io)
Swift Library based on AVFoundation that allow to easily add camera feature with custom UI into your project.

Would you like to create your camera same as Snapchat or Instagram? I think this library could help you. Basicly it is a wrapper above AVFoundation th

Taras Chernyshenko 14 Sep 21, 2022
Fully open source text editor for iOS written in Swift.

Edhita Fully open source text editor for iOS written in Swift. http://edhita.bornneet.com/ What Edhita means? Edhita (Romaji) == エディタ (Katakana) == Ed

Tatsuya Tobioka 1.2k Jan 7, 2023
30 mini Swift Apps for self-study

Swift 30 Projects Contents This repo is updated with Swift 5 and compatible with iPhone X: Simple UIKit components UIScrollView, UITableView, UICollec

Soap 7.5k Jan 3, 2023
A Hacker News reader in Swift

SwiftHN A Hacker News reader in Swift using the best features of both the language and iOS 8 latest API (well, that's the end goal) SwiftHN is now ava

Thomas Ricouard 1.7k Dec 24, 2022
Build a Swift App as a designer

DesignerNewsApp Simple iOS client for Designer News, by the creator of Design+Code and the team, written in Swift. Usage Download the repository $ git

Meng To 2.4k Dec 24, 2022
Basic app to show how to login with Facebook, Google, Twitter. Created for learning purpose :) using Xcode 9 and Swift 4.0

Social Logins iOS Basic app to show how to login with Facebook, Google, Twitter. Created for learning purpose :) using Xcode 9 and Swift 4.0 Note: Bef

Jogendra 12 Nov 4, 2022
Applozic UI Kit in Swift

Official iOS Swift SDK for Chat ?? Introduction ?? Applozic brings real-time engagement with chat, video, and voice to your web, mobile, and conversat

Applozic 50 Mar 21, 2022
Simple sample of using the VIP (Clean Swift) architecture for iOS

MyAnimeList Simple sample of using the VIP (Clean Swift) architecture for iOS. ViewController: controls the event handling, view life cycle and displa

null 24 Oct 12, 2022
Swift audio synthesis, processing, & analysis platform for iOS, macOS and tvOS

AudioKit AudioKit is an audio synthesis, processing, and analysis platform for iOS, macOS (including Catalyst), and tvOS. Installation To add AudioKit

AudioKit 9.5k Jan 5, 2023
A Swift mailing list client for iPhone and iPad

Due to costs and lack of interest, I’ve had to take down the Charter service. If you’re interested in running your own copy, get in touch and I can se

Matthew Palmer 526 Dec 24, 2022
2048 for Swift

swift-2048 A working port of iOS-2048 to Apple's new Swift language. Like the original Objective-C version, swift-2048 does not rely upon SpriteKit. S

Austin Zheng 3.1k Dec 24, 2022
Learn Swift interactively on your iPhone.

Unwrap is an app that helps you learn Swift faster and more effectively. At its core lies almost 100 video lessons that teach all the fundamentals of

Paul Hudson 2.1k Dec 29, 2022
▶️ video player in Swift, simple way to play and stream media on iOS/tvOS

Player Player is a simple iOS video player library written in Swift. Looking for an obj-c video player? Check out PBJVideoPlayer (obj-c). Looking for

patrick piemonte 2k Dec 24, 2022
SushiMarketingApp - Sushi Marketing App Built With Swift

SushiMarketingApp Sushi E-Commerce App Language: Swift and Objective-C Database:

Serkan Kara 3 Apr 16, 2022
TwitchIRC - A Swift package for parsing/serializing Twitch IRC messages

TwitchIRC A Swift package to take of parsing/serializing Twitch IRC messages for

Mahdi Bahrami 8 Jan 3, 2023
swift implementation of flappy bird. More at fullstackedu.com

FlappySwift An implementation of Flappy Bird in Swift for iOS 8. Notes We're launching a course Game Programming with Swift If you are interested in e

newline (formerly Fullstack.io) 9.5k Dec 29, 2022
🐦 Flappy Bird reincarnation [Swift 5.3, GameplayKit, SpriteKit, iOS 12].

?? Flappy Bird reincarnation [Swift 5.3, GameplayKit, SpriteKit, iOS 12].

Astemir Eleev 290 Dec 27, 2022
Flappy Bird in Swift

FlappySwift An implementation of Flappy Bird in Swift for iOS 8. Notes We're launching a course Game Programming with Swift If you are interested in e

null 0 Oct 30, 2021
A 99-player last-bird-flapping battle royale

Flappy Royale A HTML5 Game, built to be embedded in apps using Phaser 3. Setup Clone, and run yarn install, run yarn start to load up into the app: cd

Flappy Royale 149 Dec 17, 2022
MathEagle is named after the golden eagle, since this is the fastest bird in the world

Swift-MathEagle MathEagle is named after the golden eagle, since this is the fastest bird in the world (in horizontal flight). This project is meant t

Rugen Heidbuchel 40 Jul 9, 2022