Javid - wonderful to see you showing development and concentrating on the game engine not the graphics. As an old school amateur programmer brought up on a 32k BBC micro and later learned C and now python its a breath of fresh air to see someone actually understands and explains the physics and not just the flashy animation. Oh, love the great sarcastic British humour too.
I'm here to finish my C++ assignment. The teacher asked us to code a game ourselves. It's not easy since he didn't teach us anything about making a game. Therefore, your video is of great help to me, thx so much.
When you understand why languages don't come with graphics builtins, then you will better understand how the systems you are programming work and are organized.
These are awesome tutorials. Many code instructions on RUclips rush through the main details and they make it impossible for beginners to figure things out. I like that I can just plug things in and switch up the parameters to see how the fundamentals work. Thanks so much.
Apart from Eve Online I hate games, but learning C++ now for scientific computing w/a MATLAB background, these projects really teach dynamic ideals better than stale apps. For any future viewers, learn C or C++ before MATLAB or Python.
Velocity should be positive and gravity negative. From a young age I have always dreamed of being a flappy bird escaping to the heavens. Now with this video I am finally able to do it.
Actually, I think he has used UE (unreal engine) before and there that's normal. I like it too! Especially when you changing the types of variables. But why does he use n for int instead of i?
Hmm... Lynx doesn't have a float variable type, but it does have a 102 pixel high screen (a small number) and some fairly large integers if the calculations are few. Someone did have a go at Flappy Bird for it, and it's kind of there. I must take note... I like the game in small doses when it's right. Like all games :D
cool replica! though I do notice your flappy game is exceedingly difficult... it's hard passing through the pipes! i believe the flap escalation is higher than the gap between the pipes, making this harder than the original game!
Hey javidx dude, I'm really enjoying your videos, but I'm wondering if you'll ever write a port of your game engine to run in a Linux terminal? Relying on Windows.h means I can't join in :(
Hi Steven, if I got a great British pound every time someone mentioned the L word. Lol, I'm going to investigate Linux but I don't think I could do much better than those that have already tried. Never say never though! Thanks for the support.
Flappy bird can flap before having a negative velocity. He can flap again and again. I think that's how it worked in the original game. Btw flappy bird isnt a rubbish its a masterpiece.
I could, but it might not be as interesting as you would hope - Firstly, no matter which game I choose, it will be the wrong one! and Secondly, hacks are quite specific to individual games. That said, it might be interesting to do a video about memory analysis and interception in general, so i'll add it to the list.
Dear Mr. Javidx9, on the part if( fBirdAcceleration >= fGravity ). Why did you not just let fBirdAcceleration = fGravity at the first place? Sorry for my bad English.
The acceleration of the bird changes. It needs to move both up and down. The line you highlight is to set a maximum descent rate, which is a gameplay feature to stop the descent from becoming so fast the player cant actually play.
Again its a gameplay tuning factor. Changing this constant affects how the game plays, and needs tuning until it "feels" how you want the player experience to be.
@@javidx9 I got it. Thank you Mr Javidx9. I'm trying to make a clone flappy bird. First, I used very simple physics for my bird and it doesn't work well. So that's why your video is really helpful. Anyway, I just read your code again, I realized my first question was dumb @@
Hi, i know im late on the vid but when i try to run the project it says « Cannot open include file: ‘olcConsoleGameEngine.h ‘ : no such file or directory». Thats what it says. Idk what to do im a beginnee
Why?! T_T this literally hurts more than death. Now whenever I'm binging (weird kid I know) this playlist Ill have to encounter this devil of a video idea. I'll drop a like for making this and making us suffer.
Hi Jonas, Ive deliberately avoided doing complete beginner videos, as there are plenty of good resources. However learning to code via RUclips is not ideal, I really recommend finding a book that feels right for you.
Hi Sivavidhya, if GEANY is capable of compiling modern C++ code in a windows environment then I see no reason it should not work - I'm not familiar with the tool I'm afraid.
Hey im trying to use your sprite editor to implement my own bird sprite for this game but the editor doesnt seem to be able to save sprites i keep pressing on f10 but nothing is being saved is there a simple solution for this?
how do u debugge it as soon as i debug i get this ERROR: Screen Height / Font Height Too Big The operation completed successfully. debugged on visual studio code debugger
Well its telling you what the problem is. You are trying to create a console that is too big for your display. Try halving the fontw and fonth values in construct console function.
hei javidx dude, i'm really enjoy video have you made and that was simply explanation, but i have a request to next video of Code-it-yourself is Saint venant equation, something to visualized motion of water, thanks :))
Hi Rizal, thanks for the suggestion! I don't think it'll be the next video, but I think a couple of fluid approximation algorithms would make for good videos.
I am new to programming, i know some basics but i hope someone can help me with this, as i look at the source code, i notice that there are a whole "olcConsoleGameEngine" written beforehand, have i to read this whole header file in order to be able to track with the rest of the code, secondly can we really progress if everything almost written by someone else?
Thanks Steve. I'd love to say it's a positive example of mental discipline, finishing a project you don't like against the odds, and that it's good for you to do this from time to time. But in reality I wanted a code-it-yourself video less than 20 minutes that I could inject some wry humour into, flappy bird fit the bill! 😁
Javid - wonderful to see you showing development and concentrating on the game engine not the graphics. As an old school amateur programmer brought up on a 32k BBC micro and later learned C and now python its a breath of fresh air to see someone actually understands and explains the physics and not just the flashy animation.
Oh, love the great sarcastic British humour too.
lol, I loved my BBC Micro - I think it should be compulsory for all programmers!
My favorite part are his negative comments of the game😂
aka the entire video
I'm here to finish my C++ assignment. The teacher asked us to code a game ourselves. It's not easy since he didn't teach us anything about making a game. Therefore, your video is of great help to me, thx so much.
When you refuse to learn a graphics library
😂😂
I Still don't understand why usefull commands must be in libraryes...well I do understand but a language should come with some basic graphics at least
@@Thebasicmaker First time?
@@mustnz998 i did study C++ just for a few days then went back to B.A.S.I.C!
When you understand why languages don't come with graphics builtins, then you will better understand how the systems you are programming work and are organized.
These are awesome tutorials. Many code instructions on RUclips rush through the main details and they make it impossible for beginners to figure things out. I like that I can just plug things in and switch up the parameters to see how the fundamentals work. Thanks so much.
😂 when he says "should you wish to subject yourself to such a miserable form of entertainment"
This is the first game i made in C++. Thanks man for these tutorials. My c++ journey is off to a good start, or at least I hope so.
Hi Anand, no problem, Good luck with your journey - just take it at a pace that's right for you, and it will work out fine!
how is your c++ nowadays? :)
@ what happened
@@crusial1281 i gave up
@ wdym was it a project u wanted to make?
i have been looking for this for a long time ,thanks man u rock
No problem Dark Energy, Cheers! (but flappy bird, really? just kidding :D)
Apart from Eve Online I hate games, but learning C++ now for scientific computing w/a MATLAB background, these projects really teach dynamic ideals better than stale apps. For any future viewers, learn C or C++ before MATLAB or Python.
after seeing this I'd like to code it myself. thx~
Nice one, good luck!
Someone with an 80x48 display would probably feel the same way. What did they do to deserve this punishment? :D
Velocity should be positive and gravity negative. From a young age I have always dreamed of being a flappy bird escaping to the heavens. Now with this video I am finally able to do it.
Don't forget in computer game world's the y axis is inverted!
Your way of naming variables like f before float ones is really good..
Actually, I think he has used UE (unreal engine) before and there that's normal. I like it too! Especially when you changing the types of variables. But why does he use n for int instead of i?
@@diveinsidetech every book i read about this language uses n for integers instead of i.
Hmm... Lynx doesn't have a float variable type, but it does have a 102 pixel high screen (a small number) and some fairly large integers if the calculations are few. Someone did have a go at Flappy Bird for it, and it's kind of there. I must take note... I like the game in small doses when it's right. Like all games :D
I was searching for the song ”The Bird Code” by VOITH and found this 👍 🦅
cool replica! though I do notice your flappy game is exceedingly difficult... it's hard passing through the pipes!
i believe the flap escalation is higher than the gap between the pipes, making this harder than the original game!
Hey javidx dude, I'm really enjoying your videos, but I'm wondering if you'll ever write a port of your game engine to run in a Linux terminal? Relying on Windows.h means I can't join in :(
Hi Steven, if I got a great British pound every time someone mentioned the L word. Lol, I'm going to investigate Linux but I don't think I could do much better than those that have already tried. Never say never though! Thanks for the support.
You can use ANSI escape characters to set the mouse position, background colors, and get a lot of data.
So you may want to look into that.
Can you show how to implement levels for a game with OLC with a menu?
Hi NexGenSlayer, That's an interesting idea. Yes. I will think of something.
Flappy bird can flap before having a negative velocity. He can flap again and again. I think that's how it worked in the original game. Btw flappy bird isnt a rubbish its a masterpiece.
Windows commnd prompt...you mean ms.dos?
Love Your Videos, Dude!.
Cheers Xiao!
It doesnt work, It says no file directory
Im interested in learning python, well, coding in general and this is already so exciting!! AHHHHHH!!!
could you do a video about hack in games? ive always found it interesting.
I could, but it might not be as interesting as you would hope - Firstly, no matter which game I choose, it will be the wrong one! and Secondly, hacks are quite specific to individual games. That said, it might be interesting to do a video about memory analysis and interception in general, so i'll add it to the list.
Dear Mr. Javidx9, on the part if( fBirdAcceleration >= fGravity ). Why did you not just let fBirdAcceleration = fGravity at the first place? Sorry for my bad English.
The acceleration of the bird changes. It needs to move both up and down. The line you highlight is to set a maximum descent rate, which is a gameplay feature to stop the descent from becoming so fast the player cant actually play.
@@javidx9 Thank you Mr javidx9. One more question that why did fBirdVelocity = -fGravity / 4.0f? I mean why is 4.0f?
Again its a gameplay tuning factor. Changing this constant affects how the game plays, and needs tuning until it "feels" how you want the player experience to be.
@@javidx9 I got it. Thank you Mr Javidx9. I'm trying to make a clone flappy bird. First, I used very simple physics for my bird and it doesn't work well. So that's why your video is really helpful. Anyway, I just read your code again, I realized my first question was dumb @@
I have wirtten it. But there is a problem that the map does not re-upload. After you pass 3 obstacles, the game crashes. Any solutions to this?
@javidx9 how to enable unicode for compiler if you are not using VS:( . Please answer!
Did you get any solution ? I am using MingW g++ compailer.
@@jerinmathew995 No I tried a lot but VScode is the only way we can do it :/
Define UNICODE as part of your compile command...
where the heck is the previous code from??
Do you have any videos on Turbo C++? ASCII fps? Thanks.
2 videos on ASCII FPS yes, none on Turbo C++, must confess, didn't realise it was still going
Hi, i know im late on the vid but when i try to run the project it says « Cannot open include file: ‘olcConsoleGameEngine.h ‘ : no such file or directory». Thats what it says. Idk what to do im a beginnee
Hi William, you will need to download the source file from my github. The link is in the description.
Thank you !
Hi David, How to enable Unicode for compailer. I am using mingW g++. Kindly suggest. Thanks.
"Those people were suckers."
Why?!
T_T this literally hurts more than death.
Now whenever I'm binging (weird kid I know) this playlist Ill have to encounter this devil of a video idea. I'll drop a like for making this and making us suffer.
which book you would prefer for a java developer? the original from bjorn?
great tutorial, sir. more video please :)
lol Sapto, ive made over 100 XD
sir ,in which version ,you didi it 2010,2015 ????
You lost me at 0.0 !! is there any beginner things to understand better what you do??
Hi Jonas, Ive deliberately avoided doing complete beginner videos, as there are plenty of good resources. However learning to code via RUclips is not ideal, I really recommend finding a book that feels right for you.
@@javidx9 okay thank you!
@@wahomevictor6589 thank you too!
Sir can I ask how to put leaderboard at the end of the game? Plss I need your help
Please tell me is the program the same if it is done in GEANY?
Hi Sivavidhya, if GEANY is capable of compiling modern C++ code in a windows environment then I see no reason it should not work - I'm not familiar with the tool I'm afraid.
Hey im trying to use your sprite editor to implement my own bird sprite for this game but the editor doesnt seem to be able to save sprites i keep pressing on f10 but nothing is being saved is there a simple solution for this?
Did you program in a valid filename?
First ever copy of flappybird to run at over 7k fps???
What is really sad is that flappy bird is more fun to play than many AAA games out there XD XD XD
how do u debugge it as soon as i debug i get this
ERROR: Screen Height / Font Height Too Big
The operation completed successfully.
debugged on visual studio code debugger
Well its telling you what the problem is. You are trying to create a console that is too big for your display. Try halving the fontw and fonth values in construct console function.
@@javidx9 rhanx for the quick response will check it ou
Where I can find "olcConsoleGameEngine.h" for this game?
On GitHub. He put it there, although he puts the latest version, so I don't know, but he might have some different code.
Is there any way to run this in linux ?
Sure, use the olcConsoleGameEngineSDL.h file instead.
hei javidx dude, i'm really enjoy video have you made and that was simply explanation, but i have a request to next video of Code-it-yourself is Saint venant equation, something to visualized motion of water, thanks :))
Hi Rizal, thanks for the suggestion! I don't think it'll be the next video, but I think a couple of fluid approximation algorithms would make for good videos.
How do i download olcConsoleGameEngine.h?
Do you understand how?
I am new to programming, i know some basics but i hope someone can help me with this, as i look at the source code, i notice that there are a whole "olcConsoleGameEngine" written beforehand, have i to read this whole header file in order to be able to track with the rest of the code, secondly can we really progress if everything almost written by someone else?
99% of programming is using things that already exist. No you don't need to read the header before using it.
Man, you are the best
hi,what to do?
Exception thrown: write access violation.
this->m_bufScreen was 0x1110112.
You are creating a console that is too big for your display. Try halving the fontw and fonth values in construct console function.
@@javidx9 thank you
I doubt you can bring down a sat by restarting its software. They hover in orbit...
can you program in a noclip cheatcode.
How Can this work on linux
I am using mono develop and every time I had the code put in it said error
Is your compiler up to date? Does it support C++14 and winapi fully?
Sir can we do this program in code block software ??? Pls reply sir
yes
how do I use the engine, there is no file to download or anything
Link in video description. All source on github. It's a single header file you just download and include in your project.
Sir how to include or where to include in out project
how its made :Flappy Bird
lol I love that show!
Me too.
You almost sound like that narrator...
btw... *awesome* videos man
And that ladies and gents is why ill become an artist and not a programmer
Hello guys , i am a newby, i copied and pasted the code, but it gave me the error: 6 34 [Error] olcConsoleGameEngine.h: No such file or directory.
Do you understand how?
Another great video. However, I'm slightly perplexed as to why you'd go out of your way to write a game that you really don't like :)
Thanks Steve. I'd love to say it's a positive example of mental discipline, finishing a project you don't like against the odds, and that it's good for you to do this from time to time. But in reality I wanted a code-it-yourself video less than 20 minutes that I could inject some wry humour into, flappy bird fit the bill! 😁
I just knock the code into my vs, but don't know most of them, lol, but no matter how, thank you.
Sir ,can you please provide whole program in one picture please???
Download the source from the description
Sir can you please tell me which software you have used for coding this program??any other software can we use???
Its visual studio, free, from microsoft
Code is c++ right sir??
It is yes
I have this unicode issue:/
plz reply 2015 or 2010??
2017
Nice
Hai.. can you give me the script of this game?
Link is in the description
I don't know
I want to code so bad but have a Windows vista
Is it real Or what
*HELLO*
_l learn a lot from your video_
I m going to write on class behave same sfml windows and methods draw and display .
Thanks.
it said that there were build errors?
So, it was fun learning coding, I have to retire now, this shit is not for me, see you guys
how do i build it it says error
Hi Crazyvides, You'll have to offer more than that if you need help!
i don't wanna know how to code flappy bird, i wanna know how to code something like zelda 2
XD Then why are you watching this?
@@javidx9 because you're very educational, and also i wanted to make a request. could you do a tutorial on a full on side scrolling platformer/RPG?
Well i have a whole series on RPGs, and a popular video on side scrolling platform games so id start there 😁
How to include 'olcConsoleGameEngine.h' to project
You need to download it from his github page, then put it in the same directory as your .cpp file, after that include it in the code.
haha! 😂😂Ending👏👏
ahhhahahah 10:50
Code it yourself more like copy paste it yourself
Awww, thats nice! You want to watch me type it out character by character?
@@javidx9 I want u to code it yourself
@@javidx9 ruclips.net/video/MAlSjtxy5ak/видео.html