MGGA – Introduction to Algorithms

Full Video –

https://youtu.be/sRLSQwll7vY

Algorithms Definition –

https://en.m.wikipedia.org/wiki/Algorithm

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

Algorithms are one of most misunderstood concepts in the world. If you listen to the news, Algorithms are going to create the great robotic uprising, and you can’t go onto a conservative online space and not hear about Facebook, Twitter and Google altering their algorithms to silence conservative thought. Algorithms are to blame, or are they.

Algorithms are just tools, and they’re simply digital solutions to problems. Whether you want to make sure a character has a key before you let them enter a room, or you create level up scripts, or power scripts, or any other coding, anytime you solve a problem with coding you have just created an algorithm. Sure, Facebook, Twitter, and Google are using algorithms in very biased ways to silence conservative voices but the problem is not algorithms but the people who create them.

Today, I talk about how all the lessons we’ve taken so far have been teaching you how to create your own algorithms to solve issues in SwiftPlaygrounds, and that this concept applies to game development as well, especially level design, which I briefly touched upon in the Game World Page.

Thanks for watching and making games great again.

Advertisements

Coding Videos so far

Introduction to Coding –

https://youtu.be/t8w5YKOtoMQ

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

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

Introduction to Functions –

https://youtu.be/xugrFZ_KBzU

Sources

InfoGraphic –

https://www.cs.utah.edu/~germain/PPS/Topics/functions.html

Swift Playgrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

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 –

https://youtu.be/rugRRJtdZDw

Description –

Resources –

For Loop definition –

https://www.techopedia.com/definition/19415/for-loop

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

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 –

https://youtu.be/4crssMvxpHI

Description –

Resources –

Definition of Conditional Programming –

https://en.m.wikipedia.org/wiki/Conditional_(computer_programming)

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

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 –

https://youtu.be/zFY_63SjUd4

References –

Logical Operators definition –

https://www.dictionary.com/browse/logical-operator

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

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 –

https://youtu.be/uWLKhtvgrPs

While Loops –

https://en.m.wikipedia.org/wiki/While_loop

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

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.