Writing the Input Buffer - Indie GameDev - C++

  Рет қаралды 3,187

Roundbeargames

Roundbeargames

Күн бұрын

Пікірлер: 15
@MTPadDev
@MTPadDev 11 ай бұрын
Cool stuff Senpai! Keep it up ❤
@Roundbeargames
@Roundbeargames 11 ай бұрын
thanks. will continue!
@imjust_a
@imjust_a 11 ай бұрын
Thanks for sharing this! It's neat seeing how different programmers handle implementing it! I've thought about making a fighting game (nothing too serious, just something for fun), but the input buffer and the process of using that buffer to activate abilities has been tricky for me to wrap my head around!
@Roundbeargames
@Roundbeargames 11 ай бұрын
Thank you. Its really nothing but stacks and queues. I hope you get started on making a fighting game too in the future
@apollolux
@apollolux 11 ай бұрын
Groovy implementation! Does your setup hardcode timing thresholds for things like pressing the next direction/button in a sequence after release or is that also offloaded to JSON or other similar config files? I haven't done this for fighting games specifically but in the past I have implemented input managers into games and some webapps and would usually add the timing leniency threshold between button presses for particular button sequences as an extra parameter in the Button objects passed to the input command sequences. I've personally found 200-500 ms to be more than generous enough for directions and 150-300 ms to be enough for non-directional action buttons, but you might use different timings based on your testing results.
@Roundbeargames
@Roundbeargames 11 ай бұрын
thanks. right now every input (directional or not) stays in the buffer for 60 frames (fixed updates) which is 1 full second. that is a random number i hardcoded for now. for this case i don't see the point in putting the one variable into json because i don't see it being changed often. i'm thinking half second or quarter second would be enough which is about the same as 200~500 ms.
@apollolux
@apollolux 11 ай бұрын
@@Roundbeargames Fair point on it not being changed often enough for you. If the buffer gets processed faster or if it were a different kind of game then that number might get more important, which I only even realized because years ago I was one of the peeps who helped the Stepmania team troubleshoot version 5 working properly on Linux and found out first-hand that input processing for a rhythm game (especially when having to troubleshoot synchronizing animation, audio, and video playback) is a completely different beast from input in other kinds of games.
@kawantrindade2459
@kawantrindade2459 11 ай бұрын
any chance of decoupling the figther_p1 allowing for example 2 enemies at the same time or maybe an enemy pool (Robot IA) idk.
@Roundbeargames
@Roundbeargames 11 ай бұрын
I havent thought of more than 2 players until now but yes its possible
@kawantrindade2459
@kawantrindade2459 11 ай бұрын
why json and not lua bindings? btw good job. im learning using this project
@Roundbeargames
@Roundbeargames 11 ай бұрын
thanks. i'm not a huge fan of lua. but you can certainly get the same results through lua if you choose to.
@aleksandrk.5818
@aleksandrk.5818 11 ай бұрын
Hi, friend! What is hurtbox? DID YOU write it on cpp yourself?
@Roundbeargames
@Roundbeargames 11 ай бұрын
hi. hurtbox is the box that you hit to damage your opponent. yes i wrote it.
@aleksandrk.5818
@aleksandrk.5818 11 ай бұрын
Cool! I’m studying .cpp myself and now I also want to try to write my own engine. I saw you and your video and liked it! I will watch you and learn)))@@Roundbeargames
@Roundbeargames
@Roundbeargames 11 ай бұрын
good luck man, tho i'd generally advice against starting from scratch. i'm using olcpixelgameengine for this project.
Writing Jump Physics - Indie GameDev - C++
4:27
Roundbeargames
Рет қаралды 637
I programmed a PlayStation 1 game engine
11:52
Bandwidth
Рет қаралды 95 М.
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 40 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
Rewriting the HurtBox Editor - Indie GameDev C++
3:45
Roundbeargames
Рет қаралды 633
Modular Upgrades Made Easy Using the Strategy Pattern
6:41
Bitlytic
Рет қаралды 83 М.
I made a Fighting Game Frame Data System for my Indie Game!
31:42
Inbound Shovel
Рет қаралды 51 М.
Retargeting Humanoid Animations in Unity
11:01
Kevin Iglesias
Рет қаралды 5 М.
5 Tips for Making Your Game Feel Good
7:48
O. and Co. Games
Рет қаралды 30 М.
Factorio teaches you software engineering, seriously.
21:27
Tony Zhu
Рет қаралды 1,9 МЛН
Hadouken Input Buffer - Fighting Game Devlog #2 - C++
9:03
Roundbeargames
Рет қаралды 4 М.
How input buffering works
20:25
Ben Eater
Рет қаралды 194 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 357 М.