The second in the Swift game series! Building a Long-Term Game in Swift🀄
Hello, welcome to the tutorial on creating a long-term game .
Janggi can be seen as a very classic 1:1 strategy simulation game, a brain game where you predict your opponent's moves and find the most advantageous position.
Each piece has a condition under which it can move, and it can only move if that condition is met.
The most reliable way to learn a programming language is to This is an example of implementing it directly in code.
Creating your own long-term game is also a great example of learning programming .
By naturally coming into contact with basic programming syntax ( variables, constants, for loops, if statements, switch statements, function declarations , etc.), you can learn which syntax is used where and how.
In particular, we will learn how to control the movement of long-term eggs through Array management (creation, addition, deletion, search).
Although the game has a very simple structure, implementing it as a program isn't easy. But with me, you'll learn programming easily and enjoyably.
If you follow along step by step and make it yourself, I am sure that you will find yourself with improved programming skills before you know it.
In this lecture, we will implement various functions such as showing the movement path of the chess pieces, moving the chess pieces, eating the opponent's piece, general function, guerrilla function, game over, and simple animation . First, we will implement a simple 1:1 turn-based structure in which when I place a piece, the turn is passed to the opponent, and when the opponent places a piece, the turn is passed back to me.
After completing this course, you'll learn how to apply AI to the chess game created in the previous course, automatically playing against the computer. Therefore, you can think of this course as a foundational course that will serve as the foundation for the next course.
If you climb the stairs one by one from the beginning, you will soon have a wonderful game completed.
Those who have never been exposed to object-oriented programming such as JAVA may find it difficult to follow. The style of simply explaining and continuing with development suits me well.
Hello,
I am so grateful that you said that the lecture style suited you well.
Actually coding and gaining practical experience is more important than just talking about a hundred words,
so I hope that this was a valuable time for you to learn object-oriented concepts while making games. I have no doubt that you will grow further, and I will support your wonderful future coding life.
I sincerely thank you for leaving a valuable review.