27 Lab 4.pdf
(
2349 KB
)
Pobierz
Construct 2
Lab Exercise 4: Tic-Tac-Toe Finishing
This is a short and simple lab to make sure that you understand the logic of the Tic-Tac-Toe
game.
1. Get the download of Tic-tac-toe and open it within construct.
2. Without watching the video or looking at the solution, see if you can delete and recreate
the logic events that determine if X or O wins.
3. As more practice, add an additional clause that will check for diagonal victories as well.
This may not be the same as my formula, but if it works, that’s great!
4. Check that both players can win on both diagonals and that the formula does
not inhibit winning horizontally or vertically.
5. Once you have a solid grasp on the game, try creating
a different size field. This will require you to change
some of the floor division and multiplication to detect
click position.
6. Try adding in your own images as sprites instead of the
traditional X and O.
Facebook.com/LearnToProgramMedia
learntoprogram
.tv
Plik z chomika:
ZEROMEGA
Inne pliki z tego folderu:
25 Visualizing.MP4
(24735 KB)
22 Variables.MP4
(23333 KB)
24 Winning.MP4
(29153 KB)
23 Starting our Implementation.MP4
(20953 KB)
21 Logic Games.MP4
(9209 KB)
Inne foldery tego chomika:
1 Starting and Spriting
2 Top Down Basics
3 Platforming Basics
5 A.I
6 Phsyics
Zgłoś jeśli
naruszono regulamin