Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (20)

Sign In or Sign Up now to post a comment!
  • can you please help me. When I add in the random function thingy instead of the stick picking a random area then staying there it jumps across the screen super fast and doesnt stop.

  • Old video, however, I see someone asked "Why use enums?" You correctly replied that they are pretty (aka readability). However, there's another reason that enums or constant globals are preferred to #define symbols. Good compilers can optimize for all variables stored in memory. #defines are replaced preprocessor and so, optimizations may not be applied.

  • "If you don't assign a value to each one(enum), it will be assigned an arbitrary number"

    Actually, by default it starts with 0 for the first one and adds 1 for each following element.

  • first off, great job as always (i'm a true fan!)

    but i suggest to delve deeper into "random" numbers generation via the % operator ... there's a problem with lower bits being far from random.

  • hi (test)

  • I'm having trouble with my coordinate generation function. The first time I use it, it generates a random number. After that, the coordinates go in a diagonal line until they hit the edge of the screen and then it appears at the opposite side of the screen. What could I be doing wrong?

  • Why use enums?

    don't they take up a bit of RAM and do the same thing as #define wich uses 0 RAM?

    maybe i'm missing something :P

  • Enums are pretty. :D

    That's about it. I like making random datatypes for "Direction", "GameState", etc.

  • WOW, they take up tons of RAM on your XT computer. :P

  • Enumerations automatically initialize all the stuff they contain with an increasing value each time. So first will be one, second will be 2 and so on.

    This is usefull when you just want any old intialized value.

  • What does unsigned do?

    I haven't found anything that covers it... ):

  • Well there's a limit on what an integer can be; only so many bits can be stored in a computer, right? Normally this is -INTMAX to +INTMAX

    If it's "unsigned", that means it's positive only, so it doubles how large it can be since it doesn't have an amount for the - numbers.

  • you are not getting very many view for how awesome this is. ah well, im contributing =P

  • Enumerations aren't popular. :(

  • Good work Lusikka!

  • thanks soooo much for these tutorials!!

  • These videos are really great! You've put a lot of effort into making them! I also like how you're giving people the tools to solve things themself rather than just handing out finished game code. I'm going to make my own version -- think I'll go with SDL, might also do Alegro version and see which I prefer :)

    Thanks again.

  • Hey, could you make a tutorial on Allegro particles please please:)

  • I'll try to look into it, but I've never done "real" particle effects before. :P

  • sweet :D

    Cal said it's mostly vectors, so I should study them, still don't get it though lolol

  • re-upload much? :p

  • Sorreh, YouTube doesn't let me re-upload the same video if there's something I have to fix.

  • it's OK, we're lucky you're even uploading these :D thanks

  • Cool vid (:

  • nice

Loading...
Alert icon
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