Ready to Program Compiller VS Uploaded
Author |
Message |
Prince Pwn
|
Posted: Sun Jun 17, 2007 9:12 pm Post subject: Ready to Program Compiller VS Uploaded |
|
|
I made this one program called Sun Fighters in Ready to Program, and I drew my player mouths using Arcs. When I run it in the RTP compiler by pressing F1, my mouths look sqiggled, but after I upload it, they are kinda ovaled.
Top pic Is RTP, Bottom is the uploaded one from here. (Link Update 2/14/2010, under Applets go to Sun Fighters)
Also, during any of the 10s - 11s speed, the program will delay lots (I think it's due to my subtraction of the decimal numbers when decreasing time)
Any help on fixing or informing me of what those 2 glitches are doing would be appreciated. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Prince Pwn
|
Posted: Sun Feb 14, 2010 4:06 am Post subject: RE:Ready to Program Compiller VS Uploaded |
|
|
Bump. It's been 3 years and this issue remains. |
|
|
|
|
|
[Gandalf]
|
Posted: Sun Feb 14, 2010 6:42 am Post subject: RE:Ready to Program Compiller VS Uploaded |
|
|
Are you seriously still bothered by this?
Anyway, it's near impossible to help you without seeing some of the relevant code. The difference in appearance might be explained by a different implementation of the drawarc method in the RTP libraries. |
|
|
|
|
|
Prince Pwn
|
Posted: Wed Feb 17, 2010 8:46 am Post subject: RE:Ready to Program Compiller VS Uploaded |
|
|
Oh sorry, the code was available somewhere on the site. Yeah I'm still bothered by it.
Java: |
for (int i = 0 ; i < maxBall ; i++) // Drawing number of players
{
for (int x = 0 ; x < amount ; x++)
if (amount < i + 1)
g.setColor (color);
else
g.setColor (c [i]);
g.fillOval (250 + i * 50, getHeight () - 103, 20, 20);
g.setColor (face);
g.fillOval (255 + i * 50, getHeight () - 96, 3, 3);
g.fillOval (262 + i * 50, getHeight () - 96, 3, 3);
g.setColor (Color.black);
g.drawOval ((int) ballx [i], (int) bally [i], 20, 20);
g.fillArc ((int) ballx [i] - 84, (int) bally [i] + 9, 10, 5, 180, 360);
}
|
Also for the speed glitch:
Java: |
delay ((int) speed);
/* math stuffs goes in here */
if (speed > 1 && !introScreen) // Slowly increases speed of game
speed -= 0.0025;
|
PS I think your avatar is busted: http://compsci.ca/v3/uploads/user_avatars/169682378746a394a7bfb87.png |
|
|
|
|
|
Prince Pwn
|
Posted: Thu Jan 13, 2011 6:01 am Post subject: RE:Ready to Program Compiller VS Uploaded |
|
|
Another year has passed and the problem remains =/
I wish I could edit out the broken link but these forums seem to be behind the times when it comes to general forum functionality. Maybe it's pride that holds it back... |
|
|
|
|
|
DemonWasp
|
Posted: Thu Jan 13, 2011 10:54 am Post subject: RE:Ready to Program Compiller VS Uploaded |
|
|
In case you missed the memo, RTP is about a million versions out of date. Holtsoft no longer exists, and RTP hasn't been updated since the days of the 1.4.2 JVM. Since we're currently on 1.6.0.23 or somesuch, it's more than a little ancient. Consider running your code in a modern JVM.
If you want, I can help you figure out how to do that (though you should probably check the Java Tutorials section first). |
|
|
|
|
|
|
|