How to Create 1-2-3 game with Apple WatchKit
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
141 students enrolled
Wishlisted Wishlist

Please confirm that you want to add How to Create 1-2-3 game with Apple WatchKit to your Wishlist.

Add to Wishlist

How to Create 1-2-3 game with Apple WatchKit

A completed guide to help you to create a 1-2-3 game for Apple Watch Kit by Swift.
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
141 students enrolled
Created by Hieu Duc Pham
Last updated 2/2015
English
Price: $20
30-Day Money-Back Guarantee
Includes:
  • 2.5 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have a coupon?
What Will I Learn?
Create a 1-2-3 game on apple watch, you can upload to AppleStore for sale if you want
View Curriculum
Requirements
  • You will using Xcode beta for coding
  • Basic knowledge about coding
  • Your time!
Description

Welcome to this class, I’m Hieu Pham, I started to work this IOS about 5 year ago.I start to work with Swift about 6 months ago and I very like this language and specially I’m very interested in apple Watch App. So I make this course to help you make applications for Apple Watch with Swift Language, whether you are a beginner or advanced developer, this course is for you!

The course covers the apple watch kit, help you to create a 1-2-3 game on Apple Watch using swift.

This course is suitable for any one who want to make an apple watch app. I’m similar like you and I only start to work with Apple Watch before you only few months so I will know how it is and I can give you my advises also my experiments to work with Apple Watch. I come from zero to learn how to make an app for IOS and apple watch and I know how to guide the student like you to make your apps with your idea. So don’t worry. I will let you step by step from the beginning to the end of this course and will help you to fix your bugs and give you some advice to improve it. You will learn to prepare for you code environment and start your developer Carrier by making some easy app and I will guide you step by step to better apps.

At the end of this course , You can make this game (Absolutely YES!) and you can update some function and upload it to Apple Store if you want. The target of this course is help you to make your own app or you can make apps for everyone!!

It’s very interesting isn’t it? So let start with me and don’t for get to take a look some video preview of my course. If you get this course you will get 50% off for my next courses.

—————————————————

The course consists of:

+ Hour video lectures with code from scratch

Application files and source code ready for download.

Who is the target audience?
  • This course is for everyone who want to make an app with Apple WatchKit with very basic of knowledge coding. All require for this course is you. I can lead you from the zero to the goal that you can make your own AppleWatch application.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 18 Lectures Collapse All 18 Lectures 02:25:31
+
Intro watchkit And Prepare for Coding
4 Lectures 26:23

welcome to my course. I'm Hieu Pham, I'm a developer of IOS and this is my Second Course on UDEMY. This course is help you to make your own application for apaple watch. As you know Apple has announce about Apple Watch from last year and they said that apple watch will be sale early in 2015. At november of 2014 , apple released the Xcode beta with watch kit for developer all around the world to make their application and prepare for release of apple Watch.

First of all if you don't know what apple watch is and how is is? i think this is the web site you should take a look
http://www.demoapplewatch.com

as you can see from the address. you can take a look what apple watch look like and how it operate.

The apple watch has three type and and to size of screen like 42mm and 38mm. But all of that has operate same.
In this course we will learn how to make an application for apple watch and were going to use the swift language for coding. You can use Object C if you like by my advice is swift. Why? because swift is new language, encourage by Apple and easy to learn from my experiment. Right now apple still accept your code written by object C to apple Store but may be in the future, only Swift is accepted. So i think you should start by swift. Don't worry, i will go to step by step with you and lead you to the destination, help you as much as i can.

So let's start!!

Preview 03:46

Welcome back, In this lecture, i will guide you to preparing for your coding and some tips for your code carrier.

First of all we have to use Xcode Beta to developer the apple watch application. At this time, only Xcode beta include the watch kit for you to code. IF you using Xcode, you only make an app for IOS or MACOS not for Watch App. So you have to download the Xcode Beta. Right now Xcode version is 6.2 beta 3

first go to the address:

developer.apple.com/watchkit/

in here you can see overview about watchKit and resource for your developing

Create WatchKit apps.

WatchKit apps have two parts: A WatchKit extension that runs on iPhone and a set of user interface resources that are installed on Apple Watch. When your app is launched on Apple Watch, the WatchKit extension on iPhone runs in the background to update the user interface and respond to user interactions. WatchKit provides three opportunities to extend your iPhone app to Apple Watch: WatchKit apps, Glances, and actionable notifications.

you should View the Getting Started

with WatchKit video in here. it's very useful for you.

and scroll down to the last end and you can download the xcode beta in here.

Apple require you have a developer account to download xcode beta but you can log in by your apple id and agree with term of Apple and download it!

Preview 03:40

Create your first Apple Watch Application - Hello world. You will learn to create your first application with apple watch kit on simulator. Learn to Work with label and group.

Preview 13:22

- Make a challenge

- Share some tips to help your coding

- if you have any question, please upload your code.

Challenge
05:35

You have a change to test your self for what you learn in this Section

Test Your self!!
3 questions
+
Introduce the 1+2=3 game
2 Lectures 04:54

Intro the 1+2 = 3 game, help you to download this game to your IOS.

you can use the apple id: taoviet1102@aol.com

passs: Taoviet1102

to download this game.

Intro and download 1+2=3
01:48

Let's play 123 game to see how it'w worked.

This is very interested game for you or for any one with very simple math function. Let's play and check how is your score?

play 1+2 = 3 game
03:06
+
Make an Idea and create design of Game
5 Lectures 48:55

Before you make any app. First of all you will come from your idea. after that you should draw out your idea, draw out how your app look like. how many interface and how many button, how many label…After that we will have a over view about our app and we can make an app very clearly. you can imagine that when we make a app like we are building a house. before we build a house we have to make a design for our house.

Make an Idea and create our design for our game.
02:29

let's create the 1-2-3 game with apple watchkit extension!

Create 1-2-3 game with Apple WatchKit
09:09

- Create an app with watchkit extension and make a design for our interfaces like our design.

- Learn to work with group and label, button

Create 1-2-3 game with Interface Design
11:50

Hook all the elements of First Interface to our code and try to check all the function of the elements.

Hook the Elements to First Interface
11:43

Hook the other elements of the game InterFace to our code

Hook the other Elements to our code
13:44

Test your self!!
4 questions
+
Make a Function for game
5 Lectures 51:58

- Make a setUpFunctionWithNumbers for our game when start a new game, start a new question.

Create a setUpFunctionWithNumbers
05:58

we will make a setupFunctionLabel, each question include the number and the sign "+" or "-", we will make a function that create a random function with random number and random sign.

1 + 1 = 2 ==> [1, + , 1]

1 + 2 - 1 = 2 ==> [1, +, 2, -, 1]

2 - 2 + 3 - 1 = 2 ==> [2, -, 2, +, 3, -, 1]

So with two number here we will have two number with a sign , three number we will have three sign , 4 number we will have three sign.

i think we will make all the numbers and sign in to one array, and the odd index is for sign (- or +) and even index for number

you can see we will have an array like [1, + , 1] or [1, +, 2, -, 1] or [2, -, 2, +, 3, -, 1]

so you can see when we have two numbers, we will have an array with 3 elements

[1, + , 1]

if we have three number, we will have 5 elements:

[1, +, 2, -, 1]

if we have fours number, we will have 7 elements:

[2, -, 2, +, 3, -, 1]

so we will make a function like this

createFunctionLabel(numberContents: Int)

Create a setupFunctionLabel
13:54

Now we have an array with our contents inside, so we will make a function for that.

we will make a function to setup our label depend on our contentsArray

First we have to create a function depend on our contentsArraym next we have to check the function result because we only accept the result from 1 to 3 .

we will make a first job .

Check the function and setup our functionLabel P1
08:25

OK, now we have a function and we all ready set it up on our inter face. But we have to check result of that function because we only accept the result from 1 to 3

Check the function and setup our functionLabel P2
09:00

It's time to create our checkResult function when user klick on the answer button, we will check the result with the number that user klick depend on that we will increase the score of finish game.

Create a CheckAnswer Function
14:41
+
Bonus: Update our Game
2 Lectures 13:21

after we have the user score and we stop our game. Let create the user Score label on first interface when user finish the game.

Update the User Score on first InterFace
10:01

- This is challenge for you to make a setting interface with setting function. You can user a global value or user NSUserdefault to save the setting .

- Create more label to show up the result label of the user's choice

- make a animated image.

Challenge
03:20
About the Instructor
Hieu Duc Pham
3.9 Average rating
4 Reviews
624 Students
3 Courses
IOS Developer

I’m Hieu Pham, I started to know about IOS and work this IOS about 5 year ago.

I start to work with Swift about 6 month ago and I very like this language and specially I’m very interested in apple Watch App. I'm working at Taoviet-Apple-Services about nearly 5 year. I have a lot of applications on Apple store

I already join a lot of online courses from the beginning of my developer carrier, some courses are good, some courses are not good as I thought. So I know how to help the student work effective with their learning. After experimenting with various courses, learning styles, and teaching processes, I've adopted the best strategies and used them in my courses. Since the announcement of the new Swift programming language by Apple, I have work with Swift since that also for Apple watch too. You can check my application on Apple Store by search the taoviet.vn and Hieu Pham.