Game Dò Mìn (Minesweeper) JAVA - #7 Xử lý mở ô, thắng thua P.2. Thêm chức năng Cắm cờ

Vien Huynh
2 Jul 202018:19

Summary

TLDRThis video script discusses the intricacies of game development, particularly focusing on a coding issue where victory conditions were not properly triggering. The speaker navigates through debugging, discussing game mechanics, and implementing features like flag placements and bomb configurations. They also mention the importance of testing and optimizing to avoid game crashes, hinting at the complexities and challenges faced by game developers.

Takeaways

  • 😀 The speaker is addressing the seventh video in a series about game programming.
  • 🔄 They mention being stuck on a specific part of the game where winning does not open two options as expected.
  • 👨‍👩‍👧‍👦 The speaker refers to 'calling Open' which seems to be a game function or feature that is causing issues before it was resolved.
  • 📞 There is a mention of a phone call that proves familiarity with a certain location, suggesting a game mechanic involving exploration or discovery.
  • 💡 After resolving an issue, the speaker talks about a new approach involving 'Open in all pin', indicating a game element that may involve unlocking or revealing something.
  • 💰 The speaker discusses the cost of an item, suggesting an in-game economy or purchasing system.
  • 🎲 There is a focus on game mechanics, specifically the handling of game pieces or elements, and the speaker mentions '2 MP3', which could be a file format or game item.
  • 🛑 The speaker talks about a game design involving flags, bombs, and other game elements, indicating a strategic or puzzle aspect to the game.
  • 🚫 The script includes discussions about restrictions or prohibitions in the game, such as not being able to view certain areas until certain conditions are met.
  • 🎮 The speaker mentions 'Cắm cờ', which translates to 'Plant the flag', a common game mechanic indicating claiming or marking a location.
  • 🛠️ There is a focus on debugging and fixing errors in the game, with the speaker discussing the process of identifying and resolving issues.

Q & A

  • What is the main focus of this video?

    -The main focus of this video is to troubleshoot and solve issues encountered while programming the game 'Diamonds'.

  • What issue was faced in the previous video?

    -In the previous video, the issue faced was that when the game was won, it didn't open the next level correctly.

  • What debugging step does the creator mention first?

    -The creator first mentions checking why the game did not open the next level after winning.

  • What is the significance of the 'Open' function mentioned in the video?

    -The 'Open' function is used to handle actions after a game level is completed, including checking for and processing winning conditions.

  • Why did the creator say, 'it didn't die before I did'?

    -The creator is referring to a bug where the game doesn't properly reset or handle the end condition, leading to inconsistencies in gameplay.

  • What does the creator check for regarding 'pin'?

    -The creator checks if the 'pin' (likely a flag or marker in the game) is set correctly, affecting game mechanics like level transitions.

  • How does the creator plan to fix the pin issue?

    -The creator plans to reset or update the pin settings to ensure it functions correctly during gameplay transitions.

  • What is the creator's approach to handling 'flagged' tiles in the game?

    -The creator explains that flagged tiles (marked by the player) should prevent certain actions, like opening, until unflagged.

  • What is the 'double-click' action intended to do in the game?

    -The 'double-click' action is intended to open all adjacent tiles around a number if the correct number of flags are placed.

  • How does the creator ensure that flagged tiles are correctly handled during gameplay?

    -The creator ensures flagged tiles are correctly handled by checking their state before allowing any actions like opening or unflagging.

  • What programming concept is heavily utilized in this troubleshooting session?

    -Conditional logic and state management are heavily utilized to troubleshoot and fix game mechanics.

  • What is the ultimate goal the creator aims to achieve by the end of this video?

    -The ultimate goal is to ensure that the game correctly handles level completion, flagging, and unflagging of tiles, and resets properly after each game.

Outlines

00:00

😀 Game Development Challenges

The speaker discusses issues encountered during the development of a game, specifically a seventh installment. They mention being stuck on a segment where the game does not properly advance after a victory. The speaker also talks about the importance of testing the game to ensure it functions correctly and mentions the need for efficiency to save time. They hint at the complexity of game mechanics and the process of debugging.

