Introduction to Coding –
Coding is the first scary bottleneck for those who want to design video games. Unless you take time to understand the basics, everything can be so intimidating. But if you change your mind on programming, and see it as a honey do list for a computer, than coding becomes far less scary. You just need to learn how computers are instructed and start taking control over it.
For those who have iPads, feel free to download SwiftPlaygrounds and play around with Coding 1, I use them for all my coding lessons right now.
Swift Playgrounds by Apple
Introduction to Functions –
Swift Playgrounds –
Functions allow programmers to group lines of code to be called in later parts of code, to help reduce the amount of coding you have to do to accomplish a task. You can also use functions within other functions to eliminate as much coding as possible.
As coders, we want to reduce the amount of work we do, and functions allows us to do that very thing.
Thanks for watching and Making Gaming Great Again!
Introduction to For Loops –
For Loop definition –
For Loops are excellent ways to group a bunch of functions that are the exact same together. In video games, these are the NPCs patrolling around, going to point A doing a couple of things and then going to point B in which the do the exact same thing before they go to point C, which then you can reset the to start at the beginning again.
Introduction to Conditionals –
Definition of Conditional Programming –
Conditional programming can help game developers make their games more difficult, provide missions and quests with reward systems, level up scripting when a character’s experience hits a certain number, and what happens when a character hits another character. It is the backbone of coding a game, so it is essential for aspiring game developers to learn and get really good at conditional coding.
Thanks for making games great again!
Introduction to Logical Operators –
Logical Operators definition –
Logical Operators, defining things if two combined variables are true, or if a variable is untrue, or if a variable equals this or that allows game designers to provide puzzles and unique experiences to their games. Building on the conditional programming that is very important for game programming, because games are all about conditions, this helps ensure unique experiences for gamers.
Introduction to While Loops –
While Loops –
While loops combines the three topics we had taken previously, the for loop, conditional coding and logical operators. It helps define NPC behaviours in games to animate your world. You can use a while loop to have a shopkeeper in a game stay in their shop until a certain time of day, after which it will go home – so the loop for the shopkeeper would be while the time condition is true, the shopkeeper stays in the shop, else if the time condition is false than the shopkeeper goes home, and then the same loop is created every single day in that loop.
Thanks for watching and making games great again.