|
|
|
|
#1 (permalink) | ||
|
Zuner
Join Date: May 2008
Posts: 63
Reputation: 11
Donate |
Another version of Pong. Its not 100% complete yet, but Im working on it. You can look at the documentation to see what I want to have done.
Also, this uses the touch pad instead of the buttons to control your paddle. Quote:
Quote:
Last edited by amoo3 : 05-15-2008 at 06:56 PM. Reason: updated linkage
|
||
|
|
|
| Remove Advertisements Sponsored Links | |
Advertisement |
|
|
|
#2 (permalink) |
|
Support Team
Expert Zuner Join Date: Nov 2007
Posts: 2,559
Reputation: 148
Donate |
Cool, althoguh I have already downloaded two other pong games from this site. >.< If you can try getting wifi working, It'd be a big hit.
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]()
|
|
|
|
|
|
#3 (permalink) |
|
Member
Join Date: Mar 2008
Location: The Gold Rush State!
Posts: 588
Reputation: 3
Donate |
i really love it, but it'd be better if it look more pretty and less buggy. i mean the touch is fine it's not buggy it's just the programming/drawing... sometimes the ball would get stuck to my bounce thing and i have to move it around to get the ball to bounce back up xD
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
|
|
|
|
|
#4 (permalink) |
|
Zuner
Join Date: May 2008
Posts: 63
Reputation: 11
Donate |
I’ve fixed up my pong game from last night. New updates:
Better graphics Better collision detection “Dumber” AI Scores (game still lasts forever) Menu (Note: 2p has no function yet) Im working on 2p now. Pray for the best! Download
|
|
|
|
|
|
#5 (permalink) |
|
Zune Freak
Join Date: Dec 2007
Location: 15 miles south of Nowhere, USA
Posts: 1,169
Reputation: 91
Donate |
You should replace the pong ball with a beer bottle and call it "Beer Pong". Just throwing that idea out there.
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
|
|
|
|
|
#6 (permalink) | |
|
Zuner
Join Date: May 2008
Posts: 63
Reputation: 11
Donate |
Quote:
![]() Its all going to have to be guessing until I get a friend's
|
|
|
|
|
|
|
#8 (permalink) | |
|
Support Team
Super Zuner Join Date: Feb 2008
Location: Florida
Posts: 1,701
Reputation: 103
Donate |
downloading the game right now looking forward to play it. For some odd reason I'm able to spend countless hours of my life playing pong with out getting bored...=P.
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Thanks for the sig stkr! Quote:
|
|
|
|
|
|
|
#9 (permalink) |
|
Zuner
|
Good game. I'm glad people keep on trying to make more and more games.
__________________
"Everyone loves Hannah Montana... some people just think they're too cool to admit they like her. You can't tell me you havn't heard her new song and wanted to turn it up and rock out to it?" -Some Random Interweb Guy (He speaks the truth)
|
|
|
|
|
|
#10 (permalink) |
|
zB Programmer
Jr. Member Join Date: Feb 2008
Posts: 442
Reputation: 34
Donate |
this pong game sounds wonderful, but not everyone has a zune with a squircle, try making an "or" statement to support the 1st gen zunes as well... if you don't mind, if you do that, I'll give you a +Rep
|
|
|
|
|
|
#13 (permalink) |
|
Zuner
Join Date: May 2008
Posts: 63
Reputation: 11
Donate |
Ok, I added support for the Zune 30s. It should work, but I have no way of testing it (it seems that the game turns on touch even if its off in the settings). Someone let me know how it is. Download link is the same
Download Also, careful with pressing the play button on the title menu. It may or may not crash your Zune. Still working on that.
|
|
|
|
|
|
#16 (permalink) |
|
Squirt
Join Date: May 2008
Location: Crazytown
Posts: 10
Reputation: 10
Donate |
I keep getting the same two errors:
Error 1 'Microsoft.Xna.Framework.Input.GamePadCapabilities ' does not contain a definition for 'hasLeftXThumbStick' and no extension method 'hasLeftXThumbStick' accepting a first argument of type 'Microsoft.Xna.Framework.Input.GamePadCapabilities ' could be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Owner\My Documents\My Videos\ZunePong\ZunePong\Game1.cs 249 58 ZunePong and Warning 2 The variable 'MinX' is assigned but its value is never used C:\Documents and Settings\Owner\My Documents\My Videos\ZunePong\ZunePong\Game1.cs 319 17 ZunePong
|
|
|
|
|
|
#17 (permalink) |
|
Zuner
Join Date: May 2008
Posts: 63
Reputation: 11
Donate |
Oops. I changed that on my computer. Guess I forgot to upload it. On the line where it says ......hasLeftXThumbStick
Change it to ..... HasLeftXThumbStick Second error is just a warning. It will work fine with that Alternatively, I have fixed the code. You can download it again if you like. Last edited by amoo3 : 05-11-2008 at 03:55 PM.
|
|
|
|
|
|
#20 (permalink) |
|
Zuner
Join Date: Mar 2007
Posts: 55
Reputation: 13
Donate |
Not to step on your toes Amir but i fixed the up / down inverse that was happening on the zune 30. here is the code.
Find this in the Game1.cs File in the ZunePong Project: Code:
protected void movePaddle(GameTime gameTime)
{
int MaxX = graphics.GraphicsDevice.Viewport.Width - (int)(ball.Width * scale);
int MinX = 0;
int MaxY = graphics.GraphicsDevice.Viewport.Height - (int)(ball.Height* scale);
int MinY = 0;
//paddle2Pos.X = ballPos.X + paddle.Width/2; <--- Too "Smart"
if(ballPos.X > paddle2Pos.X - paddle2.Height*scale*2){
paddle2Pos.X += 2f;
}
else if (ballPos.X < paddle2Pos.X - paddle2.Height * scale * 2)
{
paddle2Pos.X -= 2f;
}
if (GamePad.GetCapabilities(PlayerIndex.One).HasLeftXThumbStick)
{
if (paddlePos.X < MaxX && paddlePos.X - paddle.Height * scale * 3 > MinX)
paddlePos.X += GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 10f;
else if (paddlePos.X >= MaxX && GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 8f < 0f)
paddlePos.X += GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 10f;
else if (paddlePos.X <= MaxX && GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 8f > 0f)
paddlePos.X += GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 8f;
}
else
{
if ((paddlePos.X < MaxX && paddlePos.X - paddle.Height * scale * 3 > MinX) && GamePad.GetState(PlayerIndex.One).DPad.Left == ButtonState.Pressed)
paddlePos.X += 5f;
if ((paddlePos.X < MaxX && paddlePos.X - paddle.Height * scale * 3 > MinX) && GamePad.GetState(PlayerIndex.One).DPad.Right == ButtonState.Pressed)
paddlePos.X -= 5f;
else if (paddlePos.X >= MaxX && GamePad.GetState(PlayerIndex.One).DPad.Left == ButtonState.Pressed)
paddlePos.X -= 5f;
else if (paddlePos.X <= MaxX && GamePad.GetState(PlayerIndex.One).DPad.Right == ButtonState.Pressed)
paddlePos.X += 5f;
}
}
Code:
protected void movePaddle(GameTime gameTime)
{
int MaxX = graphics.GraphicsDevice.Viewport.Width - (int)(ball.Width * scale);
int MinX = 0;
int MaxY = graphics.GraphicsDevice.Viewport.Height - (int)(ball.Height* scale);
int MinY = 0;
//paddle2Pos.X = ballPos.X + paddle.Width/2; <--- Too "Smart"
if(ballPos.X > paddle2Pos.X - paddle2.Height*scale*2){
paddle2Pos.X += 2f;
}
else if (ballPos.X < paddle2Pos.X - paddle2.Height * scale * 2)
{
paddle2Pos.X -= 2f;
}
if (GamePad.GetCapabilities(PlayerIndex.One).HasLeftXThumbStick)
{
if (paddlePos.X < MaxX && paddlePos.X - paddle.Height * scale * 3 > MinX)
paddlePos.X += GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 10f;
else if (paddlePos.X >= MaxX && GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 8f < 0f)
paddlePos.X += GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 10f;
else if (paddlePos.X <= MaxX && GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 8f > 0f)
paddlePos.X += GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X * 8f;
}
else
{
if ((paddlePos.X < MaxX && paddlePos.X - paddle.Height * scale * 3 > MinX) && GamePad.GetState(PlayerIndex.One).DPad.Right == ButtonState.Pressed)
paddlePos.X += 5f;
if ((paddlePos.X < MaxX && paddlePos.X - paddle.Height * scale * 3 > MinX) && GamePad.GetState(PlayerIndex.One).DPad.Left == ButtonState.Pressed)
paddlePos.X -= 5f;
else if (paddlePos.X >= MaxX && GamePad.GetState(PlayerIndex.One).DPad.Right == ButtonState.Pressed)
paddlePos.X -= 5f;
else if (paddlePos.X <= MaxX && GamePad.GetState(PlayerIndex.One).DPad.Left == ButtonState.Pressed)
paddlePos.X += 5f;
}
}
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
|
|
|