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

Username:   Password: 
 RegisterRegister   
 [Contest][Blitz] jonos 3D Pong
Index -> Programming, Visual Basic and Other Basics -> Other Basics
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
jonos




PostPosted: Tue Mar 02, 2004 9:44 pm   Post subject: [Contest][Blitz] jonos 3D Pong

well, its not done but what i have done is the player paddle, the walls, the back bumper, and soon to come the other player which is givng me grief. i don't really need help as shorthair has just helped me, but if i need help then i will post it here so anyone can help me. anyways, im goingn to use collision from other pong programs, which is going to be pretty hard i think because i need to mix it in with the z coordinate, but i haven't tried yet so i may be wrong. watch out for it. if anyone would like to make me some cool textures (bmp), that would be appreciated for all my entities in my game, as the ones i am using now suck a lot. thanks everyone, and look out for my game in the comp!
Sponsor
Sponsor
Sponsor
sponsor
jonos




PostPosted: Wed Mar 03, 2004 12:40 pm   Post subject: (No subject)

well, i thought i'd give anyone who cares and who is reading this a look at the game so far to keep you all interested. the game is not going to be as hard as cervantes' game he is making so i will ad some more stuff later on when its done. all i have is the player movement, and the balls will come next and then the crappy ai whcih will be really easy to do. the screenshot:

edit: see what i mean about the textures!!!! someone please help me!!!! maybe i will give bits if they are really good and i use them in the final game.
Maverick




PostPosted: Wed Mar 03, 2004 3:46 pm   Post subject: (No subject)

that looks like it culd turn out really good.
i'm still having truble learning blitz. still gottas spend sum more time on it.
jonos




PostPosted: Wed Mar 03, 2004 3:51 pm   Post subject: (No subject)

its good to just take code straight from an example in the help part of blitz and then add on to it, and bug shorthair on what everything means or just check the help file. last night i just kindof did that and then shorthair helped me a lot and now i know what im kindof doing.


anyways, im hoping to add in where you could cange the camera angles and zoom in zoom out, which will be pretty easy, and change lighting and all that. its going to be fun.
shorthair




PostPosted: Wed Mar 03, 2004 5:07 pm   Post subject: (No subject)

WOW jonos , you have come along way from not wanting to enter , to now going full out , that screen looks really promising , looks like your really starting to get into , good luck and keep it up
jonos




PostPosted: Wed Mar 03, 2004 5:11 pm   Post subject: (No subject)

thanks, i just need some textures because i don't really have time to make them and i can't make them anyways, i guess i could search for some but i don't know how to tile them in blitz. anyways, thanks for the compliments, ill try to make it really good.
Cervantes




PostPosted: Wed Mar 03, 2004 5:18 pm   Post subject: (No subject)

yes!! the ultimate texture!! Razz

looks pretty good there jonos. Smile

and yes, you will have to incorporate z into collisions. Unless there's some super duper blitz command that just tells you if they have collided Smile
jonos




PostPosted: Wed Mar 03, 2004 6:42 pm   Post subject: (No subject)

actually i think there is. hehe

edit: its something like collisionx, collisiony, collisionz or something that gives the place where something collided. im not sure though ive never used it. blitz has really easy collision, i used:

Collisions person,leftWall,2,1

so that is between person, leftWall, and then 2 and 1 are just methods and what do do when they collide. no more stupid coordinates for me anytime soon.
Sponsor
Sponsor
Sponsor
sponsor
jonos




PostPosted: Wed Mar 03, 2004 9:32 pm   Post subject: (No subject)

I NEED SOME HELP QUICK. well not quick, but im having trouble with the ball and collision detection. its different than turing and im also having trouble with the sphere movement. i can't get the ball to deflect from teh wall and the ball moves way too fast. can anyone please help me!!!
shorthair




PostPosted: Thu Mar 04, 2004 6:17 am   Post subject: (No subject)

Give ME code young Padawain , and the force shall be brouht upon you , POST UP HTE CODE or just msg it to me , so i can see where your going wrong
jonos




PostPosted: Thu Mar 04, 2004 12:00 pm   Post subject: (No subject)

ok, i may have it commented out but you can change that:

code:

AppTitle "3D Pong"
Graphics3D 800, 525
SetBuffer BackBuffer()

;.....variables
;ball things
ballx#=0
ballz#=17
ballSpeedx#=1
ballSpeedz#=1
ball=CreateSphere()
EntityType ball, ball
ScaleEntity ball, .2, .2, .2
;PositionEntity ball, ballx, -5.4, ballz
ballTexture= LoadTexture ("ballTexture.bmp")
EntityTexture ball, ballTexture

;camera
camera=CreateCamera()
;PositionEntity camera, 0, 30, 12
;RotateEntity camera, 90, 0, 0
PositionEntity camera, 0, 0, -10

;light
light = CreateLight(2)
RotateEntity light, 1, 1, 1

;person
person=CreateCube()
EntityType person, person
ScaleEntity person, 1.1, .3, .3
PositionEntity person, 0, -5.4, -9
personTexture=LoadTexture("personTexture.bmp")
EntityTexture person, personTexture

;enemy
enemy=CreateCube()
EntityType enemy, enemy
ScaleEntity enemy, 1.1, .3, .3
PositionEntity enemy, 0, -5.4, 9
enemyTexture=LoadTexture("enemyTexture.bmp")
EntityTexture enemy, enemyTexture

;.....walls
wallTexture = LoadTexture ("wallTexture.bmp")
;left wall
leftWall = CreateCube()
EntityType leftWall, leftWall
ScaleEntity leftWall, 0.5, 0.5, 12
PositionEntity leftWall, -8, -5.4, 11.4
EntityTexture leftWall, wallTexture
;right wall
rightWall = CreateCube()
EntityType rightWall, rightWall
ScaleEntity rightWall, 0.5, 0.5, 12
PositionEntity rightWall, 8, -5.4, 11.4
EntityTexture rightWall, wallTexture

;.....bumpers
bumperTexture = LoadTexture ("bumperTexture.bmp")
;back bumper
backBumper = CreateCube()
EntityType backBumper, backBumper
ScaleEntity backBumper, 8.5, .5, .3
PositionEntity backBumper, 0, -5.4, 23.8
EntityTexture backBumper, bumperTexture
;front bumper
frontBumper = CreateCube()
EntityType frontbumper, frontbumper
ScaleEntity frontbumper, 8.5, .5, .3
PositionEntity frontBumper, 0, -5.4, -.9
EntityTexture frontBumper, bumperTexture

;.....floor
;floor
bottom = CreateCube()
EntityType bottom, bottom
ScaleEntity bottom, 8, .1, 12.5
PositionEntity bottom, 0, -6, 11.5

;Move cone in front of camera, so we can see it to begin with
MoveEntity person,0,0,10
MoveEntity enemy, 0, 0, 10

While Not KeyDown(1)
       
        ;person movement
        If KeyDown(203)=True Then x#=-0.4
        If KeyDown(205)=True Then x#=0.4

        Collisions person,leftWall,2,1
        Collisions person, rightWall, 2,1
        Collisions enemy, leftwall, 2, 1
        Collisions enemy, rightwall, 2, 1
        Collisions ball, backbumper, 2, 1
        Collisions ball, leftWall, 2, 1
        Collisions ball, rightWall, 2, 1

        ;move ball
        ;MoveEntity ball, ballx, -5.4, ballz

        ;move player/enemy
        MoveEntity person,x,y,z
        MoveEntity enemy,x,y,z
       
        UpdateWorld
        RenderWorld
        Flip

        ;ballx = ballx + ballSpeedx
        ;ballz = ballz + ballSpeedz

        x=0
        y=0
        z=0
Wend
End
Cervantes




PostPosted: Thu Mar 04, 2004 5:46 pm   Post subject: (No subject)

you have not attached textures, so its kinda hard to see what happens, esp cuz once you comment out the textures everything is white and nothing can be seen Confused

However, I thought you were using rectangular prisms as your paddles? Therefore, shouldn't the collisions be 3,1 for sphere to box instead of sphere to polygon? Well actually, I'm not too sure Shifty
jonos




PostPosted: Thu Mar 04, 2004 6:50 pm   Post subject: (No subject)

well, i did that except that the rectangular prisms didn't completely touch the walls for some reason (damned if i know at this point), i was pissed off at one point at this so i just changed the num and it worked good. its kindof hard to see at first before, so what i did was change the position and rotation of the camera so i was looking down on it, so then i could see it.

anyways, you could always just make a pixel drawing in turing with different colours for each texture and then it owuld work nice.
Paul




PostPosted: Fri Mar 19, 2004 12:52 pm   Post subject: (No subject)

A truely 3D pong game I really liked is on albinoblacksheep.com, along with the monkey spanking game, THAT 3D pong is really 3D cause you the paddle oves in all dimensions.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Other Basics
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 14 Posts ]
Jump to:   


Style:  
Search: