Code Monkey home page Code Monkey logo

savethedot's Introduction

Save the Dot

Apple introduced UIViewPropertyAnimator for iOS 10. We can use this new API to control interactive animations. To experiment UIViewPropertyAnimator, we developed this game by using UIKit only ๐Ÿ˜‰ (no Sprite Kit at all ๐Ÿ˜ฌ). And you can see the animations are very smooth, looking forward to see more interactive animations in iOS 10.

SaveTheDot

BuddyBuild Language Platforms License

How to build

  • Clone the repository
$ git clone https://github.com/JakeLin/SaveTheDot.git
  • Open the project in Xcode 8
$ cd SaveTheDot
$ open "SaveTheDot.xcodeproj"

Requirements

  • Xcode 8.0 (8A218a)
  • iOS 10
  • Swift 3

License

Save the Dot is released under the MIT license. See LICENSE for details.

savethedot's People

Contributors

deepakrawatnegd avatar dkalaitzidis avatar jakelin avatar spacedrabbit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

savethedot's Issues

Hamsterkey _bot

There is a bot or code in Telegram where we can get the key without playing the game

The game will be slow

Hi,
Thank you for your code and I really like it. I have one issue, when the game reached more than 3 minutes, it will be very slow and the user can not move the dot.
Thanks

Advice on adding accelerometer for controls

Do you have any advice to make tilting the device move the player or would use of the accelerometer as control not be feasible? I want to make a PR that implements this functionality. Another feature I would like to add is being able to use swipe gestures to hit the ball like a game of billiards.

SwiftUI Version

I wonder how to make a swiftUI version of this beautiful game. Can you please shed some lights. Thanks

Fatal error: Index out of range: file Swift/ContiguousArrayBuffer.swift

I have modified the code, by adding an action to perform a segue to the "Main Menu" apart from "Try again" button after the game is over. But, when the player exits the game View controller and clicks on some other view controller, the app crashes. It gives the following error:-

Fatal error: Index out of range: file Swift/ContiguousArrayBuffer.swift

This is the only change that I have done:-

func displayGameOverAlert() {
      let (title, message) = getGameOverTitleAndMessage()
      let alert = UIAlertController(title: "Game Over", message: message, preferredStyle: .alert)
      let action = UIAlertAction(title: title, style: .default,
                             handler: { _ in
                              self.prepareGame()
           }
      )
      let action_2 = UIAlertAction(title: "Main Menu", style: .default, handler: { _ in
                                    self.performSegue(withIdentifier: "2to1segue", sender: self)})
      alert.addAction(action)
      alert.addAction(action_2)
      self.present(alert, animated: true, completion: nil)
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.