The Daily Click ::. Forums ::. Digital Works ::. BrickDown - OMG I made a game
 

Post Reply  Post Oekaki 
 

Posted By Message

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
24th January, 2008 at 06:09:26 -

Yes, I am giving up Clicking for Java

http://www.silvernova.co.uk/brickdown/Main.html

Cheers to Tim for hosting. (if the URL didn't give it away already)

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
24th January, 2008 at 06:11:21 -

Any time

 
http://www.SilverNova.co.uk


DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
24th January, 2008 at 06:32:27 -

What, like, completely?

The side collission doesn't work.

 
Old member (~2004-2007).

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
24th January, 2008 at 08:32:27 -

Java is slow. Use C++.

For side collisions, redo code as follows:



x_ball += xVelocity;

for(Brick brick : bricks[])
{
if(ball.overlaps(brick))
{
xVelocity *= -1;
brick.destroy();
}

}

y_ball += yVelocity;

for(Brick brick : bricks[])
{
if(ball.overlaps(brick))
{
yVelocity *= -1;
brick.destroy();
}
}

 
n/a

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
24th January, 2008 at 09:24:58 -


Originally Posted by Snerlin - taco advocate
Java is slow. Use C++.



Java has the advantage of being runnable in a web browser. (you could compile the game as a plug-in BUT using a virtual machine like Java does is much safer for the end user)

Speed is not really an issue. C++ is faster than Java, but either one is much faster than MMF.

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
24th January, 2008 at 10:26:20 -

"Java is slow" is a myth.
http://www.idiom.com/~zilla/Computer/javaCbenchmark.html

 
Old member (~2004-2007).

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
24th January, 2008 at 11:20:44 -

"Java is now nearly equal to (or faster than) C++ on low-level and numeric benchmarks."

Yes, it is fast in simple computations, but when you get to graphical programming it's really slow. I've had first hand experience with this in one of my labs. We had to make a GUI with a background image and a simple bus moving across the screen(made of a bunch of ellipses and rectangles). It could go no faster than 1 fps! I tried lowering the timer delay to 20/100 seconds but there was no change.

 
n/a

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
24th January, 2008 at 11:34:24 -

Multimedia Fusion 2 is getting Java support

 
a/n

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
24th January, 2008 at 12:33:37 -

c++ ftw

 
n/a

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
29th January, 2008 at 17:35:53 -

Ok... The old link broke? Perfect opportunity to put up a new version:

http://web.comhem.se/~ohwgames/build2/Main.html


Originally Posted by Snerlin - taco advocate
Yes, it is fast in simple computations, but when you get to graphical programming it's really slow. I've had first hand experience with this in one of my labs. We had to make a GUI with a background image and a simple bus moving across the screen(made of a bunch of ellipses and rectangles). It could go no faster than 1 fps! I tried lowering the timer delay to 20/100 seconds but there was no change.



Key question: When?

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
30th January, 2008 at 10:17:16 -

a month ago.

Unless they gave it steroids when update 4 was released, I don't think much change has happened to the speed.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
30th January, 2008 at 12:42:54 -

Aww. It congratulted me for completing it.

"Great job!"

 
Image

Tell 'em Babs is 'ere...

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
31st January, 2008 at 05:28:10 -

If you're getting lower than 1 FPS, it's likely a bottleneck in your coding that makes it go so slow.

 
Old member (~2004-2007).

Billybobjoe198



Registered
  12/01/2007
Points
  221
31st January, 2008 at 07:58:58 -

404 error, and my post has to be four words long.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
31st January, 2008 at 08:38:16 -

There is no 404.

 
Old member (~2004-2007).

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
31st January, 2008 at 09:09:01 -


Originally Posted by DaVince [Ectoprods]
If you're getting lower than 1 FPS, it's likely a bottleneck in your coding that makes it go so slow.



That was my thought too


Originally Posted by DaVince [Ectoprods]
There is no 404.



He's probably clicking the link in my first post. Try the link in my other post.

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
31st January, 2008 at 12:51:50 -

it wasn't my coding slowing it down. Most of the lab content was already made. I guess the image generating method the professor used for the background was inefficient.


I'll try making a Java game engine on my own and see how it comes out I guess.

--------------

Anyone have any idea on how to set a transparent color to an image though? .gif images work automatically, but I can't find a method to set a certain color in, say, a bitmap image to transparent.


Also, what are some efficient ways to do fine detection?

One theory I have is to have several 2-color graphics contexts (not shown) that are generated when two objects are in proximity to each other. The graphics contexts will have a dark image of the object formed from the nontransparent parts of the object's image. The rest will be a single lighter color. It will then loop through the collision images of both objects pixel by pixel. If it detects a dark color at the same pixel for both objects, it returns true for the collision.

Image Edited by the Author.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
1st February, 2008 at 06:21:19 -

PNG files can have 256 levels of transparency on pixels, did you try using that and a library to open PNGs in Java perhaps?

 
Old member (~2004-2007).

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
1st February, 2008 at 08:59:13 -

yes, but ImageIcon doesn't have a setTransparentColor(Color color) method.

 
n/a

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
3rd February, 2008 at 13:33:15 -

Ok, I've made another javagame.

http://web.comhem.se/~ohwgames/colbuild5/Main.html

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

Josh Whelchel

Musician

Registered
  01/06/2002
Points
  73

I am an April Fool
4th February, 2008 at 11:23:15 -

I definitely would not say Java is better at graphical anything than MMF2's runtime.

 
Last time I was on this site it said I was "16."

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
4th February, 2008 at 14:06:27 -

impressive. Looks like something easy for Java that MMF would loath to do.

Java > MMF

Bleh, I'm still looking for a way to set a universal transparent color for ImageIcons (other than loading them as gifs).

 
n/a

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
4th February, 2008 at 14:52:00 -

There's a bug in the uploaded version. If you make a combo that destroys gems beneath the column you placed that in turn cause a second combo, you will still see the column where you originally put it. I've fixed it but not got around uploading it yet. Want to do some other stuff first.


Originally Posted by Snerlin - taco advocate
impressive. Looks like something easy for Java that MMF would loath to do.

Java > MMF



Thank you!

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
4th February, 2008 at 15:33:25 -


Originally Posted by Snerlin - taco advocate
impressive. Looks like something easy for Java that MMF would loath to do.


Image

This better?

 
Old member (~2004-2007).

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
4th February, 2008 at 15:49:03 -

I enjoy your columns game, Phred.

 
Image

Tell 'em Babs is 'ere...
   

Post Reply



 



Advertisement

Worth A Click