You Are Here:

Community: Developer Discussion Boards

#1 Old (midp 1.0) flipper ball beta test - 2006-09-07, 19:14

Join Date: Jul 2006
Posts: 10
bpj1138
Offline
Registered User
Greetings!

Just in time for the US open tennis tournament, I've uploaded "Flipper Ball", a sort of a hybrid of pong and tennis, maybe more like pinball? The reason I wrote this while developing Weekend Racer was to test the waters of fixed point physics, which I'm happy to say seem to work, at least for this simple game, however, I did find out there are problems with it. The system seems to work only if the world is rather huge, close to the limits of ints, any smaller, the errors get big, any larger and there are overflows (I'm talking about a few bits of difference here, just enough to get the job done for this tiny playfield). So, I'd have to say making a larger field in fixed point would be damned nearly impossible, so I'm probably not going to convert Weekend Racer to fixed point. In any case, I'm gonna need to test this before I set it loose on the public, so you guys get the first swing at it (pun intended). Let me know what phone you tested on, what the framerate was like, was there jitter in the framerate? The graphics engine is based on a previous game that's been tested, so hopefully there won't be any problems. Naturally, it's been tested on WTK23. Thanks in advance for your ongoing help.

As usual, two mirrors (probably won't need it, but just in case)..

http://www.geocities.com/bpj1138/FlipperBallBin.zip
http://www.geocities.com/bjaszcz/FlipperBallBin.zip

--Bart
Reply With Quote

#2 Old Re: (midp 1.0) flipper ball beta test - 2006-09-07, 21:01

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Bart,

Nokia 6680 latest firmware
- I've got major issue: game doesn't close (either via "Close" or "Exit" added by system) and needs to be canceled via application manager or via device reboot, that's happening on game screen so you should check that part,
- moving flip from side to side is a bit slow I think
- I played flippers when was youngster - when I press flip it wont fire until released - consider that :D

regards,
Peter
Reply With Quote

#3 Old Re: (midp 1.0) flipper ball beta test - 2006-09-08, 20:37

Join Date: Jul 2006
Posts: 10
bpj1138
Offline
Registered User
I'll definitely check into the exit bug, thanks for the info. I guess the game behaves more like tennis than pinball. In pinball the flipper velocity has only two states (zero and full speed). I wanted to get a more varied motion, so there would be differences in the impact velocity, so the motion is sine-based. I also tried to make the user press and hold a button which would wind up the shot, then release it to fire, but I thought this took too much time to execute. So, that's how I ended up with what's there.

--Bart
Reply With Quote

#4 Old Re: (midp 1.0) flipper ball beta test - 2006-09-09, 20:20

Join Date: Jul 2006
Posts: 10
bpj1138
Offline
Registered User
Peter,

I uploaded a new version with the exit command completely reworked. I added exit commands to all forms, so hopefully the OS won't need to add them. Also changed a couple of other things that were bothering me. Hopefully these changes corrected the problem. I hope you can help me out and do another test, dziekuje bardzo.

--Bart

PS: What's with the OS pausing my thread when I switch to a form? Is this intended? I don't know why this got passed me before, other than that's what I wanted it to do, but it's sort of strange behavior. I added redundant pause signals just so it works that way on all implementations.
Reply With Quote

#5 Old Re: (midp 1.0) flipper ball beta test - 2006-09-11, 23:47

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Bart,

its working now - I mean - game can be exited on my 6680 (however you are simply quit from entire application instead of quitting current game),
Flip move could be more responsive - i've a filling that i'm movign something really heavy on screen (move interval is to small compared to screen area I think),
not sure what do you mean by os pausing my thread?
you have showNotify()/hideNotify() on canvas cubclasses or isShown() for Displayable subclasses and pauseApp()/startApp() of MIDlet subclasses,
take as example Nokia sample game sheepdog which ships with S40/s60 sdks in sample app folder:
Code:
public void startApp()
    {
        Displayable current = Display.getDisplay(this).getCurrent();
        if (current == null)
        {
            // first time we've been called
            Display.getDisplay(this).setCurrent(new SplashScreen(this));
        }
        else
        {
            if (current == sheepdogCanvas)
            {
                sheepdogCanvas.start();   // start its animation thread
            }
            Display.getDisplay(this).setCurrent(current);
        }
    }


    public void pauseApp()
    {
        Displayable current = Display.getDisplay(this).getCurrent();
        if (current == sheepdogCanvas)
        {
            sheepdogCanvas.stop();   // kill its animation thread
        }
    }
hth,
regards,
Peter
Reply With Quote

#6 Old Re: (midp 1.0) flipper ball beta test - 2006-09-12, 21:48

Join Date: Jul 2006
Posts: 10
bpj1138
Offline
Registered User
Good, at least you don't have to kill it forcibly! No, I don't think that's what I was talking about. In my midlet, I simply run a thread, which runs in the background, but only if a canvas object is shown, but when I switch to the help form object, the thread in the midlet stops without any intervention on my part, when I switch back from the help form to the canvas object, the midlet thread resumes.

--Bart
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
S90 MIDP SDK 1.0 Beta MMAPI Problem kfalck Mobile Java Tools & SDKs 0 2004-06-21 20:44
createImage on Nokia Series 40 MIDP Concept SDK Beta 0.3 GerardMason Mobile Java Media (Graphics & Sounds) 2 2003-09-30 11:00
Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working mattbee Mobile Java Tools & SDKs 1 2003-06-10 12:43
Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug? kauppi Mobile Java Tools & SDKs 3 2003-04-07 10:05
Http connection problem in 6310i teahola Mobile Java General 1 2002-10-03 19:46

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d127641X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZgamesQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