05:32

😕 Designing Game Elements

This paragraph delves into the design process of game elements such as flags and bombs, with a focus on the different types and their functionalities. The speaker describes a system where certain elements are placed strategically and how they interact with each other. There is mention of a mistake made in a previous video that needs correction, indicating an ongoing process of refinement and testing within the game development.

10:34

🤔 Game Mechanics and Strategy

The speaker discusses the mechanics of placing flags within the game and the conditions under which this action is allowed or restricted. They talk about the importance of finding the right position for placing flags and the consequences if the conditions are not met. The paragraph also touches on the strategies involved in the game, such as when to place a flag and how to handle different game scenarios.

15:36

😌 Game Testing and Adjustments

In this paragraph, the speaker talks about the process of testing the game, opening certain game elements, and the conditions under which these elements can be accessed. They mention the need for adjustments and improvements based on the results of the tests. The speaker also discusses the addition of new actions and strategies to enhance the gameplay experience and the importance of handling different game outcomes.

Mindmap

Keywords

💡Game Development

Game Development refers to the process of creating a video game. It involves various stages such as design, programming, and testing. In the video script, the theme revolves around the challenges and processes encountered in game development, as indicated by phrases like 'Syria lập trình game diamonds' and discussions about game mechanics and design.

💡Debugging

Debugging is the process of finding and resolving bugs or defects that prevent a game from running correctly. The script mentions getting 'stuck' and needing to 'check' and 'fix' issues, which are typical debugging activities, suggesting that the video may cover troubleshooting in game development.

💡Game Mechanics

Game Mechanics are the rules and systems that govern how a game functions. The script discusses elements like 'flags', 'bombs', and 'pumping', which are likely game mechanics that the video is exploring or explaining in the context of game development.

💡User Interface

User Interface (UI) in gaming refers to the visual elements and interactive components that players use to control the game. The script mentions 'Open' and 'pin', which could be UI elements or actions that the player interacts with within the game.

💡Testing

Testing in game development is crucial for evaluating the game's functionality and user experience. The script includes phrases like 'try it out' and 'test', indicating that the video might involve testing phases where the developer plays the game to find and fix issues.

💡Gameplay

Gameplay encompasses the overall experience of interacting with a game, including the player's engagement with the game's mechanics. The script's mention of 'playing' and 'winning' suggests that the video could be discussing aspects of gameplay and how it's implemented or improved.

💡Coding

Coding is the process of writing computer programs, which in the context of game development, involves scripting the game's logic and functionality. The script's reference to 'Open Thì' and 'perl' implies that coding is a significant part of the video's content.

💡Game Design

Game Design involves the creative and technical aspects of game creation, including level design, character design, and game world creation. The script's mention of 'design flag' and 'design block' indicates that game design elements are being discussed or demonstrated.

💡Optimization

Optimization in game development is the process of improving the performance and efficiency of the game. The script's reference to 'pin' and 'time-saving' suggests that the video might cover techniques for optimizing game performance.

💡Gameplay Balance

Gameplay Balance is the process of ensuring that different aspects of the game are well-matched and provide a fair and enjoyable experience for the player. The script's mention of 'winning' and 'losing' could relate to discussions about balancing the game's difficulty and mechanics.

💡User Experience

User Experience (UX) focuses on how players interact with and feel about the game. The script's discussion about 'not opening' and 'not being able to admire' suggests that the video might address the importance of a positive user experience in game design.

Highlights

Introduction to the seventh video on game programming with a focus on resolving issues from the previous session.

Mention of a problem where the game does not open two flags upon winning.

Discussion on calling 'Open' and issues with game characters dying before the action.

Explanation of the game mechanics after processing, related to the character's death and the use of 'pin'.

The cost of an item in the game and the importance of timing in gameplay.

Emphasis on proving one's skills in the game and not relying on others.

Introduction of new game elements, such as different types of bombs and flags.

Instructions on how to place bombs and the significance of their placement.

The impact of game design on the player's strategy, like the use of a 'boong' or diagonal block.

A detailed guide on setting up bombs and the game's reward system.

