Game programming

Moderators: None (Apply to moderate this forum)
Number of threads: 2070
Number of posts: 5361

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: loop problem\alternate 2 Posted by kor on 19 Mar 2003 at 4:01 PM
: Hi World,
: I am making a pong game(gasp!). I got the ball, paddle and the code in my head. The problem is that i have a loop for the thing that when the ball reaches a certain point, the program checks if the paddle is there or not. If the paddle is not there a msgbox appears. If it is there then the ball starts moving back towards the other way. But i can't move the paddle at all because a loop is already going on. Can anybody help me fix this or can anybody give me an alternate for this kind of game.
:
:
: THX
: Dhruv(BattleGuard)
:
:
check for paddle movement and calculate that, probably through a function (in c) or a subroutine (in assembler) or anything similar, inside the loop.
Thread Tree
BattleGuard loop problem\alternate 2 on 19 Mar 2003 at 2:11 PM
kor Re: loop problem\alternate 2 on 19 Mar 2003 at 4:01 PM
BattleGuard Re: loop problem\alternate 2 on 19 Mar 2003 at 6:52 PM
Matrixx Re: loop problem\alternate 2 on 19 Mar 2003 at 9:49 PM
BattleGuard Re: loop problem\alternate 2 on 20 Mar 2003 at 7:02 AM
kor Re: loop problem\alternate 2 on 24 Mar 2003 at 1:22 PM
BattleGuard Re: loop problem\alternate 2 on 26 Mar 2003 at 9:35 AM
kor Re: loop problem\alternate 2 on 26 Mar 2003 at 4:58 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.