Results 1 to 6 of 6

Thread: basic demo fx's tutorial - part 1

  1. #1
    Join Date
    Mar 2005
    Location
    NJ
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default basic demo fx's tutorial - part 1

    http://m-spot.info/dibfxtut.txt

    I just wrote a little tutorial on request about some basic demo effects. thought I might as well post it here



    My Trade List (Not up-to-date)
    I'm a math teacher, so let's plus the bed, minus the clothes, divide the legs and multiply the joy

  2. #2
    crusher's Avatar
    crusher is offline ↑ ↑ ↓ ↓ ← → ← → B A START
    Join Date
    Jun 2002
    Posts
    15,697
    Thanks
    3
    Thanked 22 Times in 17 Posts
    EP Points
    35

    Default

    Pretty good tutorial. I'm especially thankful of the sine stuff as I'm pretty bad with trigonomitry and stuff. I'll be sure to check it out more in-depth later.

    I just have a small suggestion.
    This -> if (x>=0&&x<ScreenWidth&&y>=0&&y<ScreenHeight) looks way to cluttered...

    It should look like
    this -> ((x >= 0) && (x < ScreenWidth) && (y >= 0) && (y < ScreenHeight))

    Not only is it much easier for you to read, but also for the compiler, in some cases.
    Last edited by crusher; 4th-May-2005 at 10:42.

  3. #3
    Join Date
    Mar 2005
    Location
    NJ
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx for the suggestion, i just fixed that in the tut



    My Trade List (Not up-to-date)
    I'm a math teacher, so let's plus the bed, minus the clothes, divide the legs and multiply the joy

  4. #4
    crusher's Avatar
    crusher is offline ↑ ↑ ↓ ↓ ← → ← → B A START
    Join Date
    Jun 2002
    Posts
    15,697
    Thanks
    3
    Thanked 22 Times in 17 Posts
    EP Points
    35

    Default

    No problem.

    Remember that it's better to overuse parenthesis than using next to none. Also, try to add spaces between values, operators etc. What I mean is, don't write x*y=z but x * y = z. It's not necessary as the compiler understand both it either way but it certainly is easier to read.

  5. #5
    Join Date
    Mar 2005
    Location
    NJ
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i'm just too lazy
    yeah but readability is important when you work in teams and sharing source codes...
    actually i was trying to read some asm code i wrote 2 years ago and i was like how the fuck did i do that lol



    My Trade List (Not up-to-date)
    I'm a math teacher, so let's plus the bed, minus the clothes, divide the legs and multiply the joy

  6. #6
    crusher's Avatar
    crusher is offline ↑ ↑ ↓ ↓ ← → ← → B A START
    Join Date
    Jun 2002
    Posts
    15,697
    Thanks
    3
    Thanked 22 Times in 17 Posts
    EP Points
    35

    Default

    Heh yeah it happends. That's why I try to comment and organize my code as good as possible.

Similar Threads

  1. Need help burning xenosaga
    By hiroya in forum Everything Emulation
    Replies: 7
    Last Post: 18th-January-2005, 15:00
  2. BhgpPSX's List
    By Cyberxion in forum ROM & ISO Requests
    Replies: 346
    Last Post: 8th-November-2004, 16:27
  3. Demos, betas, trials, prototypes
    By venge55 in forum ROM & ISO Requests
    Replies: 2
    Last Post: 13th-June-2004, 22:41
  4. The Legend of Zelda TV Episodes
    By Drageuth in forum Free 4 All
    Replies: 94
    Last Post: 26th-August-2002, 18:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About Us

We are the oldest retro gaming forum on the internet. The goal of our community is the complete preservation of all retro video games. Started in 2001 as EmuParadise Forums, our community has grown over the past 18 years into one of the biggest gaming platforms on the internet.

Social