- 8
- 7 568
ProjectMarzDev
Приєднався 14 гру 2022
Lets Learn C++ Together
How to setup SDL2 - WITH SDL IMAGE Updated 2024 - visual studio code
today i will show u guys how to set up sdl2 with sdl image
Переглядів: 3 112
Відео
Hold Jump Key To Jump Higher Like Mario (Raylib - Unity - Any Programming Language) - Tutorial
Переглядів 2127 місяців тому
i will shpow you how to make a cool mario like jump!
Draw And Animate A Sprite Sheet With Special Modifications Using Raylib C++ || Last Part
Переглядів 400Рік тому
in this video we will go over DrawTexturePro() and how we can animate a character using this draw function
How To Draw And Animate A Sprite Using Raylib C++ || Part Three
Переглядів 1,2 тис.Рік тому
we will use a new function called DrawTextureRec() which allows us to animate a character using a sprite sheet
How To Draw A Sprite Using Raylib C++ || Part 2
Переглядів 282Рік тому
we will learn about a new draw function that allows us to scale and rotate an image / texture
How To Draw A Texture Using Raylib C++ || Part One
Переглядів 1,7 тис.Рік тому
we will use raylibs simple texture drawing function called DrawTexture()
Patrolling Enemy Unity2D || Learn Raycasting
Переглядів 67Рік тому
learn how to implement a patrolling enemy using raycasting, source code in the comments
How to update path for SDL2_Image?
Life savior, god bless you thanks a lot
did you code the Makefile yourself?
@@BBTMS no im actually using a template, but i have been wanting to make one myself
@ProjectMarzDev Can you show the template you used? Is it on GitHub? I was using a template but it built in all this other stuff I don't think I needed and it took long to rebuild each time so I went back to typing the whole thing on cmd
Can you please tell me how to fix the "make" command issue !!
But the voice is a little bit small
Thanks for the tutorial🤩It's great
You also watch bro code? My man
"we're not gonna load this whole sprite sheet because then it'll be ugly as f*ck"... bro your a ganster😂
What does your src folder look like? I've made separate directories for SDL2 and SDL2_image, but my compiler can't find them, for some reason.
Never mind, I figured it out; because I created two separate directories inside of the lib folder, I needed to expand my -L statement. Thanks for the video by the way, you're right, this stuff is not easy to find...
Good explanation, I know that this will help somebody, unfortunately didn't worked for me. I was looking to run a code that makes a graph from a ecuation, and SDL2 looked like a good option for libraries, but I just couln't:(. But you're a great person and you look like you know what are you doin', so, keep it that way, I hope the best for you
pls help fix this PS G:\Nur's folder\coding\c++\SDL2-Development> make g++ -Isrc/Include -lsrc/lib -o main main.cpp -lmingw32 -lSDL2main -lSDL2 C:/Program Files/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsrc/lib C:/Program Files/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2main C:/Program Files/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2 collect2.exe: error: ld returned 1 exit status make: *** [Makefile:2: all] Error 1
I am blessing you, you are a truly great man
btw guys if the make file doesn’t work u might have to install make, and make sure u have mingw installed! :D
MAKE SURE TO ADD THE FIN AND JAKE BMP IMAGE FOR SDL FIRST SETUP AND THE JPEG IMAGE FOR THE IMAGE SETUP PART GO AHEAD AND COPY THE CODE FOR THE MAIN.CPP AND THE MAKE FILE FOR BOTH VERSIONS DISCLAMER -- THESE ARE THE FILES YOULL NEED TO TEST THE SDL2 SETUP github.com/ProjectMarzDev/SDl2-SETUP-FILES DISCLAMER -- THESE ARE THE FILES YOUL NEED AFTER DOING THE SDL IMAGE SETUP github.com/ProjectMarzDev/SDL2-IMAGE-SETUP
wow you are making everything in my favourite library
Can i find you github repository?
lol like if my whole project?
@@ProjectMarzDev yes
@@Kosmo2137 lol currently no but I will! Upload it if u want!
@@ProjectMarzDev it will really help me. thanks
@@Kosmo2137lol alright ill get it uploaded tomorrow! my code isn’t the best tho lol, wut we’re u trying to learn from it!
I think you did a great job explaining this. Thank you.
this will be helpfull in the future thx ^^
sorry guys i just realized a little problem if u keep spamming jump he will keep jumping until the timer is off, so to fix that just do when the key is up disable canBigJump make it false
This is the explanation that I needed. Sometimes the raylib documentation doesn't explain things as it should. I will try to make it better by contribution, I guess...
Can you show how to ground/background and movement to sprite like you did in your game ?
how so? do u want to know how i put the background sprite and the character movement?
@@ProjectMarzDev yes please
i beg you m8 give back tutorial where you showed how to anime sprites
they’re up again! :)
Bro pls give back ur sprite tutorials, they are pure gold for me pls.
i hope to see part 4 and many more videos from you.
Thank you so much. My sprite wouldn't load. I didnt realize I placed the LoadTexture function before InitWindow.
that also happened to me when i first started out lol!
im using golang but this video was still so helpful thank you bro 🙏🙏🙏💯
thx
I’ve added some gui buttons for the character select, now I just need to add the tasks and quest NPCs and it’ll be finished lol
I’m a Projekt Manager if you want I can help you finance and grow your game
Cool game dude Is it a fighting game or something? I wonder why the player is buying people
nah he’s not actually buying people it’s just that he’s broke and needs an amount of money to date a girl, so he’ll have to do tasks and stuff to make money, but I made this game as a joke lol I don’t want people to get offended by it
@@ProjectMarzDev nah dawg thats funny dw about it
he's just like me fr fr.
😭😭
Cool
awesome mate! keep the great job! i tried once to make a mobile game but stopped due to no time in my routine XD
no one want to walk with bro 💀💀
the ladies scared of him😭, cuz he broke
once again if you want to download scarfy.png go to -> tinyurl.com/MarzDev
Download Scarfy PNG at -> tinyurl.com/MarzDev
Good video man, I like the explanations, keep doing this tutorials
heres the code, using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyMovement : MonoBehaviour { public Transform ray; public float groundDistance; private Rigidbody2D rb; public LayerMask ground; public float moveSpeed; private void Start() { rb = GetComponent<Rigidbody2D>(); } private void Update() { rb.velocity = new Vector2(moveSpeed, rb.velocity.y); if(!isGrounded()) { Flip(); moveSpeed *= -1; } } private void Flip() { transform.Rotate(0,180,0); } private bool isGrounded() { return Physics2D.Raycast(ray.position, Vector2.down, groundDistance, ground); } private void OnDrawGizmos() { Gizmos.DrawLine(ray.position, new Vector2(ray.position.x, ray.position.y - groundDistance)); } }
sorry for the stuttering and long pauses lol, also im sorry for having the vs code text so small if you guys want ill make another video and zoom in better into the code!