Scene Creation

6 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€67.17
List Price:  €95.97
You save:  €28.79
£55.84
List Price:  £79.78
You save:  £23.93
CA$100.80
List Price:  CA$144.01
You save:  CA$43.20
A$112.68
List Price:  A$160.98
You save:  A$48.30
S$95.16
List Price:  S$135.95
You save:  S$40.79
HK$543.23
List Price:  HK$776.08
You save:  HK$232.84
CHF 63.03
List Price:  CHF 90.05
You save:  CHF 27.01
NOK kr794.99
List Price:  NOK kr1,135.75
You save:  NOK kr340.76
DKK kr501.02
List Price:  DKK kr715.78
You save:  DKK kr214.75
NZ$124.35
List Price:  NZ$177.65
You save:  NZ$53.30
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,350.53
List Price:  ৳11,929.84
You save:  ৳3,579.31
₹5,987.45
List Price:  ₹8,553.87
You save:  ₹2,566.42
RM312.96
List Price:  RM447.10
You save:  RM134.14
₦108,274.53
List Price:  ₦154,684.53
You save:  ₦46,410
₨19,454.09
List Price:  ₨27,792.76
You save:  ₨8,338.66
฿2,378.12
List Price:  ฿3,397.46
You save:  ฿1,019.34
₺2,466.48
List Price:  ₺3,523.69
You save:  ₺1,057.21
B$432.51
List Price:  B$617.89
You save:  B$185.38
R1,311.95
List Price:  R1,874.30
You save:  R562.34
Лв131.43
List Price:  Лв187.76
You save:  Лв56.33
₩103,223.92
List Price:  ₩147,469.07
You save:  ₩44,245.14
₪257.31
List Price:  ₪367.60
You save:  ₪110.29
₱4,072.64
List Price:  ₱5,818.31
You save:  ₱1,745.67
¥11,041.56
List Price:  ¥15,774.33
You save:  ¥4,732.77
MX$1,420.31
List Price:  MX$2,029.11
You save:  MX$608.79
QR254.14
List Price:  QR363.08
You save:  QR108.93
P970.50
List Price:  P1,386.50
You save:  P415.99
KSh9,063.70
List Price:  KSh12,948.70
You save:  KSh3,885
E£3,560.93
List Price:  E£5,087.27
You save:  E£1,526.33
ብር8,897.26
List Price:  ብር12,710.92
You save:  ብር3,813.65
Kz63,830.88
List Price:  Kz91,190.88
You save:  Kz27,360
CLP$69,315.99
List Price:  CLP$99,027.09
You save:  CLP$29,711.10
CN¥510.87
List Price:  CN¥729.84
You save:  CN¥218.97
RD$4,256.60
List Price:  RD$6,081.12
You save:  RD$1,824.52
DA9,489.42
List Price:  DA13,556.89
You save:  DA4,067.47
FJ$162.54
List Price:  FJ$232.21
You save:  FJ$69.67
Q538.26
List Price:  Q768.97
You save:  Q230.71
GY$14,619.81
List Price:  GY$20,886.35
You save:  GY$6,266.53
ISK kr9,747.50
List Price:  ISK kr13,925.60
You save:  ISK kr4,178.10
DH704.68
List Price:  DH1,006.73
You save:  DH302.05
L1,290.62
List Price:  L1,843.82
You save:  L553.20
ден4,134.98
List Price:  ден5,907.37
You save:  ден1,772.38
MOP$559.01
List Price:  MOP$798.63
You save:  MOP$239.61
N$1,299.34
List Price:  N$1,856.28
You save:  N$556.93
C$2,571.30
List Price:  C$3,673.45
You save:  C$1,102.14
रु9,517.06
List Price:  रु13,596.38
You save:  रु4,079.32
S/260.20
List Price:  S/371.74
You save:  S/111.53
K283.61
List Price:  K405.18
You save:  K121.56
SAR262.83
List Price:  SAR375.49
You save:  SAR112.65
ZK1,933.89
List Price:  ZK2,762.82
You save:  ZK828.92
L334.30
List Price:  L477.59
You save:  L143.29
Kč1,691.03
List Price:  Kč2,415.86
You save:  Kč724.83
Ft27,618.75
List Price:  Ft39,457.05
You save:  Ft11,838.30
SEK kr770.19
List Price:  SEK kr1,100.32
You save:  SEK kr330.12
ARS$72,002.55
List Price:  ARS$102,865.20
You save:  ARS$30,862.64
Bs482.86
List Price:  Bs689.84
You save:  Bs206.97
COP$308,627.53
List Price:  COP$440,915.37
You save:  COP$132,287.84
₡35,480.70
List Price:  ₡50,688.88
You save:  ₡15,208.18
L1,775.44
List Price:  L2,536.46
You save:  L761.01
₲544,980.94
List Price:  ₲778,577.57
You save:  ₲233,596.63
$U3,110.44
List Price:  $U4,443.67
You save:  $U1,333.23
zł287.20
List Price:  zł410.31
You save:  zł123.10
Already have an account? Log In

Transcript

Hello, in this video we are going to cover theme creation, we have our splash screen, which is essentially the source state of the screen that you see in a game initially, which shows the company's logo or like an indie developers logo. And then after a couple of seconds, you have to go to some sort of menu system. So the free scenes we're going to have a splash scene, which we already have created a main menu thing, which after a few seconds plus scene will go to after that, you'll be able to click a button on the main menu theme to go to the game theme. There's not going to be any porcine or game overseen, you can go down that route of creating theme for Game over and port. That's fine. I've done that in games myself.

But what we're going to be doing is having states within our game seem to be like a plane state, a paused state, the game over state. So if the state is paused, you obviously can't place ignore across On the grid, there's a lot of other stuff you can't do. But some sort of menu will appear to actually show you the pause buttons and the fact that it is paused. So the first thing we're going to do what I always do to save time because a lot of the time the scenes are very similar ball, the changing of the name of the class, I go to the folder where my one of my scenes is, I duplicate the header and the CPP or do that twice. Now first rename it to Main Menu scene. Main Menu scene dot cpp.

And if I do the same for this, so game scene, and game scene, if you go back to Xcode, or Visual Studio web app, you just got to make sure your files are included. So honestly do that now by selecting my four files and add them like so, if you're an ex Cody's want to make sure you're added to the appropriate targets, create groups finish. And now let's go to our main menu scene. I'm going to rename this to Main Menu scene. I'll copy and paste this in. instead of actually writing the x again, paste it here, go to the CPP, and we can paste it here, here.

Here, we can get rid of the sign in because we no longer need that. And it is given us errors because we haven't included the right file for many, many things. The haitch and these errors should now disappear. There we go. Let's do the same for game scene. So let's replace this with game scene.

A screener scene as copy and paste. Yeah yeah Yeah, yeah, let's get rid of the sign in. And now just replace this with the game theme header. And we're actually going to run it. You shouldn't see any difference between the previous video which was the Project Setup. And this one, we haven't linked the theme.

We haven't added any images or any for game logic, but it's always good to make sure build is succeeding. So we can proceed without any errors. So this is just running it now. It shouldn't take a moment or two. Okay, there we go. And this is obviously our splash scene with is trying to log into games NTLM comm for that, more, I'm also going to show you so go to the project right here.

And if I go to info, what we want to do, because we have an icon file, but all we actually want to do is get rid of the default splash screen, which is right here, launch images source, and migrate, migrate app icon. I'm happy with that. So if I go to the images, so now let's get rid of these default images. So we want to remove this remove this, you can add images, if you want to, but Well, I think you're gonna have a custom splash screen. So let's just rerun this. Make sure that we're not getting that cost to dx splash screen.

You might be wondering why do we want a custom one when we can essentially just drag and drop images. So it's still appeared. So let's go to product. Let's clean it. Now I'm going to rerun it I'm actually going to edit this bit out so you don't have to wait for it to fully compile. Now that has successfully built laughing would do for the launch screen file is just change this to main view controller already had the clipboard, but doesn't matter if I click enter For rerun this now, I'll go to my simulator.

As you can see, there is no cocoa to the launch screen, go to the splash scene, just the way we want it to try to sign in. I haven't signed in yet, I would do that very, very soon. And that is it. For synchronization we have all of our scenes created. In the next video, we're going to be covering implementing the splash scene. So stay tuned for that video.

If you want to check out the source code, feel free. There will be a link available to the GitHub page. If you have any questions, feel free to post them on my education platform. So no learning Dakota UK. There'll be a link in the description to that. And as usual, thanks for watching and I hope you have a great day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.