Adding a combat system to my indie game [DEVLOG] — Transcript
Full transcript
- 0:02Hi. In the last video, I showed you how
- 0:04I implemented the game world for my
- 0:06indie game. This time, I want to make
- 0:07the world feel a little bit more alive
- 0:09by adding mobs and a combat system. I
- 0:11also implemented and fixed some things
- 0:13that people mentioned in the comments.
- 0:15But before we get started, you can now
- 0:16wish list Isocore, which is the working
- 0:18title at the moment, on Steam. So, if
- 0:20you really want to support this project,
- 0:21check out the link in the description
- 0:23and wish list Isocore on Steam now. That
- 0:24would be a great help. Thanks.
- 0:27In the comments of the last video, a lot
- 0:28of people were triggered by the
- 0:29overlapping shadows. I was planning on
- 0:31fixing that later on in the game, but
- 0:33since it got mentioned so much, I
- 0:35decided to fix it right away.
- 0:37To fix this, I use the rendering layer
- 0:38of the object, which is calculated by
- 0:40adding the X grid position to the Y grid
- 0:42position. Now, I apply a mask on every
- 0:44shadow that gets casted, and if two
- 0:46shadows overlap, I only render either
- 0:48the higher or lower layer shadow in the
- 0:50overlapping area.
- 0:52This works well, except when two shadows
- 0:54of the same rendering layer overlap. But
- 0:56I do think that it looks good for now,
- 0:58and I'll leave it up for later to find a
- 1:00solution for that, too.
- 1:02Another thing that a lot of people
- 1:03commented on the last video was that
- 1:05they didn't like the grid lines.
- 1:06I personally am not sure if I like the
- 1:08look more with or without them, so I'm
- 1:10just going to let you decide in the
- 1:11comments which look you prefer.
- 1:14Some other things that I did was
- 1:15animating the player with my very poor
- 1:17animation skills. I also added a bit
- 1:19more variety to the nature by adding
- 1:21some sand, old tree trunks, and some
- 1:23ruins.
- 1:24But now that we talked enough about
- 1:25other features, let's get to the topic
- 1:27of the video. In my last video, I had
- 1:29already implemented the first mob, but
- 1:31the problem was that I did that without
- 1:32really thinking about how I wanted to
- 1:34implement the rest of the combat system.
- 1:36And at the same time, the slimes were a
- 1:38little buggy sometimes.
- 1:39What I wanted though is kind of a
- 1:41building kit, so that I can implement
- 1:43the rest of the mobs without having to
- 1:44code every single time. So, I scraped
- 1:46the old slimes and re-implemented them.
- 1:48I wrote this creature script, for
- 1:49example, that moves a creature to a
- 1:51desired destination or target by the
- 1:52chosen way of movement.
- 1:54For testing, I added two mobs, blue
- 1:56slime and a floating skeleton skull.
- 1:58If the player dies at the moment, he
- 2:00gets reset to the pillar and the
- 2:01inventory he was carrying around gets
- 2:03erased.
- 2:04Now, I basically had a simple but
- 2:06working combat system. But since nothing
- 2:07really happened when you hit the mobs,
- 2:09except when killing them, it didn't
- 2:11really feel rewarding.
- 2:12So, the next step was adding feedback.
- 2:15The first change I made was giving the
- 2:16mobs knockback.
- 2:18This already made a huge difference to
- 2:19before, but it still didn't feel as
- 2:21satisfying as I wanted. And also having
- 2:23to run behind the mob every time you hit
- 2:25it became quite annoying after some
- 2:27time.
- 2:28To avoid that, I implemented a three-hit
- 2:29combo. This means that the mob only
- 2:31receives knockback when hit three times
- 2:33in a row in a certain amount of time.
- 2:35And additionally, the third strike deals
- 2:36more damage. To still increase the
- 2:38feeling of feedback, I added a camera
- 2:40shake every time the mob receives
- 2:41knockback and I pause the game time a
- 2:43little on each hit to even give it more
- 2:45impact.
- 2:47Now, hitting the mob felt responsive and
- 2:48satisfying. And it not flying away on
- 2:50every strike added a nice level of
- 2:52difficulty to the combat. Since fighting
- 2:54is not the main component of my game, I
- 2:55could have just left it there and
- 2:56started adding new mobs. But I wanted
- 2:58the player to have more than just a
- 2:59simple option of hitting the mobs.
- 3:01Specifically, I wanted to make the way
- 3:03you move around during combat a bit more
- 3:05diverse. So, I came up with a dash.
- 3:08The dash works so that you dash up to
- 3:09three cells into the direction that
- 3:11you're currently looking at by pressing
- 3:12the space bar.
- 3:14But it's really unsatisfying when
- 3:15dashing into a mob and just getting
- 3:17damage.
- 3:18So, I added that dashing into an object
- 3:20triggers a hit.
- 3:21And in combination that the mobs don't
- 3:23fly away on the first hit, the dash felt
- 3:25really nice for approaching mobs and or
- 3:27getting rid of them.
- 3:28Now that I was happy with the combat
- 3:29system, the only thing left was spawning
- 3:31the mobs. For that, I chose a pretty
- 3:33simple approach. The spawning system
- 3:34just spawns mobs around the player and
- 3:37as further away the player gets from the
- 3:38center, the mobs become stronger and
- 3:40more. The idea is to keep the player in
- 3:43a closer area first and exploring and
- 3:45exploiting local resources before
- 3:46reaching further territory and expanding
- 3:48the map. At the end, I'm happy with how
- 3:50the combat system turned out. It's still
- 3:52pretty simple, but for now it's more
- 3:54than enough. Of course, I will be adding
- 3:56a lot more stuff or change things over
- 3:58time. Feel free to tell me in the
- 4:00comments how you think that it turned
- 4:01out.
- 4:02Also, maybe consider subscribing and
- 4:03leaving a like since you already made it
- 4:05so far.
- 4:06Either way, I hope you have a great day
- 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.