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
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