Git Product home page Git Product logo

project14's Introduction

Project14

Project Description

This Project is my extension to Project14 from 100 Days of Swift by Paul Hudson: github.com/twostraws/HackingWithSwift/tree/main/Classic/project14.

During this Game you have to hit proper pinguins to score the highest result. If you lose 3 lives or the 50 rounds elipse the game will be over. Good luck :)

I added several important features like:

  • 3 different levels,
  • high score for each level(I used UserDefaults)
  • high score list,
  • new game button,
  • new record label with info about your success,
  • save your name if you break the record with 15 char limitation (I used UserDefaults),
  • 3 lives with graphic implementation - so game will be terminated if you lose your 3 lives or the number of rounds (50) will end,
  • simple app icon :)

What We can learn from this code

  • Mostly how to use SpriteKit :)
  • How to create buttons in SKLabelNode
  • We can understand how func touchesBegan works
  • UserDefaults
  • DispatchQueue.main.async
  • How to play sound by SKAction.playSoundFileNamed
  • Switch Case
  • how to add TextField to allertController
  • and how to use delegate (textField.delegate) to change textField property (max 15 char)

UI example

Game

To Do List

  • I want to reorganized info about New Record - right now user don't know if he see button or label.
  • I want do add reset highscore Button (with biometric authentification).

project14's People

Contributors

kamilpawlak83 avatar

Stargazers

 avatar

Watchers

 avatar

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.