Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2
1  Games Center / 4K Game Competition - 2008 / Re: z4rch 1st playable on: 2007-12-13 21:02:17
7) I changed to VolatileImage and noticed only a small (but significant) speed increase, but that may just be my rubbish graphics card. I've updated the applet also - is it faster for you now? (even with the Color()s sorted using this has got me back up to 4087 bytes  Undecided)

Its much smother now on OS X Smiley

And an alternative key for CTRL could be ALT I think.
2  Games Center / 4K Game Competition - 2008 / Re: z4rch 1st playable on: 2007-12-13 06:08:04
Very Fun!

I even managed to kill some aliens Smiley

On OS X 10.5, ctrl+<arrow> is the combination to change the virtual desktop, so when i wanted to fire and steer at the same time my desktop would switch away, which made the game a bit more complicated.
So for OS X users with spaces enabled some other key kombination would be great. Since you have 6 spare bytes you could probably add an alternative key for fire and lift. Smiley

(but not x and y keys, because than I have to complain about german keyboards where the x and z keys are swapped Smiley )


3  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-11-01 10:44:37
got 54 in reverse with a correct comparison c>-1 and 53 with the slightly incorrect one c>0

Was pretty easy to get there. Smiley
4  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-10-30 08:23:03
Barcode 64 bytes:

1  
2  
3  
4  
5  
for(int c=1,i=48;c>0;i++)
  if((c=in.read())<99){
    out.write(i);
    i=47;
  }


Sometimes you need to take some time off, to see the simple optimizations Smiley
5  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-10-29 09:30:06

85 bytes for capitalizer, but that has to go shorter...
there are 3 variables in there...
who needs 3 variables anyway? Smiley

1  
2  
for(int c,i=0,s=0; (c=in.read())>0 ; out.write(c-(i++==s & c > 96 & c < 123?32:0)))
      s =c == 32 ? i+1 : s;


for the barcode thingy 89 bytes

1  
2  
3  
4  
int i,c;
for(i=48;(c=in.read())>0;i=c==32?48:i+1)
   if(c==32)out.write(i);
if(i>0)out.write(i);


So lets start that shortening iteration again Smiley

Edit:
capitalizer down to 7170:
1  
2  
for(int c,s=32; (c=in.read())>0;)
   out.write(s=c-(s==32 & c > 96 & c < 123?32:0));


barcode down to 66 bytes:
1  
2  
3  
4  
5  
6  
7  
for(int c=1,i=48;c>0;i++){
  c=in.read();
  if(c<99){
    out.write(i);
    i=47;
  }
}
6  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-10-28 23:45:11
We need no stinking a variable:

1  
2  
for(int s=1;s>0;s=s*16|(s=in.read())-(s<58?48:87))
if(s>255){out.write(s);s=1;}


That makes it 77 bytes.
7  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-10-28 23:03:43
Yeah, I saw you moving from 81 to 80 bytes on the server.
Then I made a 79 using your version, but I didn't dare to post it, because it felt like cheating.
But now that you posted it, all I can say is that I did it slightly different... but you get the credit Smiley

Would you post your version, just for my enlightment? Smiley
8  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-10-28 22:53:59

Hex:
1  
2  
for(int a,s=1;s>0;s=s*16|((a=in.read())<58?a-48:a-87))
if(s>255){out.write(s);s=1;}

(81 bytes)

another one bytes the dust: 80 bytes Smiley

1  
2  
for(int a,s=1;s>0;s=s*16|-((a=in.read())<58?48:87)+a)
if(s>255){out.write(s);s=1;}


Edit:

Got another one for 79 bytes
1  
2  
for(int a,s=1;s>0;s=s*16|(a=in.read())-(a<58?48:87))
if(s>255){out.write(s);s=1;}
9  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-10-28 19:24:54
Hehe... then I get 72 bytes too...

and I got 2 solutions:
1  
2  
3  
for(int
r=0,i=0,b=0;r>-1;b=b<<1|(r=in.read())&1)
if(i++%8==0)out.write(b);

1  
2  
3  
4  
5  
6  
for(int
r,i=0,b=0;(r=in.read())>0;)
{
b=b<<1|r&1;
if(++i%8==0)out.write(b);
}


The first is extremely not-done.

My is a bit different:

1  
2  
3  
4  
5  
for(int
c=0,i=0,x;(x=in.read())>0;c<<=1){
c|=x&1;
if(++i%8<1)out.write(c);
}


And 71 bytes with that:
1  
2  
3  
for(int
r=1,i=0,b=0;r>0;b=b<<1|(r=in.read())&1)
if(i++%8==0)out.write(b);
10  Discussions / Miscellaneous Topics / Re: TinyCode competition - trial on: 2007-10-28 19:04:40

72 bytes! muhahaha Smiley

To achieve it, you can replace the only space with a line break, and since that doesn't count its one byte off Smiley
11  Games Center / Archived Projects / Re: JEmu2 does Out Run on: 2007-08-16 15:00:41
Doesn't work on my Intel Mac:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.sun.javaws.Launcher.executeApplication(Launcher.java:1161)
   at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1108)
   at com.sun.javaws.Launcher.continueLaunch(Launcher.java:951)
   at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)
   at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
   at com.sun.javaws.Launcher.run(Launcher.java:165)
   at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.UnsatisfiedLinkError: /Users/markus/Library/Caches/Java/cache/javaws/http/Dwww.gagaplay.com/P80/DMjemu2/RNlwjgl_mac.jar/liblwjgl.jnilib:
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1660)
   at java.lang.Runtime.loadLibrary0(Runtime.java:822)
   at java.lang.System.loadLibrary(System.java:992)
   at org.lwjgl.Sys$1.run(Sys.java:67)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.<clinit>(Sys.java:65)
   at jef.util.time.TimeLWJGLImpl.<init>(TimeLWJGLImpl.java:17)
   at jef.util.time.Time.init(Time.java:31)
   at jef.util.time.Time.<clinit>(Time.java:22)
   at net.movegaga.jemu2.FrontEnd.<init>(FrontEnd.java:277)
   at net.movegaga.jemu2.FrontEnd.main(FrontEnd.java:389)
   ... 11 more


Other lwjgl stuff does work, though.

12  Discussions / General Discussions / Re: Adobe/Flash wins yet again when it comes to user experience... on: 2007-07-13 08:06:40
It's around $100/year. The price is pretty ridiculous for what they are actually offering.

There used to be certs for $20/year, which were good enough for Java stuff, but those certificate authorities scrapped em. Yea, right... why should they ask for $20 if they can milk $100 out of you? Verisign, Thawte etc really deserve some regulative slapping.

There is also a free certificate that can be used. It won't display your name though, it displays "Thawte Freemail member" instead. But otherwise its a full certificate.

See: http://www.dallaway.com/acad/webstart/
13  Games Center / Archived Projects / Re: Hiero - Bitmap Font Tool on: 2007-01-18 10:34:03
Seems the tool now finds fonts on osx, unfortunatly I get a OutOfMemoryError now on load. It happens after loading some fonts. Maybe I have too much fonts on my system?
14  Games Center / Archived Projects / Re: Hiero - Bitmap Font Tool on: 2007-01-16 09:27:08
Works with OSX 10.4 Intel after adding a font directory manually.

OSX stores fonts in /Library/Fonts and /System/library/Fonts and "user.home"/Library/Fonts. Unfortunatly most fonts are not ttf fonts, so I only have 3 fonts in the list. But wth those 3 fonts (Apple Symbols, Euphemia UCAS and Plantagenet Cherokee) its working.

There are more ttf files in those directorys, but they don't get loaded. The log says: Unable to process: /System/Library/Fonts/<fontname>.ttf

There are some more font directories on osx: /usr/X11R6/lib/X11/fonts/TTF/ if X11 is installed, which is not installed by default. And "java.home"/lib/fonts for the java fonts. All those fonts load without errors.

I do get a "Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space" if I add to much font directorys in one session, though.
15  Discussions / General Discussions / Re: What languages are you comfortable in? on: 2007-01-04 19:12:24
PS:  Ich Liebe Deautschland but German is bloody hard to learn!  And they've made up there own letters, check this out - Ö, Ä,  ß, Ü, µ! 

µ is actually not a German letter but a Greek one. http://en.wikipedia.org/wiki/Mu_(letter) Smiley
16  Java Game APIs & Engines / Tools Discussion / Re: JBuilder 2007, does it support Java 1.6? anyone tried it? on: 2006-12-05 18:49:42
I haven't tried JB in years, so I don't know what the benefits would be to using eclipse, but the major features of eclipse such as the refactoring tools will save you hundreds of hours each year no matter what programming you write. People tend to described eclipse's refactoring as "the best" so I'm guessing its probably a bit better than JB?

According to this: http://www.borland.com/us/products/jbuilder/index.html
Quote
Brings JBuilder RAD tools to the Eclipse Open Source platform
JBuilder 2007 is build upon Eclipse, so you should get all the refatoring stuff from eclipse and the gui stuff from JBuilder.
17  Games Center / WIP games, tools & toy projects / Re: Kitipong - Library Test on: 2006-11-19 20:00:53
Works fine on my Intel mac, if I start it the first time. If I reload the page I get the following output (see screenshot).

Works now after page reload to.

Forgot to mention: Using Safari for this.
18  Games Center / WIP games, tools & toy projects / Re: Kitipong - Library Test on: 2006-11-19 12:25:22
Works fine on my Intel mac, if I start it the first time. If I reload the page I get the following output (see screenshot).
19  Game Development / Networking & Multiplayer / Re: Success with Java 1.5 Applets? on: 2005-12-28 09:13:16
Edit: I should mention that if what you want to use is 1.5 prgorammign constructus but don't actually need 1.5 API calls, you might try a tool one of the guys wrote her that messages JDK1.5 byte code back into a form executable by earlier VMs. I forget the name but Im sure someone around here remembers...

Its called RetroWeaver: http://retroweaver.sourceforge.net/
20  Discussions / General Discussions / Re: JDK 1.5.0_04 released on: 2005-06-29 09:17:15
Quote
I agree the naming is daft and will break after a few minor versions.
Maybe (a la Microsloth) they'll switch to years : Java 2007, Java 2010 ? Grin

Java XP...
21  Game Development / Newbie & Debugging Questions / Re: Web Start - how to sign jars on: 2005-05-23 07:43:06
And for "official" (not-self-signed) certificates read this:

http://www.dallaway.com/acad/webstart/

But the certivicate won't be on your name then, it will be on "Thawte freemail Member". You can get your name in it, if you participate in the Thawte Web of Trust
22  Games Center / Archived Projects / Re: Automated webstart-maker: need game authors on: 2005-04-07 09:12:27
Quote
Hi!

The generated .jnlp for my game is missing this:
1  
2  
3  
<security>
 <all-permissions/>
</security>


But i'm using lwjgl so I need it for the native libs to be loaded.

You can test it here:
http://www.javagamesfactory.org/jnlp/Arindal/alpha.jnlp?overrideversion=1

Markus



Nevermind... I was just blind...

Works now Smiley
23  Games Center / Archived Projects / Re: Automated webstart-maker: need game authors on: 2005-04-07 09:06:24
Hi!

The generated .jnlp for my game is missing this:
1  
2  
3  
<security>
 <all-permissions/>
</security>


But i'm using lwjgl so I need it for the native libs to be loaded.

You can test it here:
http://www.javagamesfactory.org/jnlp/Arindal/alpha.jnlp?overrideversion=1

Markus
24  Games Center / Archived Projects / Re: Array Painter - Easy way to make 2D Arrays!! on: 2005-03-14 05:59:30
Quote


Bad Request

Your browser sent a request that this server could not understand.

With Konqueror on linux.
25  Game Development / Shared Code / Re: Updating API without JWS on: 2005-03-07 20:54:42
I like your updater. I could really use it in my project. Any thoughts what licence you will use?

Would love to get a jar or something to try it out.
26  Java Game APIs & Engines / OpenGL Development / Re: Resizing the window on: 2005-02-02 09:04:27
Quote

Okay an update, at the moment I am trying to execute this code:

if (!Mouse.isButtonDown(Mouse.getButtonCount()-1));
       {
           System.out.print("Whaaa!!");
       }

Which is printing output constantly


remove the ";" in the "if" line Smiley
27  Games Center / Archived Projects / Re: Here goes - I present an alpha of Daughterware on: 2004-09-16 18:36:10
Quote
markush - Thanks for trying!  The error is being caused when it tries to load an image and then convert it to an RGB.  When you extracted the files you should have had the 1 jar file and then a few directories.

I'm not at home so I can't view the source code right now.  Sad

Did you get an image that said Daughterware when you started the app?  It would have had a progress bar below it, indicating what stage it was at.


Yes, it crashes at "setting up audio".

Quote

There should be a directory called dot2dots.  Under there would be 4 dirs (one CVS and three others).  Inside each dir, except for the CVS one, there would be image files and files which end with a .dot2dot extension.  Were those present?


Yes. Here are the files I've got. (without the CVS files):

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
markus@alderaan:~/download/dwaresmall$ ls -R -I CVS
.:
dot2dots  dware12sept.jar  images  music  pictures  sounds

./dot2dots:
numbers  shapes  test

./dot2dots/numbers:
1.dot2dot  1.png  2.dot2dot  2.png  3.dot2dot  3.png  background.png

./dot2dots/shapes:
background.png  rectangle.dot2dot  square.dot2dot  thing.dot2dot

./dot2dots/test:
background.png  house.PNG     taylor.dot2dot              taylor i love you.png
house.dot2dot   star.dot2dot  taylor i love you grey.png

./images:
balloon._pn     boat10005.png  boat10009.png      green balloon.png   ss1b-2.jpg  stamp8.png
balloon.png     boat10006._pn  boat10010._pn      next icon.png       stamp1.png  tile1.jpg
boat10001.png   boat10006.png  boat10010.png      paint brush.gif     stamp2.png  tile2.jpg
boat10002.png   boat10007._pn  camera.gif         purple balloon._pn  stamp3.png  tile3.jpg
boat10003.png   boat10007.png  cosa7.png          purple balloon.png  stamp4.png  tileImage.jpg
boat10004.png   boat10008._pn  dot2dot house.png  riverboat.png       stamp5.png
boat10005a.png  boat10008.png  firework.jpg       shapes.jpg          stamp6.png
boat10005._pn   boat10009._pn  green balloon._pn  splash.jpg          stamp7.png

./music:
dots song.aiff  image song.aiff  paint song.aiff  shapes song.aiff

./pictures:
eyore2.jpg  eyore.jpg  piglet.jpg  poohpiglet.jpg  test1.jpg  test2.jpg  tigger.jpg

./sounds:
Bell 2.aif  Bell 3.aif  Bell 4.aif

Quote

A friend tried it on his Linux box and had to kill his audio server.  When the app ran though, the window was 1 pixel or so in size.  He could maximize and minimize it, but never saw the actual imagery.  I don't think its the same error though.


I do have that 1 pixel window too, but can't maximize it.
28  Games Center / Archived Projects / Re: Here goes - I present an alpha of Daughterware on: 2004-09-16 12:30:30
Hi!

I'm getting this exception, when I try to start:

1  
2  
3  
4  
5  
6  
7  
java.lang.NullPointerException
        at com.daughterware.swing.SwingUtil.convertToBitmaskType(SwingUtil.java:56)
        at com.daughterware.swing.SwingUtil.loadImage(SwingUtil.java:85)
        at com.daughterware.Dot2Dot.load(Dot2Dot.java:83)
        at com.daughterware.actionPanels.Dot2DotActionPanel.getNextDot2Dot(Dot2DotActionPanel.java:136)
        at com.daughterware.actionPanels.Dot2DotActionPanel.<init>(Dot2DotActionPanel.java:98)
        at com.daughterware.apps.Daughterware.main(Daughterware.java:69)


The loading screen is showing something about audio at that time.

This is on Linux with following java:
1  
2  
3  
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
29  Games Center / Java Technology Game Development Contest - 2004 / Re: Same time next year? on: 2004-07-29 05:44:47
Quote
I don't see anything on that page indicating a contest for next year



Quote
Thanks to all the contestants for your submissions, please join us again next year for the 2005 Java Technology Game Development Contest!




30  Discussions / General Discussions / Re: Fallout 3 on: 2004-07-25 22:05:05
Quote
I will have to beg to differ with you on the Bethsoft front- I have played a lot of RPGs in my time and nothing else has touched the immersion, freedom and sheer involvement of Morrowind and Daggerfall. I was still playing Daggerfall pretty much up until morrowind arrived, in fact.

The best way to wreck a good RPG is to try and make it work on consoles though (see Deus Ex 2 for a classic example of this) - if anything will make the game lame out it will be that.


So morrowind is a lame game, in your definition:

http://games.teamxbox.com/xbox/177/Elder-Scrolls-III-Morrowind
Pages: [1] 2
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (25 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (13 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (58 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!