Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help needed badly
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
moon15




PostPosted: Fri Mar 27, 2009 1:11 pm   Post subject: Help needed badly

alrighty so im making a game and the problem is i dunt noe how to set the difficulty for the game so if anyone noes the link that might help me or even if they noe how i would do this heres the code so far:
Turing:
procedure icywitch
 var icywitch :int:=Pic.FileNew("icywitch.bmp")
 Pic.Draw (icywitch, 150,250,0)
 end icywitch

procedure ghost
 var ghost :int:=Pic.FileNew("ghost.bmp")
 Pic.Draw (ghost, 150,250,0)
 end ghost
 
 
procedure blue_monster
 var blue_monster :int:=Pic.FileNew("ghost.bmp")
 Pic.Draw (blue_monster, 150,250,0)
 end blue_monster
 
loop
put "Do you wish to play this spooky freaky intense swaggerific game?(y/n)"
var reply : string (1)
get reply
cls
exit when reply not ="y"
var count :int:=0
var tick:int
put "Whats your difficulty?"
get tick

icywitch
end loop


Mod Edit: Remember to use syntax tags! Thanks Smile
code:
[syntax="turing"]Code Here[/syntax]
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Fri Mar 27, 2009 2:04 pm   Post subject: RE:Help needed badly

Well, how does your game work? Your code so far doesn't tell us much of anything.

Is your game an RPG, shooter, platformer, or what? What are the game mechanics - do you have hit points and deal damage, or is it one-hit-one-death? Setting the difficulty is based on the game mechanics you choose.
Insectoid




PostPosted: Fri Mar 27, 2009 3:22 pm   Post subject: RE:Help needed badly

Setting difficulty can be easy for some games and hard for others. Things like Sudoku generators are difficult to gauge for different levels of challenge, while Pong will be dirt simple. Btw, I love the line "Do you wish to play this spooky freaky intense swaggerific game?". It's just awesome.
hossack




PostPosted: Fri Mar 27, 2009 8:19 pm   Post subject: RE:Help needed badly

it could be something like this

if tick = 1 then
*Coding for easy*

elsif tick = 2 then
*Coding for medium*

elsif tick = 3 then
*Coding for hard*
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: