User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: advmath.zh - atan, acos, asin

  1. #11
    Octorok Christian's Avatar
    Join Date
    Dec 2008
    Age
    34
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    739
    Level
    9
    vBActivity - Bars
    Lv. Percent
    56.1%
    don't we can do that also though? put all scripts in a folder in zelda classic? && use:

    import "std zh"
    import "math.zh"
    import "ffc.z"
    import "item.z"
    import "global.z"
    ?

    or am I going off-topic here? and wow mike! these are awesome! your a genious mister. very well done.

  2. #12
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,141
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.29%

    Re: advmath.zh - atan, acos, asin

    "import" means "take the contents of the file referenced, and stick it right here, pretending it's the same file". A good example of why you would do this with something other than std.zh (or advmath.zh) is:

    Code:
    //So I don't have to hit Import every time I change my script file:
    import "thescriptfile.z"
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  3. #13
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,141
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.29%

    Re: advmath.zh - atan, acos, asin

    I've updated the header a bit, to include a bug-fixed version of findAngle. Here's a copy of the function:

    Code:
    float findAngle(float x1, float y1, float x2, float y2) {
    	
    	float ret;
    	
    	float dx = x2 - x1;
    	float dy = y2 - y1;
    	
    	ret = ArcTan(dy, dx);
    
    	return PI / 2 - ret;
    }
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social