Computer Science Canada

Missle Pong

Author:  hdef [ Wed Dec 22, 2004 5:23 pm ]
Post subject:  Missle Pong

Well pong yet again... but with a twist... Has power ups and the ability to fire missles...



Also has a single or 2 player feature... *Warnign the ai in 2 player is hard to beat, u can only beat him if u take away all his life...*

Read the rules and controls or powerups at the start menu...

*please ignore typos as of right now im not picky when ti comes to them*

also... this game isnt really suppose to be difficult to keep the ball going... its suppose to make players use their missles to force people to miss while they are dodging them.

*Note thanks to draddog for beta testing and debugging the ai, it only took us what? 15 files? lol*

Author:  draddog [ Wed Dec 22, 2004 5:29 pm ]
Post subject:  Re: Missle Pong

hdef wrote:

*Note thanks to draddog for beta testing and debugging the ai, it only took us what? 15 files? lol*

not 15 files 15 tries anyways thanks for the credit
he did everything else

Author:  cool dude [ Wed Dec 22, 2004 5:33 pm ]
Post subject: 

it's good although it's very hard to lose and beat the computer. u should make the speed a lot faster

Author:  hdef [ Wed Dec 22, 2004 5:34 pm ]
Post subject: 

welll sending the file back and forth anyway lol...

lol the code for my program is so unorginized lol

Author:  hdef [ Wed Dec 22, 2004 5:35 pm ]
Post subject: 

yea i was going to but i would need to change nearly every line drawn there or else they will pass through each other....

Author:  cool dude [ Wed Dec 22, 2004 5:36 pm ]
Post subject: 

try putting it into procedures and functions and commenting it. that will make it more organized and dont forget our favourite key F2

Author:  draddog [ Wed Dec 22, 2004 5:37 pm ]
Post subject: 

it could but then everything would need to be adjusted
so it would take a while
exspecially ith the unorganized code lol

Author:  draddog [ Wed Dec 22, 2004 5:38 pm ]
Post subject: 

he has procedures but its just difficult

Author:  draddog [ Wed Dec 22, 2004 5:40 pm ]
Post subject: 

some of my gmes hve too much code to be indented Sad
i dont like that its hard t read

Author:  cool dude [ Thu Dec 23, 2004 2:37 pm ]
Post subject: 

draddog wrote:
some of my gmes hve too much code to be indented Sad
i dont like that its hard t read


it's not hard to read indented code, in fact it's a lot easier. as well wat do u mean by having too much code to be indented because u could indent any code even if it is big.

Author:  hq78 [ Thu Dec 23, 2004 4:31 pm ]
Post subject: 

i like it, i thought it was ann awesome game, good work!

Author:  draddog [ Thu Dec 23, 2004 7:10 pm ]
Post subject: 

i dont know its just says not enough memory to indent file
even if i have alot of memory Sad

Author:  benQ [ Fri Jan 07, 2005 7:10 pm ]
Post subject:  Hey

Hey how do you get the ball to bounce off the walls and the blockers? Can you send me the code to get it to bounce off walls? My summative is to make a blocksies game. Thank! Very Happy

Author:  cool dude [ Sat Jan 08, 2005 11:28 am ]
Post subject: 

to get the ball to bounce of the walls you could use this simple code

code:

setscreen("graphics:640;400")
View.Set ("offscreenonly")
color(white)
colorback(black)
cls

var x : int :=  320   
var y : int := 350     
var xchange:int:=1
var ychange:int:=1



loop
cls
    x := x - xchange
    y := y + ychange
   
    Draw.FillOval (x, y, 10, 10, white)
    delay(5)
    View.Update
   
    if x = 10 or x =630 then
        xchange:=xchange*-1
   
    end if
    if y = 10 or y = 390 then
        ychange :=ychange*-1
    end if

end loop



to make the ball bounce of the paddles it is almost the same code accept rearanging the code a bit and changing the boundaries


: