Code-It-Yourself! Role Playing Game Part #2

preview_player
Показать описание
Cut Sequences and varied object behaviours are important facets of RPGs. In Part 2 of this series I present a way to manage many different types of interactive dynamic objects, and custom script them to facilitate "theatre". Please ensure you have seen part 1 first!

Twitter: @javidx9
Twitch: javidx9
Рекомендации по теме
Комментарии
Автор

Please forgive the weird message later in this video. To make these videos I have the finished project, and basically rebuild it on-screen. In this case, to make it work and demonstrate it visually at that point, I had to "hack" in a file temporarily, which is addressed and resolved appropriately in Part#3. This is the main reason I'll only release the source code once the series is completed. This is often the way when developing larger projects, you resort to nasty stuff just to test a simple thing. You must of course eliminate this approach once the test results are satisfactory.

javidx
Автор

David, thank you so much for making this content and making it publicly available on YouTube. Such high-quality, specialized resources are not usually readily available, not for free. Your videos are immensely helpful and enlightening.

saurabhmehta
Автор

Another great video, David. The game is starting to really take shape and I can't wait for the next part. I do love these longer, multi-video projects that you're starting to do.

spjewkes
Автор

Great video, appreciate your effort! But at 36:34, the update() function could be made much simpler. You don't need to update object's positions px and py, just updating the velocities (vx and vy) would suffice. The game engine loop would take care of updating the position.

saurabhmehta
Автор

I have a really weird issue in my program up to 44:35 everything worked perfectly, I added dialog handling and the program gives an error "_main alredy defined" after commenting out all the changes I made to the code since the last working version it still throws the same error but commenting out the main function makes everything run perfectly :o

MrKriegus
Автор

I would have gone with "Grr... Argh..." but maybe I'm betraying my age once again ;-)

I'm looking forward to seeing how you code up ongoing background movement, like having the skeletons wander about at random until the player gets within range and then giving chase.

As to that, I was also wondering how difficult it would be to spatchcock in a path planning algorithm (seeing as your video on A* is sitting right here) so that you could have the characters in a cut-scene react to the current layout of the screen rather than just walking through the scenery or—worse—getting hung up on bits of it! You could calculate the path on creation of the command object and only update it if the moving object collided with something…or instead of a target *position* you could specify a target *object* and re-calculate if that object moved…

PhilBoswell
Автор

This is ultimate 2D RPG development courses..

initfunction
Автор

Very cool videos. From Russia with love :)

ShkolnikPrahramist
Автор

51:24 this doesnt work for me because it says main is already defined inside of commands.cpp.

JustinK
Автор

Why do you use multiple public statements in your classes? You only need one or has it any deeper sense that im not understanding (I`m used to program in Java and only have very rudimentary knowledge about c++).

getrundelthd
Автор

Love the tutorials and love the project. Don't love how ambiguous that "RPG_Main.cpp" file is though...
Should have been an h file (you're right!) and now I have to figure out what to do with it in order to make my maps load.
Could you please kindly tell me what I'm supposed to do with this file?

plaguefreegames
Автор

i wonder, how would you go with making a turn based combat system for this?

noahbarger
Автор

In the moveTo() isnt it better to use (Direction, distance, speed) as parameters.

Say in a dramatic cutscene: Move north, 10 steps, slowly -> moveTo(n, 10, 1)
for action scene move fast.
for diagonal use nw, ne, sw, se
etc

neuemage
Автор

hey javid, I firstly would like to let you know that the content your providing is very much appreciated and you're doing a wonderful job at it. I've been studying program for a while it's been almost one year at a university and I want to know how good of a programmer one needs to be in order to get a job and a decent salary. Although your videos are quite insightful but it can also be intimidating. I have built a strong foundation with loops, arrays and strings, classes, objects etcs in C++ and have even made a snake game but I don't know how long will it take me to be good enough to work in an organisation. I don't want to be overly ambitious or idealistic. Your response would be much appreciated.

prince
Автор

how to add these type of sprites in the console as im working on an game engine if you tell me this it would be great

FrostGamingHype
Автор

Personally, I preferred Jario 2, the one where you can throw turnips and things.

dopplegangerdavid
Автор

Amazing video as always, javid, your contents are the best! I got a question, do you use other programming languages than C++ to make games like these? I'm not saying C++ is a bad language, but it could be nice to have some little variation time to time.

thefoolishgmodcube
Автор

I see mario gliding around in a Zelda-esque world
...is this a new stage in the upcoming Super Smash Bros for switch?

uuu
Автор

Was there a video series on the engine itself, i.e. rendering sprites, getting a graphics context etc...?

HairyPixels
Автор

Why do you use "new" when creating instances of objects? Why not just assign it with "=" or curly braces?

nabilandadamslaboratory