The importance of game timing and how it affects the player's moves.

Discussion on game mechanics related to opening spaces and the use of 'Apple ID' in the context.

Mistakes made in previous videos and the need for corrections.

Explanation of the game's flag-capping mechanism and its strategic importance.

The concept of 'cấm' or prohibition in the game and its effect on gameplay.

How to handle the game's mechanics when certain positions are prohibited.

The strategy of using a 'kích đúp' or double strike in the game.

Final thoughts on the video, mentioning the need to save time and conclude the tutorial.

Transcripts

play00:00

Anh hello chào mừng tới video thứ bảy

play00:03

của Syria lập trình game diamonds ở

play00:07

video trước thì ta bị kẹt ở cái đoạn này

play00:10

là khi ta cho nó khi ta chơi khi ta cho

play00:15

thắng thì nó không có mở hai cho ta

play00:20

em đi chơi cho coi chứ không phải không

play00:27

phải hôm nay là số một cái nhìn

play00:32

À hôm nay ở

play00:35

ừ ừ

play00:38

vợ chồng nuôi 2468 là

play01:22

Ừ thì ta gọi tao Open Thì bữa nào nó

play01:28

chết cái chết trước khi mình thế thì tại

play01:30

sao tao không chết trước khi nó vì tôi

play01:32

cũng không thì tên cái chỗ nào cái chỗ

play01:36

nào mà nó vì tôi nghị phone chị tôi nhịp

play01:39

phone thì chứng tỏ quen chỗ nào mà nó ừ

play01:44

Nói Chung Là sau khi nó xử lý xong một

play01:47

con tại bên nào nó sẽ chết thử pin cho

play01:51

pin thì thì tôi sẽ bỏ rồi Đây là một cái

play01:53

nè Open trong hết pin á

play02:02

A và số đề bao nhiêu tiền một cái nữa à

play02:08

khi trở lại thử nha mong mày đúng mà mày

play02:12

đúng cho đỡ tốn thời gian hai con

play02:16

Hôm nay thằng này à

play02:21

chứ không phải là cái mình

play02:24

Em hãy chứng minh cái mình luôn à

play02:29

À hôm nay hôm nay hôm nay sẽ nói hai cái

play02:32

mình không còn kém này đây lại đây chỉ

play02:36

còn nó được em hai cái mình cũng phải

play02:39

minh nè ba đó luôn ba con con không phải

play02:43

à

play02:45

có ai cái thì không phải mình cũng không

play02:48

phải miếng kê về thì nói được hai con

play02:55

chị đã hai cái mình Tại sao bạn lại

play03:06

không xử lý mệt chết đồ gì đây chị gian

play03:10

khổ tao với con khác đi luôn à

play03:16

anh em alo nè Này khi bắt đầu thì tao

play03:22

một cái này à

play03:29

Ừ ừ kích kích kích cá để làm đẹp thì cái

play03:38

đầu khi ta làm xong hết đi không được

play03:44

không được không được đã xử lý cho mẹ là

play03:50

cái cái cái chết pin của ta dựa trên các

play03:52

bảng perl thì cứ khi mà cái chỗ nào mà

play03:55

cái parent ai chở thằng qua thì trả tiền

play03:58

cái đoạn trích video cứ là nó thằng cu

play04:01

xong mà vẽ hình chết thử nói với tháng

play04:03

chưa tương tự với cái này ok ok tư tưởng

play04:10

này đi chơi thủ đi thời gian làm à

play04:29

Bộ Công an 20 ngày 22 mình sẽ ôm hai

play04:33

mình chết luôn kêu là một cái mình hai

play04:40

cái mình sẽ luôn tìm ở 2 MP3 à

play04:44

cả hai chúng mình chắc luôn nè tôi cũng

play04:50

sẽ làm một cái mình chắc để lại cái pin

play04:51

nào biết đâu Bây giờ Bây giờ thì nó bằng

play05:32

thua luôn rồi bạn qua luôn nhưng mà nó

play05:34

không bị cái bơm lên không bị cái bom

play05:40

lên thì nếu như nó bị 1le thì Elip

play05:44

