Computer Science Canada

[source]3 Different Music things for 3 dif places in a game

Author:  DanShadow [ Fri Jan 23, 2004 10:29 am ]
Post subject:  [source]3 Different Music things for 3 dif places in a game

Check these out, I made em, th eyre cool:
code:

var hp, maxhp : int := 30
var musik : string := "normal"

proc music
    if musik = "normal" then
        play ("zxervwanaIvhaeexsihtwmandrdnigihaz")
    elsif musik = "fight" then
        play ("6cpc+6cpc+6cpc+6cpc+6cpc+6cpc+")
    elsif musik = "cemetery" then
        play (">2fdjsqew<eijlkufjzlkaztrzeijlf")
    end if
end music

loop
    locate (1, 1)
    put "HP: ", hp, "/", maxhp
    put "Music In Condition: ", musik
    music
    hp := hp - 1
    if hp = 25 then
        musik := "fight"
    elsif hp < 20 then
        musik := "cemetery"
    end if
end loop

Author:  shorthair [ Fri Jan 23, 2004 10:44 am ]
Post subject: 

Well its alright , but what are you trying to acomplish , is HP HIT POWER ?

Author:  shorthair [ Fri Jan 23, 2004 10:46 am ]
Post subject: 

IT NEVER ENDS , im at -30 hp

Author:  DanShadow [ Fri Jan 23, 2004 10:50 am ]
Post subject: 

nah...I just used HP as a counter...it means nothing. I just thought the musik was kinda neat....sounds like one of the olden *golden* games Smile

Author:  shorthair [ Fri Jan 23, 2004 10:53 am ]
Post subject: 

I see where your goin with that , well in that perspective , its pretty cool

Author:  jonos [ Mon Jan 26, 2004 11:35 am ]
Post subject: 

does the music change for what position you're in for a game (like in zelda ocarina of time). that's pretty cool.

Author:  DanShadow [ Mon Jan 26, 2004 2:37 pm ]
Post subject: 

yep, it does. and tx Very Happy

Author:  sport [ Mon Jan 26, 2004 5:59 pm ]
Post subject: 

All that's left is to make the game

Author:  DanShadow [ Mon Jan 26, 2004 9:08 pm ]
Post subject: 

lol, there is no game. Im just submitting a few different music kinda files if anyone wants to use them. Ya know, being helpful. Very Happy

Author:  sport [ Mon Jan 26, 2004 9:41 pm ]
Post subject: 

I mean the music by itself is kinda useless it needs a game to with it.

Author:  DanShadow [ Mon Jan 26, 2004 10:00 pm ]
Post subject: 

are you messed...lol. Make your own game, and if you want you can use the music in your game. Understand? The submission was the music..not a game. Rolling Eyes


: