Computer Science Canada

HELP IN SHOOTING GAME

Author:  basharious [ 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

Author:  Albrecd [ Mon Feb 06, 2006 9:46 am ]
Post 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)

Author:  jrblast [ Wed Feb 08, 2006 2:44 pm ]
Post 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)


: