YouTube2Text

Adding a combat system to my indie game [DEVLOG] — Transcript

by JohnBrx · 957 words · 144 segments · language en · Watch on YouTube

Full transcript

  1. 0:02Hi. In the last video, I showed you how
  2. 0:04I implemented the game world for my
  3. 0:06indie game. This time, I want to make
  4. 0:07the world feel a little bit more alive
  5. 0:09by adding mobs and a combat system. I
  6. 0:11also implemented and fixed some things
  7. 0:13that people mentioned in the comments.
  8. 0:15But before we get started, you can now
  9. 0:16wish list Isocore, which is the working
  10. 0:18title at the moment, on Steam. So, if
  11. 0:20you really want to support this project,
  12. 0:21check out the link in the description
  13. 0:23and wish list Isocore on Steam now. That
  14. 0:24would be a great help. Thanks.
  15. 0:27In the comments of the last video, a lot
  16. 0:28of people were triggered by the
  17. 0:29overlapping shadows. I was planning on
  18. 0:31fixing that later on in the game, but
  19. 0:33since it got mentioned so much, I
  20. 0:35decided to fix it right away.
  21. 0:37To fix this, I use the rendering layer
  22. 0:38of the object, which is calculated by
  23. 0:40adding the X grid position to the Y grid
  24. 0:42position. Now, I apply a mask on every
  25. 0:44shadow that gets casted, and if two
  26. 0:46shadows overlap, I only render either
  27. 0:48the higher or lower layer shadow in the
  28. 0:50overlapping area.
  29. 0:52This works well, except when two shadows
  30. 0:54of the same rendering layer overlap. But
  31. 0:56I do think that it looks good for now,
  32. 0:58and I'll leave it up for later to find a
  33. 1:00solution for that, too.
  34. 1:02Another thing that a lot of people
  35. 1:03commented on the last video was that
  36. 1:05they didn't like the grid lines.
  37. 1:06I personally am not sure if I like the
  38. 1:08look more with or without them, so I'm
  39. 1:10just going to let you decide in the
  40. 1:11comments which look you prefer.
  41. 1:14Some other things that I did was
  42. 1:15animating the player with my very poor
  43. 1:17animation skills. I also added a bit
  44. 1:19more variety to the nature by adding
  45. 1:21some sand, old tree trunks, and some
  46. 1:23ruins.
  47. 1:24But now that we talked enough about
  48. 1:25other features, let's get to the topic
  49. 1:27of the video. In my last video, I had
  50. 1:29already implemented the first mob, but
  51. 1:31the problem was that I did that without
  52. 1:32really thinking about how I wanted to
  53. 1:34implement the rest of the combat system.
  54. 1:36And at the same time, the slimes were a
  55. 1:38little buggy sometimes.
  56. 1:39What I wanted though is kind of a
  57. 1:41building kit, so that I can implement
  58. 1:43the rest of the mobs without having to
  59. 1:44code every single time. So, I scraped
  60. 1:46the old slimes and re-implemented them.
  61. 1:48I wrote this creature script, for
  62. 1:49example, that moves a creature to a
  63. 1:51desired destination or target by the
  64. 1:52chosen way of movement.
  65. 1:54For testing, I added two mobs, blue
  66. 1:56slime and a floating skeleton skull.
  67. 1:58If the player dies at the moment, he
  68. 2:00gets reset to the pillar and the
  69. 2:01inventory he was carrying around gets
  70. 2:03erased.
  71. 2:04Now, I basically had a simple but
  72. 2:06working combat system. But since nothing
  73. 2:07really happened when you hit the mobs,
  74. 2:09except when killing them, it didn't
  75. 2:11really feel rewarding.
  76. 2:12So, the next step was adding feedback.
  77. 2:15The first change I made was giving the
  78. 2:16mobs knockback.
  79. 2:18This already made a huge difference to
  80. 2:19before, but it still didn't feel as
  81. 2:21satisfying as I wanted. And also having
  82. 2:23to run behind the mob every time you hit
  83. 2:25it became quite annoying after some
  84. 2:27time.
  85. 2:28To avoid that, I implemented a three-hit
  86. 2:29combo. This means that the mob only
  87. 2:31receives knockback when hit three times
  88. 2:33in a row in a certain amount of time.
  89. 2:35And additionally, the third strike deals
  90. 2:36more damage. To still increase the
  91. 2:38feeling of feedback, I added a camera
  92. 2:40shake every time the mob receives
  93. 2:41knockback and I pause the game time a
  94. 2:43little on each hit to even give it more
  95. 2:45impact.
  96. 2:47Now, hitting the mob felt responsive and
  97. 2:48satisfying. And it not flying away on
  98. 2:50every strike added a nice level of
  99. 2:52difficulty to the combat. Since fighting
  100. 2:54is not the main component of my game, I
  101. 2:55could have just left it there and
  102. 2:56started adding new mobs. But I wanted
  103. 2:58the player to have more than just a
  104. 2:59simple option of hitting the mobs.
  105. 3:01Specifically, I wanted to make the way
  106. 3:03you move around during combat a bit more
  107. 3:05diverse. So, I came up with a dash.
  108. 3:08The dash works so that you dash up to
  109. 3:09three cells into the direction that
  110. 3:11you're currently looking at by pressing
  111. 3:12the space bar.
  112. 3:14But it's really unsatisfying when
  113. 3:15dashing into a mob and just getting
  114. 3:17damage.
  115. 3:18So, I added that dashing into an object
  116. 3:20triggers a hit.
  117. 3:21And in combination that the mobs don't
  118. 3:23fly away on the first hit, the dash felt
  119. 3:25really nice for approaching mobs and or
  120. 3:27getting rid of them.
  121. 3:28Now that I was happy with the combat
  122. 3:29system, the only thing left was spawning
  123. 3:31the mobs. For that, I chose a pretty
  124. 3:33simple approach. The spawning system
  125. 3:34just spawns mobs around the player and
  126. 3:37as further away the player gets from the
  127. 3:38center, the mobs become stronger and
  128. 3:40more. The idea is to keep the player in
  129. 3:43a closer area first and exploring and
  130. 3:45exploiting local resources before
  131. 3:46reaching further territory and expanding
  132. 3:48the map. At the end, I'm happy with how
  133. 3:50the combat system turned out. It's still
  134. 3:52pretty simple, but for now it's more
  135. 3:54than enough. Of course, I will be adding
  136. 3:56a lot more stuff or change things over
  137. 3:58time. Feel free to tell me in the
  138. 4:00comments how you think that it turned
  139. 4:01out.
  140. 4:02Also, maybe consider subscribing and
  141. 4:03leaving a like since you already made it
  142. 4:05so far.
  143. 4:06Either way, I hope you have a great day
  144. 4:08and see you in the next one.

About this transcript

This page contains the full transcript of Adding a combat system to my indie game [DEVLOG] by JohnBrx, generated from the public captions YouTube serves with the video. The transcript has 957 words across 144 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.