Just yesterday I was looking all over RUclips for a series like this, I'm just getting onto my second year at university for my Games development course and this is perfect for me and will really help me out :) Please don't stop this series, its amazing
Thanks everyone, i dont know why i didnt get any notifications from the other 2 replies. I did do C++ for a while (about a year), but recently switched to C# and began developing games in the Unity Engine.
Looks great! Exactly what I was looking for. Just a basic framework to get started. More importantly to see it actually used. So many sites just put together an engine and sign off. I am looking forward to the next step!
No, it sounded like "sue-do". "Do" as in the verb do. And my dictionary suggested only the previously stated pronounciation of the word is correct. On the other hand, I understand that different accents can heavily vary a pronounciation of a word.
"sue-do" is because of his accent. For example, Hopson pronounces "at all" differently as well. That's not bad, that's just another accent. Still a British accent, but not standard.
Hey Hopson, I actually wanted to say that I really appreciate and enjoy your videos and I hope that you can continue to make them and I look forward to your future videos.
Writing a framework seems really interesting to me. I'm not really interested in making the next big game, I'm just interested in how to make games. I have the basics of C down, and I'm playing around with SDL, but I'll probably learn c++ at some point because I just love the idea of abstracting things away into classes.
Your voice is pretty sweet, I like how you explain things so its fairly obvious you are learning and not just copying something else, something a few other videos lack.
Nice project, useful for creating simple games. I like that the source code is written in modern cpp. It's also very easy to read as it's parts are well separated. Good job.
I love your vids. I am a developer myself, mostly in Java, but that doesn't stop me from learning a lot of various things from your videos. I will have to try out SFML for myself, I'm pretty interested what I can do (yes I know SFML is for C++ but I think it's about the time that I learn another language) PS. I like your accent. It really fits this type of video.
Maybe you could implement Entity component system? it is a very flexible way to manage your game entities because it gets rid of inheritance based hierarchy and makes all game objects(entities) made out of components. This is a valuable topic that you might want to look at in the future ;)
Seriously this is great inspiration, I was making all this on my own without much available documentation for a person with no prior CPP experience, having this framework as a reference will be very helpful thanks. It's under MIT license so this framework could be modified and used by anyone to build a project and release it? Is their some restriction that I missed?
Hey, what's the difference between handleInput() and handleEvent()? Clearly the second proccess events like mouse click or pressing button but what does the first one?
First of all great video and thank you for providing your code, but I was wondering if you could comment your code more so it can be easier to read your code. Thank you!
I am working on a game, which lets the user allow to load a binary file(created by a python script out of a text-file:D) via commandline-args which includes textures and other resources, code and worlddata all in one.
Yo! I'm using SFML for a school project to make a 2D cannon game in C++. If I were to use this game framework, what file would I actually code in? I'm pretty new to C++ so I don't really understand where I would begin after implementing the framework.
but why not use: using namespace std; ?? And if you want to randomly generate numbers, why not : #include srand(time(NULL)); variable.rand%100+100; wouldn't that be just easier?
For rand see this channel9.msdn.com/Events/GoingNative/2013/rand-Considered-Harmful For using namespace std see stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
Hello, I am learning to code and am at the very early stages. Could you tell me how you learned to code so well? What programs you used to help you learn, things like that. thx
One thing I don't get is the difference between update and fixed update, or why you need the latter. If you cover it in another video or comment i would be glad if you point me to it. Anyway, i love all your videos I have seen so far
A question about the fixed update the way it is implemented on your github: Isn't the fixedUpdate function bottlenecking the game loop right now? (resulting in lower fps) ... Also: could this be solved by separating the update and rendering into different threads?
Basically, rendering should be called in the normal update function while things like physics should be called in the fixed update function. Since the system never pauses to run the fixed update function it doesn't slow anything down.
Please help me to load an jpg to opengl as texture using sfml/graphics. Opengl works but without any image is a tragedy. Codeblocks 17.12 under windows 10.
I'm having an issue with my buttons, if I try to use the "getGlobalBounds" function, it works once and can't click. If I use a while loop, it crashes. What do I do?
No, CB is an IDE Doing the && thing is part of modern C++, and it is called an "r-value reference" It's kinda a complex topic, but in the video, I am using it to pass arguments into a function and construct an object in place inside of an std::vector which is more efficient than copying the arguments in.
MinGW compiler comes with CodeBlocks, which is a port of GCC to Window :) Just make sure you download the one with "mingw-setup" in the title if you plan on using code blocks
In the pseudorandom number generator used, what is the resolution of the std::time value given to the mersenne twister? Seconds? Nanoseconds? If multiple rng engines are created within the same smallest unit of time will they output the same results?
std::time is usually the number of seconds it has been since January 1st, 1970 I'm not really expert on RNG seeds, and so I cannot answer your second question.
If they're using the same seed and algorithm, yes, they'll all produce the same results. That's how games such as The Binding of Isaac are able to provide (pseudo-)randomly generated levels that can be replayed by entering the initial seed.
+Hopson I had just watched your Empire Cellular Automata video and was wondering if this affects it. It would be weird if all the values generated within the same second were the same. Maybe some very specific biases would crop up during the simulation because of that
The seconds won't be different if more than one std::time is created within the same second. But nevermind any of that. I saw the source linked in the cellular automata video and realized you used a static variable for the generator so it is indeed instanced only once. It won't matter too in this game engine as long as people who use it don't create more than one Random instance.
Hey i want to ask something how did u learn coding c++ or something books or something if it book can you advice some book for coding beginning level :D
Sorry :P Basically, I learned basics from a book (as mentioned in the Q&A vid), and from there I created my own projects and slowly learned concepts over time :)
If this is a joke good job. If its not.... 1) you have nothing to add to the project. 2) He will never team with you. 3) He has better things to do than make a minecraft clone AGAIN(he did it already).
not quite. A majority of lower-tier mobile games (which make up the majority of mobile games) are written in Java for example. It's just that Java isn't quite suited for computation heavy applications, such as games, because it wasn't designed with those in mind.
Watch out Unity and Unreal Engine... There's a new challenger in town!
exactly
in 2020 LowBudgetHopgine will be the next big thing
Hopson you should do the time travel stuff after completing your engine :D
Crysis 4, bought to you by Hopgine
Naveication what does he use to code?
@@genie193 the LowBudgetHopgin has been changed to the mouse game engine
Just yesterday I was looking all over RUclips for a series like this, I'm just getting onto my second year at university for my Games development course and this is perfect for me and will really help me out :)
Please don't stop this series, its amazing
lmao this video ends before it begins :S
Anyways, for those wanting Minecraft or something, check the pinned comment on the "One Week Challenge" video
I have an issue with this on github ... ^^
Love how simple everything looks when you explain it! Subscribed.
This channel inspired me to learn C++. Thank you for the inspiration and keep up the good work!
One hope youre still trying to learn it :D
Still doin it?
Thanks everyone, i dont know why i didnt get any notifications from the other 2 replies. I did do C++ for a while (about a year), but recently switched to C# and began developing games in the Unity Engine.
man, you type fast
ikr, it almost seems fast-forwarded
kebien6020 was just about to make that comment xD
Looks great! Exactly what I was looking for. Just a basic framework to get started. More importantly to see it actually used. So many sites just put together an engine and sign off. I am looking forward to the next step!
I believe "pseudo" is pronounced "sue-dough".
Meh, pot-ay-toe, pot-arr-toe
Sorry, I can't help correcting other people. It's like an addiction. :(
Isn't that just what he said though?
No, it sounded like "sue-do". "Do" as in the verb do. And my dictionary suggested only the previously stated pronounciation of the word is correct. On the other hand, I understand that different accents can heavily vary a pronounciation of a word.
"sue-do" is because of his accent. For example, Hopson pronounces "at all" differently as well. That's not bad, that's just another accent. Still a British accent, but not standard.
Hey Hopson, I actually wanted to say that I really appreciate and enjoy your videos and I hope that you can continue to make them and I look forward to your future videos.
Writing a framework seems really interesting to me. I'm not really interested in making the next big game, I'm just interested in how to make games.
I have the basics of C down, and I'm playing around with SDL, but I'll probably learn c++ at some point because I just love the idea of abstracting things away into classes.
Your voice is pretty sweet, I like how you explain things so its fairly obvious you are learning and not just copying something else, something a few other videos lack.
Nice project, useful for creating simple games. I like that the source code is written in modern cpp. It's also very easy to read as it's parts are well separated. Good job.
The background music is a nostalgia trip XD Love the videos!
whats the music plz?
I love your vids. I am a developer myself, mostly in Java, but that doesn't stop me from learning a lot of various things from your videos. I will have to try out SFML for myself, I'm pretty interested what I can do (yes I know SFML is for C++ but I think it's about the time that I learn another language)
PS. I like your accent. It really fits this type of video.
The scary thing is this is real time
The video that got me back in game developmenta after years of inactivity. Thanks you, dude. :)
Maybe you could implement Entity component system? it is a very flexible way to manage your game entities because it gets rid of inheritance based hierarchy and makes all game objects(entities) made out of components. This is a valuable topic that you might want to look at in the future ;)
Really instructive
Thanks for the high quality videos! This is helping me learn a little C++
You sound a lot more lively in this video!It sounds as if you had stagefright in all your previous videos.
i made a game engine in java. it was inspired by your video :D
Awesome! Saw you made a video about it too, that was fun to watch :)
I'm looking forward to this series
Seriously this is great inspiration, I was making all this on my own without much available documentation for a person with no prior CPP experience, having this framework as a reference will be very helpful thanks.
It's under MIT license so this framework could be modified and used by anyone to build a project and release it? Is their some restriction that I missed?
Great job and good explaination as always !
Thanks for the video and the source code!
you should check-out "dear-imgui" its a fantastic c++ lib for drawing guis onto all sorts of stuff
Not really nice to implement in sfml (he uses sfml) but there is tgui for sfml which es equally awesome ;)
codeblock is indeed a good ide
Hey, what's the difference between handleInput() and handleEvent()? Clearly the second proccess events like mouse click or pressing button but what does the first one?
First of all great video and thank you for providing your code, but I was wondering if you could comment your code more so it can be easier to read your code. Thank you!
I am working on a game, which lets the user allow to load a binary file(created by a python script out of a text-file:D) via commandline-args which includes textures and other resources, code and worlddata all in one.
Thank you! Really useful
for Random numbers generation on linux, isn't better the /dev/urandom ?
I'm not on linux, plus it is better to used standardised libraries rather than platform specific ones.
Love your work keep it up Bud
solid video
Yo! I'm using SFML for a school project to make a 2D cannon game in C++. If I were to use this game framework, what file would I actually code in? I'm pretty new to C++ so I don't really understand where I would begin after implementing the framework.
but why not use:
using namespace std; ??
And if you want to randomly generate numbers, why not :
#include
srand(time(NULL));
variable.rand%100+100;
wouldn't that be just easier?
For rand see this channel9.msdn.com/Events/GoingNative/2013/rand-Considered-Harmful
For using namespace std see stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
Hello, I am learning to code and am at the very early stages. Could you tell me how you learned to code so well? What programs you used to help you learn, things like that. thx
I used a book, and the book had various programming exercises for each topic.
A good book for this (specifically for C++) is "C++ Primer 5th edition"
I'm reading that book lol.
Very good thank u
One thing I don't get is the difference between update and fixed update, or why you need the latter. If you cover it in another video or comment i would be glad if you point me to it. Anyway, i love all your videos I have seen so far
A question about the fixed update the way it is implemented on your github: Isn't the fixedUpdate function bottlenecking the game loop right now? (resulting in lower fps) ... Also: could this be solved by separating the update and rendering into different threads?
No, the frame rate is not affected by the fixed update
And yeah, that is one way, but I didn't want to do that for my "simple framework"
Basically, rendering should be called in the normal update function while things like physics should be called in the fixed update function. Since the system never pauses to run the fixed update function it doesn't slow anything down.
Because I saw the while loop around the fixed update I thought that was the case, wouldn't it be more logical to use an if statement instead?
Hopson, what books do you recommend to do what you atm?
Cheers
What about creating terraria? :D
Foka omg yes
General use computers can't create truly random numbers, of course. But quantum computers can.
Please help me to load an jpg to opengl as texture using sfml/graphics. Opengl works but without any image is a tragedy. Codeblocks 17.12 under windows 10.
I'm having an issue with my buttons, if I try to use the "getGlobalBounds" function, it works once and can't click. If I use a while loop, it crashes. What do I do?
Hey, I noticed how something said "Args&&...'.
Is the ... a Code::Blocks thing, or what?
No, CB is an IDE
Doing the && thing is part of modern C++, and it is called an "r-value reference"
It's kinda a complex topic, but in the video, I am using it to pass arguments into a function and construct an object in place inside of an std::vector which is more efficient than copying the arguments in.
Welp, I'm just gonna go back counting up one to ten...
Just use Gauss's method. sum of all natural numbers from 1 to n is simply (n(n-1))/2
Hey Hopson, what is your plan for the next game?
great vid
I know that this question maybe answered here somewhere, but are You developing on Windows? What program do You use, eclipse?
code blocks
Thank You! I tend to use VS, but it starts to annoys me more than it helps. Do You use GNU/gcc compiler?
MinGW compiler comes with CodeBlocks, which is a port of GCC to Window :)
Just make sure you download the one with "mingw-setup" in the title if you plan on using code blocks
What ide do you use to code in c++/SFML?
Can you try making a sonic game in C++/ SFML?
Just sitting here not knowing wtf he is talking about xD
Krazy__ yup.... me too
i do im a game develipor ILOVE CODING AND PLAYING HIS GAMES!!
hard to believe you're game developer*
Filip Kendeš you're a*
my apologies, thank you
How do I import this awesome framework in codeblocks with a cbp file? :( thanks!
what project manager/ aplication programming interface are you using?, i know you are using one, because of the resource tree on the left
never mind, i know its codeblocks, now that i have both sfml, and codeblocks, i just gotta find a way to tie them together
When should I start using SFML? I just finished Jumping into c++ by Alex Allain
When you are comfortable with C++ concepts such as pointers, classes and polymorphism.
Okay, thanks for the response!
Make a mario game! Something like the first (oldest) ones.
MrLion18 they might seem simple, but even the first Mario game is extremely complex to program
*Its... G O R G E O U S*
I saw you started with C#, why did you move to c++?
In the pseudorandom number generator used, what is the resolution of the std::time value given to the mersenne twister? Seconds? Nanoseconds? If multiple rng engines are created within the same smallest unit of time will they output the same results?
std::time is usually the number of seconds it has been since January 1st, 1970
I'm not really expert on RNG seeds, and so I cannot answer your second question.
If they're using the same seed and algorithm, yes, they'll all produce the same results. That's how games such as The Binding of Isaac are able to provide (pseudo-)randomly generated levels that can be replayed by entering the initial seed.
+Hopson I had just watched your Empire Cellular Automata video and was wondering if this affects it. It would be weird if all the values generated within the same second were the same. Maybe some very specific biases would crop up during the simulation because of that
It can't be the same, the seconds since Jan 1970 will always be different :P
Well, until 2038.
The seconds won't be different if more than one std::time is created within the same second.
But nevermind any of that. I saw the source linked in the cellular automata video and realized you used a static variable for the generator so it is indeed instanced only once. It won't matter too in this game engine as long as people who use it don't create more than one Random instance.
3:44 what software did you use here?
thanks a lot!
Paint.net
Hey i want to ask something how did u learn coding c++ or something books or something if it book can you advice some book for coding beginning level :D
Check my Q&A video
okey.....
Sorry :P
Basically, I learned basics from a book (as mentioned in the Q&A vid), and from there I created my own projects and slowly learned concepts over time :)
ok thanks for answer my english is not good what book you learned?
"Jumping into C++", as mentioned in the Q&A
Это чтото типа "Hello world" да ? =)
ayy lmao gg gj
Which IDE do you use to program in C++?
code blocks
Are you trying to sound cool?
TeknoSwift wtf do you mean?
i mean some people say words like "IDE" to sound cool
TeknoSwift ... okey but I dont use this word to sound cool, I just use it, cause its the correct definiton of the program, which he uses in this video
you should make mario
Have you looked into data oriented design?
My research on that topic was watching the video where Mike Acton talks about it.
Sounds like pretty interesting stuff :P
I would appreciate if you could go over the code in more detail and probably explain advanced syntax / techniques like "&&". Anyway good video
Thanks, I'll see :)
The main issue is trying to target a wider audience, and while some would find it interesting, others would be very confused :P
books are better
Not a Troll I think he means r value references
Exactly
I can understand you fast forwarding through this part as you do have an 11 video playlist that covers pretty much the same thing in great depth!
Teach us how to compile SFML projects for android :)
incompatibility
Marmori Pelaa :o NDK
Marmori Pelaa :o if you look closely in the SFML source, you'd know that it very well is available for Android
Create a version of super mario 64
Hi guys I came here for Veigar montage???????
fucking rubbish champ :)
I want to make a text RPG framework. Ideas?
The colonization of america 7u7
fromant65 ... you missed one word in my comment. "Framework". As in not an actual game, just the backbone of one.
What IDE is that?
NeonGamerLP -using namespace Code- Code::Blocks
hi
is this real time?
Plutão O Pequeno Planeta no its sped up
sudo random
Hola
420 likes lol
first!!!!
How many years of coding I need for this stuff?
It really depends on how much you commit to it. How much your willing to learn will probably be the main factor.
But I'd give it about a year.
Henrix98 The stuff in this video isn't too hard, so I'd say 5 months to a year would be enough
Yes! With your brains and my imagination we can make a new minecraft that can reveloutionize the world
Are you in sir?
If this is a joke good job. If its not....
1) you have nothing to add to the project. 2) He will never team with you. 3) He has better things to do than make a minecraft clone AGAIN(he did it already).
Can you code in Java?
a bit
why would you want Java, if you have C++?
OtakuNewb idk Java is coded differently and lots of games (like minecraft for example) are coddd in java
lot of games xDDDD
Not really... ^^'
compared to C++/C# it's a minor part of all existing games.
not quite. A majority of lower-tier mobile games (which make up the majority of mobile games) are written in Java for example.
It's just that Java isn't quite suited for computation heavy applications, such as games, because it wasn't designed with those in mind.
Create Growtopia (it's c++)
actually it is made in p++ which is what the original creator of the game uses.
Marmori Pelaa :o lol
Your time-lapse is too fast IMO. Considering that your video is only 6 minutes it wouldn't be so bad to make it longer.
Make GTA Online.
Pumpkin that would be so complicated
Hey can I be a beta tester for hopsoncraft