Game Code Library

C# and Unity tutorials for modular features and simple games. Add to your existing games, or create a new game together!

For professional inquiries, please send an email to gamecodelibrary@gmail.com


Game Code Library

What do you want to see after our quest system?
Getting the quest system filmed and edited for our top down game series now!
It's pretty heavy, so I've broken it up into smaller sections:
1. Quest Log UI
2. Quest Class Design + linking with UI
3. NPC Quest Giver and Conditional Dialogue
4. Quest Progression and Quest Saving
5. Quest Hand In and Rewards

Hopefully this breaks it down nicely so it's not too overwhelming to take on! :-)
Let me know any other ideas you have for our top down base template series!
(Remember this is a generic template first for any top down game, so we'll branch into different combat systems per genre after!)

2 weeks ago | [YT] | 26

Game Code Library

An update on our top down series!
I've been working on our Quest System - but realised to make this much cleaner I'd like to implement item stacking to our inventory first.
So our next video will be improving our inventory to allow for Item Stacking!
(a feature I'd been meaning to tackle - kept putting it off as I'd tried to get it done in the past but was never happy with the code...)

I'm happy with how it's turned out now!
I'll keep tidying the code for item stacking for now and get it filmed and out some time next week for us :-)

I don't want to rush this quest system, so hopefully you're happy with a slightly slower output while we get this logic clean and nice.

Hope you're doing well!

3 weeks ago | [YT] | 76

Game Code Library

I've just filmed our next video!
We're adding in our dialogue options and branching our dialogue system out into multiple paths :o!
It's a long one - so I'll get to editing right away and try get it out asap...
I'll keep you updated :-)

From here I'll be working on conditional dialogue choices and a quest system - which I'm in the middle of figuring out the best and simplest logic for us! If it takes longer than I hope - I'll film some different parts between so we can keep progressing (like moving to interiors e.g. entering a house etc...)

Hope you're doing well - thank you for your continued support and joining me on this adventure!

1 month ago | [YT] | 102

Game Code Library

We have a fun new video up tomorrow!
Learning to use ONE animator for MANY characters! :o It's really cool!

We'll have a little break in uploads after this since I'm going on a week snowboarding trip - but once I'm back we'll keep going with our top down adventure at full speed!!

I have the code ready for our dialogue line branching + dialogue choices, so I'll get filming that once I'm home.

Then I need to get the code cleaned up for our quest system!
This is a very complex one that I want to get right - so we'll see how long this takes to get out...

Soon our base template will be complete and we can start voting on what genre to branch into next! :-)
(Building from this base, we'll go into action rpgs, turn based, farming sim, survival etc... fun!!)

Hope you're doing well!

1 month ago | [YT] | 84

Game Code Library

An update to where we're at and what's coming in our Top Down template series!

We're just added in our NPCs and created a simple dialogue system.
Coming TOMORROW I'm going to get our NPCs wandering around, to give them a bit of life.

From that, we need to get our NPCs animated. To do this in an easy, dynamic and cool way - we're going to be using Sprite Libraries and the Sprite Resolver component!!! What do those do you ask?! Well - using those two components in Unity means you only have to set up ONE animator controller and ONE set of animations! Guess what? We did that already with our player!

We're going to reuse our player's idle and walk animations AND player animator controller for our NPCs too!! It's really cool, so get excited to see that...

And after that - we'll get our player talking BACK to our NPC - with dialogue choices! So we'll be able to branch our dialogue system out to different dialogue lines, depending on which response is selected by the player.

I've got all this code ready - so I'll be working on filming and editing it...
But I'm also working on the plan for our quest system too... it's tricky to get it clean, simple and easy for our tutorial - but I'll try my best!!!!

Hope you're well :-)

2 months ago (edited) | [YT] | 80

Game Code Library

Worked 9hours straight on a SATURDAY to film and edit our NPC dialogue system!
I didn't expect to get it all done but I just didn't stop working lol...
So I'll post it tomorrow as a weekend treat!

From here the next videos will be:
-Wandering NPCs (waypoint movement)
-Branching Dialogue Trees

And then we'll move into our quest system! (Still planning this out fully so can't give a promise on video order ;') !)
Hope you're well!
Thank you as always for the support.

P.S. I'm going to be using the interactable system from our previous video, as well as our pause and sound effect system - so check them out before this one gets here!

2 months ago (edited) | [YT] | 104

Game Code Library

In our next video we'll be adding in Sound Effects! ..................HOWEVER!!!
I'll be reusing the Sound Effect Manager we made in our PLATFORMER tutorial series! :o
You can easily grab these scripts from my Patreon OR you can follow the video below:
https://youtu.be/rAX_r0yBwzQ?si=jNPum...

We'll be building onto these scripts and adding new features for even better sound effects.
So be sure to get ready and check it out! :-)

(The reason I'm reusing the old script is to show how modular our game features can be for different projects AND if you have seen the previous video... I'm not repeating myself to you :p)

P.S. Happy Valentines for tomorrow!! xoxo

2 months ago | [YT] | 60

Game Code Library

Edit: Just finished the edit - I worked hard! I'll have it up tomorrow >:)
Still editing our next video - Adding an Interactable Chest + Base Interactable System!
It's our longest video yet - since it includes:
-Modular Interactable System
-Chest System
-Chest Opened State Saving
-Fix to previous new game inventory problem!

I wasn't sure whether to split this into separate videos - but I think keeping the example of opening the chest was important for the interactable system, and the saving of chest states shows how to save other interactable states too!

Tricky to plan these things :p hopefully it all makes sense to you too :-)
I'll try get it out this week!!
Thanks as always for your support

2 months ago (edited) | [YT] | 71

Game Code Library

What are you most excited to see in our top down series?

Been keeping it consistent lately with weekly videos for the past 7 weeks.
Proud of myself for keeping up momentum... but I'll make sure to focus quality over quantity!
Finishing up tomorrow with our second option of Map System with a DYNAMIC map!
Heavily script based rather than Unity UI - so get ready to code!

Next up I'll be focusing on adding interactivity to our game!
Getting our player opening chests, doors and talking to NPCs

2 months ago | [YT] | 35