sau khi easy tôi sẽ được như thiết kế cờ

play06:02

cái boong cái boong gạch chéo bình

play06:05

thường vào nha chỉ cách cái hình thì mấy

play06:11

cái video đâu mình để hướng dẫn rồi xin

play06:13

tạm dừng video nữa mình cắt tiết kiệm

play06:15

thời gian video Ok đây là sau khi mình

play06:18

đã các xong cái hình bào gồm là cờ bom

play06:21

bom X và bom cái chỗ đây thì LG thể xếp

play06:26

bộ là cái thằng bồ à

play06:30

I Pray nè nữa nếu như khe bằng chính xe

play06:40

mình chính là cái bom đỏ khi bằng mười

play06:44

là cái cờ khen 11 là cái bơm bình thường

play06:50

là khen 12 là cái con bo mạch chéo chứ

play06:54

là chính là cười mười là ban đỏ mưa là

play07:00

bình thường 11 là vùng đó hai bên ngoài

play07:03

chiếu kể lại là cái cờ là cái bom à

play07:15

khi cài đặt bom stc4 X3 chéo ở

play07:26

ở đây ta sẽ xếp lên bờ bom đỏ là chính

play07:35

là cờ 10 11 và luôn Nó ở Bắc Kinh sẽ

play07:49

chấm Rebel thì bên là u

play08:05

à à

play08:08

à à

play08:11

a bread là 11

play08:16

à à

play08:18

à à

play08:19

anh không Đây là 11 đúng không ạ a đôi

play08:23

ta say chị xíu nha sau khi mình kiểm tra

play08:28

caro ta lại thì mình lo Đúng rồi lại bị

play08:31

một cái lỗi chí mạng nữa ở cái video

play08:35

trước mình đã bị ta là thiếu Bless Tại

play08:38

sao vậy mà tiêu bản ép hoài hèn chi xích

play08:46

đổi số 11 cùng lịch sửa sai màu đỏ này

play08:54

đẹp rồi bây giờ sau khi bạch toán thua

play08:58

thì khi mở ra tất cả cái ô bơm mở ra tất

play09:02

cả cái ô bơm thì trong đây là dịp để dịp

play09:07

qua hết cái mở tin nhắn lên à

play09:19

chị 2k em bằng từ một thì ai bất kỳ ai

play09:29

bước chân ID Apple ID chấm sex Indo

play09:36

album thường là mười easy clip Ok mi2k

play10:00

có phải là phone thì nó làm nha bởi vì

play10:03

cái cái lúc đi cho nó mình tu nè nếu như

play10:09

mà ta không có cái điều kiện nghe thì nó

play10:10

bị luôn cái bông đỏ thằng bình thường

play10:12

luôn à

play10:19

à à

play10:21

Ừ ok Ổn đấy Bây giờ tao tìm cái hành

play10:30

động mà Cắm cờ Cắm cờ là cái kích chuột

play10:33

phải Ok Thì hôm bữa mình có nói với em

play10:38

nghe rồi đấy trụ trái thì ghét của tâm

play10:40

mình một nè chụp thì chụp phải là kết

play10:46

thúc cho mình hai Nếu như chuột phải thì

play11:02

bắt đầu ca sĩ Viết tiền quạt Cắm cờ Cắm

play11:16

cơ à

play11:21

ổ cắm cờ thì sao ta sẽ cấm Cường Ví dụ

play11:26

như cái ô bị mở ra thì ta không được

play11:28

ngắm thì ta phải tìm cái inter ai zê zê

play11:36

zê này thì ta phải có cái điều kiện mà

play11:41

vị trí là nó bạn Phone này nó chưa mở

play11:45

này tay cắm vào được đúng không Mà khi

play11:47

ta cắm rồi thì tay cắm cờ tại vị trí đó

play11:54

thì cái kích mở nó không không mở được

play12:00

nữa không mở được thì phải làm sao đây

play12:11

tìm kỹ mãn Ba Lan tiếng cười nữa Ok chị

play12:20

lúc đấy à

play12:21

cho tất cả Việt Nam Á

play12:29

