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

Username:   Password: 
 RegisterRegister   
 HELP IN SHOOTING GAME
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
basharious




PostPosted: Sat Feb 04, 2006 6:55 pm   Post subject: HELP IN SHOOTING GAME

Hizz
ok..my game is working just fine....i need to improve it....alot though
what i can't do is looping the game over after it's done....like make start all over when a player wins....

another problem is whoever tried it out said that player 2 can win way easier than player 1 can can u help me locate the weakness in player1..( i did give each a player an advantge..player1's shot damages more but covers less space..and vice versa for the other one)

and please tell how can improve my game in anyway!!
thanx alot....in advance



Final Project.zip
 Description:

Download
 Filename:  Final Project.zip
 Filesize:  949.84 KB
 Downloaded:  79 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Albrecd




PostPosted: Mon Feb 06, 2006 9:46 am   Post subject: (No subject)

you need to loop your main program. at the bottom of the program, you have

code:
var choice : string := ""
loop     %A loop for movement and shooting (playing the game)
    boundaries
    Input.KeyDown (move)
%...
       locate (12, 50)
        put "PLAYER 1  : ", player1.counter
    end if
    player1.victory := 0
    View.Update
end if


You need to loop all of this, and you need to reset your player variables.

code:
player1.health := 100
player1.counter := 0
%etc...


Remember to put this in the new loop. (after the origional loop and the victory screen settings)
jrblast




PostPosted: Wed Feb 08, 2006 2:44 pm   Post subject: (No subject)

Albrecd wrote:
you need to reset your player variables.

code:
player1.health := 100
player1.counter := 0
%etc...



Some people like to put that in a proc, my friends call its hskg...short for house keeping, but whatever you want works (I use resetVariables)
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  [ 3 Posts ]
Jump to:   


Style:  
Search: