BASIC IDEA:
In this game we have created 2 dimensional array .In which we have to
place TRAPS on various positions on screen.Also we have to define a
boundary .Where we have to set values of two variables ie..
x,y.Initially we take x=0 & y=0 that means our object should be
in starting position.Acc to these values of (x,y) we know position of
our object .If at any instant of time our object should
be at position for eg. (0,18),that means here x=0,y=18 .Suppose at
this point our object at last position at right side .In our program
we have to define boundary by using polymorphism array ,that means
our object not go beyond our boundary .As we earlier discussed that
we defined TRAPS for various positions .
It looks like you're new here. If you want to get involved, click one of these buttons!