IMD 1_Mobile Game App (1)

Now our new project begins! Mobile Game app.

스크린샷 2016-05-03 오전 10.26.49.png

Create a new project. Make sure to check ‘SpriteKit’ in Game Technology.

스크린샷 2016-05-03 오전 10.29.58.png

If you click play button, you will see this. This is basic game. The rotating jet plane keep appears. We are going to make a game our own, so delete ‘gamescene.sks’.

스크린샷 2016-05-03 오전 10.31.13.png

Then go to Assets.xcassets and there’s a Spaceship icon. Delete it also.

스크린샷 2016-05-03 오전 10.37.22.png

And I downloaded game assets in our IMD homepage.

The link is here.

Syllabus

After you finish downloading, bring the hero icon to the assets.xcassets folder.

스크린샷 2016-05-03 오전 10.39.29.png

And let’s call him ‘jeff’.

스크린샷 2016-05-11 오후 6.37.10.png

And go to the GameScene.swift. There’s some code we don’t need.

스크린샷 2016-05-03 오전 10.44.07.png

I deleted unnecessary codes.

스크린샷 2016-05-03 오전 10.51.16.png

And go to the GameViewController.swift.

This is our code.

스크린샷 2016-05-03 오전 11.01.28.png

스크린샷 2016-05-03 오전 11.02.39.png

This code will make your gamescreen bigger.

스크린샷 2016-05-03 오전 11.10.03.png

Go to the Deployment Info. And make sure to uncheck ‘Portrait’.

And I created a new file named ‘Hero.swift’.

스크린샷 2016-05-03 오전 11.29.45.png

스크린샷 2016-05-03 오전 11.30.10.png

And this is our entire code in GameViewController.swift.

스크린샷 2016-05-03 오전 11.44.42.png

If you click play button, you can see hero in it!!

스크린샷 2016-05-03 오후 12.02.13.png

We are going to write some code to make jeff movable.

스크린샷 2016-05-03 오후 12.02.25.png

We can make it Ease In or Out.

스크린샷 2016-05-03 오후 12.21.47.png

This is entire code.

스크린샷 2016-05-11 오후 6.52.07.png

Now our jeff can move upside down!

스크린샷 2016-05-03 오후 12.23.09.png

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s