Added: 2 years ago
From: LusikkaMage
Views: 11,028
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (39)

Sign In or Sign Up now to post a comment!
  • y'know what,i've been watching your videos,and you are the only one worth watching,i've been trying to search a video like this the whole day!!thank you!!

  • Do you have to use C++?

    Cant you use visual C# express, SDL or Allegro?

    If i'm used to C# do i have to learn C++ instead!??

  • @Ark4evah You can use C# and XNA instead

  • @CoderRach Thanks!

  • Okay, noob question lol.

    Will a need both C++, Allegro and SDL?

  • @TheExplodingPumpkin No. The tutorials are separated for that reason; Allegro and SDL will do essentially the same thing for you (that is, graphics, input, sound, etc.) so you choose one and follow either the "A" videos (for Allegro) or "B" videos (for SDL)

  • how do i slow down my animation without decreasing my frames per second?

  • @Deeharok dont worry i worked it out gosh im dumb >.<

  • @Deeharok Your function for IncrementFrames(), since your frame is a float, just increment it by a lower number; 0.05 instead of 0.1 or whatever.

  • @LusikkaMage Is it possible to use other types of image that are not BMP format?

  • @satomassao Possible and recommended. You'll want to use PNGs for your sprites.

    Same with audio, you won't want to use .wav, .ogg is probably a better idea.

  • @LusikkaMage But... how do I load a PNG format file?

    I've been trying to find a specific or more generalized image loader function, but could only find the loadBMP one (looking at the docs that comes with SDL)

  • @satomassao Check out LazyFoo dot com, he has a guide on installing SDL_Image extended library

  • what ever happened to using allegro?

  • @GT101boy The tutorial covers both Allegro and SDL. The videos like "4-A" will cover Allegro, and "4-B" cover SFML. They won't quite go in order with the playlist.

  • @LusikkaMage oh, ok, thank you!

  • wow now i know when something doesn't have a texture in valve games they appear as that pink color

  • What's an Uint32? Half year of c++ and never heard of that.

  • @Exdozolie Unsigned INTeger 32-bit

  • I'm using dev c++, and i cannont get it to compile unless i use the code SDL_LoadBMP for some reason.

  • God this is confusing :(

  • Drink some water or something... It sounds like you're struggling to get words out of your mouth.

  • LoadBMP didn't work on mine, it said that LoadBMP is undeclared, but when I used SDL_LoadBMP it did work.

  • hey does anyone have a code i could look at to get this sdl stuff i just wanna set a background image and display some other images but i cant find anycodes to look at just to get the jist of it. so if anyone has anything i could take a look at to learn from id like it very much thx : )

  • great tutorial. ;-)

  • doesn't SDL_Quit destroy the buffer (screen) ?

  • nope, it quits sdl.

  • Well yeah, obviously. Reason I thought that is cause of:

    "You may be asking yourself "why aren't we freeing the screen surface?". Don't worry. SDL_Quit() will take care of that for us. "

    Direct quote from Lazyfoo's tutorials.

  • oh, i didnt know that, lol.

    thanks hehe

  • That's what Lazyfoo said, but since LusikkaMage says you need to free it, I'm confused... I'm guessing it wouldn't hurt to free it though?

  • im always freeing all the surfaces im creating.

  • Lusikka said to free to the BUFFER, not the screen bitmap.

  • Two things... since when was the buffer a bitmap? Secondly, the Buffer IS the screen in her tutorials?

  • Now don't get into a fight you two. ^^;

  • I don't think it's possible to directly access the screen; at least I haven't seen it.

    The thing is, with LazyFoo's tutorial, he calls the surface "screen", and I call that same thing "buffer", so that might be throwing peoples off.

    It turns out, when you use the function SDL_SetVideoMode on buffer (or "screen"), it will automatically free that for us when we call SDL_Quit(), so we don't have to free it ourselves.

    My mistake for not reading thoroughly long ago. D:

  • Its okay, your still pwnage epicness =D

  • great tut , that was very easy to understand and it cleared some things up that i didnt understand , keep em comin!!!

  • Wow Lusikka.. EXCELLENT tutorials!!

  • man everyone and their brother are throwin out videos faster than I can keep up! 5*s though :)

  • Thank you :)

  • nice work 5*

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more