ở trung học thì ở xy Và nếu như Nếu như

play12:36

cái thằng chưa mở thì cái nào xét ý nè

play12:40

nếu như cái cổng Cường tâm cờ vị trí

play12:44

easy nó đã cấm rồi thì bắt đầu tiên

play12:48

chúng thường vị trí yj sẽ cùng con bị

play12:55

côn các bức tường và IV Sấm Sét bên bờ

play13:01

number number để xem thì cái chỗ nào

play13:04

mình cũng vui theo MK sẽ tự một người

play13:12

ngược lại là cái chỗ đấy nó không nó

play13:15

chưa cắm để cắm cờ vị trí IV chụp hình

play13:20

cu và tôi xếp dùm DJ IV chấm

play13:29

i m chấm cười số 9 Ok về ca sĩ Rebel với

play13:34

lại coi cắm cơm Nó không hiểu không hiểu

play13:55

à

play13:58

ổ cắm cơm nó lại không hiểu không hiểu

play14:11

hai đã có được cái sự kiện mình đúng cho

play14:15

biết tin bằng hai và chẳng biết dùng kỳ

play14:31

một mình vẫn nói cái trục giữa là bằng

play14:34

hai và chụp phải là bằng ba chứ Đây là

play14:37

mình đang kích khi con chụp nhanh đi con

play14:39

lên cùng anh thích được nha Mà Kích Dù

play14:41

bảo vật này trở thành ra thì kích khá

play14:50

lắm chịu thích một phát từ các bạn cần

play14:54

soi kính khác kích thích khi cách làm

play14:56

món nộm hay thì kịch nó không

play14:58

kể từ khi bấm không chịu không được dùng

play15:04

được phải là xử lý sao cho nó khi nó cấm

play15:07

cơ thì mình tắm không có được thì trong

play15:10

cái thằng word nè trong các em Open nè

play15:12

nếu như cái đầu khi ta mở thì chip EZ

play15:24

cấm Cường vị trí EZ cấm chưa thì ra cấm

play15:29

rồi thì nó chưa cắm thì phải làm cho

play15:32

đoạn đây cùng là đã cắm Mau thì tôi đi

play15:35

tôi nhịp luôn ok à

play15:43

ừ ừ

play15:51

Có kết quả rồi mở đi Mở gmail ok à

play16:15

10 đoạn năm nào được bởi vì cái ô trống

play16:18

không khiêm góc là khi nó mở ra thì chỗ

play16:22

cắm cờ thì ô mày không nó vẫn mở nếu như

play16:26

đỡ cắm cờ đây thì không một tiếng lắm

play16:29

trong cờ bạn là một tí học tiếng không

play16:31

được luận Xong giờ lại trong cái hẻm

play16:37

Gaming đây cái đầu cái chỗ em Nếu như

play16:43

các bạn chuột cái nè bảo mình thì tao

play16:47

tìm cái này và còn em ghét chị

play17:14

có gì là phần con không thể mở thì nó

play17:35

vẫn mở máy Ok Nhưng mà tao cái không

play17:37

được lấy rồi bây giờ tháng qua để có xử

play17:43

lý trống cơm đây để có xử lý tránh thua

play17:46

thắng thua cũng xử lý mà tắm cường để xử

play17:48

lý bây giờ ta thêm cái cái hành động này

play17:51

ví dụ như ra kích đúp vô cái số một ra

play17:54

nhưng em góc để kích thích dùng phát màn

play17:56

mở nó sẽ mở cái 8 xung quanh em nè Em ở

play17:59

80 xung quanh đây nè nào không phải cờ

play18:01

thì nó mở ra hay hay là video tới đây là

play18:07

cũng già rồi mình xin đừng này video

play18:10

tiếp theo mình sẽ làm cái kích đứt thì

play18:14

nằm

play18:14

Ừ thì nằm ở đây ok cho mày à

Rate This

5.0 / 5 (0 votes)

Étiquettes Connexes
Game DevelopmentProgrammingVideo SeriesChallengesTutorialCodingGameplayDiamondsSyriaGame Bugs
Besoin d'un résumé en anglais ?