Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3
  ignore  |  Print  
  Neb4k  (Read 19038 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2005-02-03 19:02:21 »

I missed 4k games so much in the last week I had to write another one based loosely on the classic Nebulus Smiley.

Story:

The Roundlings (read circles) have been invaded by the Evil Red Squares (so called because of their colour, shape and disposition) who have occupied the most sacred Roundling temple - the Tower of Ovals. As Ben a young Roundling adventurer you must climb the tower to free the magic within.

Yes.. the story is very very poor. Never mind huh?

Current features:

* Coins - Bonus Points
* Keys/Barriers - Let you into areas
* Evil Red Squares - patrol the level and knock you down.
* Doors - Allow you into the tower and back out at a different location.
* Teleportals - Bean you up and down levels
* Fall Away Blocks - Step on one of these and it disappears letting you fall straight through.
* Finish Point - Lets you complete the level

Controls:

Left/Right Cursor - Move
Up/Down Cursor - Use current square

Webstart: http://www.cokeandcode.com/games/4k/neb4k/neb4k.jnlp
Jar File: http://www.cokeandcode.com/games/4k/neb4k/neb4k.jar
Main-Class:  N
Screenshot: http://www.cokeandcode.com/games/4k/neb4k/screenshot.gif

Its only got test data in at the moment but I'm honestly working on the level. Infact I've made the level designer available as a seperate download (if anyone's interested). If someone has the time to come up with a decent level maybe I'll include it! Smiley

More details:
http://www.cokeandcode.com/games/4k/neb4k/

Sorry, long post.

Kev

Offline born2snipe

Senior Newbie




oh goody....java games


« Reply #1 - Posted 2005-02-03 19:31:03 »

I swear kev you pump these 4k games out like there was nothing to it......lol.  Keep up the good work.
Offline Vorax

Senior Member


Projects: 1


System shutting down in 5..4..3...


« Reply #2 - Posted 2005-02-03 21:48:02 »

Very cool!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #3 - Posted 2005-02-03 22:03:30 »

Neat Cheesy

Now you only need some real levels Smiley

弾幕 ☆ @mahonnaiseblog
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #4 - Posted 2005-02-03 22:47:02 »

Yet another great 4K game Kev!

Very good game idea. I wasted quite a lot of time playing the original Nebulus Smiley  Amazing how well it looks with such simple geometries! And how feature-complete it seems to be, all in 4K. Can't wait to see more levels.

There is an old applet version of same game here:
http://www.javaonthebrain.com/java/cross/
And some more applets on that site, for anybody who is interested. "Graviton" should also look familiar  Smiley

Don't slow down now, only 4 more weeks to go  Wink

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #5 - Posted 2005-02-03 23:13:23 »

Made a little level Smiley

http://kaioa.com/k/d

The editor is pretty cool, but somewhat odd to use if you don't know the tiles (tooltips would have done the trick).

弾幕 ☆ @mahonnaiseblog
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #6 - Posted 2005-02-04 00:00:24 »

FYI, the correct link to Onyx's level is http://www.kaioa.com/k/d

Onyx, I improved upon your level. See if you can beat it!

http://java.dnsalias.com/4k/d

Great work Kev! Why aren't you already in professional game development? :-)

Java Game Console Project
Last Journal Entry: 12/17/04
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #7 - Posted 2005-02-04 00:14:28 »

The link also works without www (it does work for me at least).

And yea, I was able to beat your's jbanes. But I had a leftover key at the end and there was another key-thing which was unreachable.

edit: uhm... no it's not unreachable, but the teleporter pad next to it is dead

弾幕 ☆ @mahonnaiseblog
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #8 - Posted 2005-02-04 00:52:33 »

Quote
The link also works without www (it does work for me at least).


Odd, it doesn't for me. :-(

Quote
edit: uhm... no it's not unreachable, but the teleporter pad next to it is dead


Dead? There are no dead pads on my watch! :-) That pad is useful for going up or down. Also, I fixed it so that you can no longer win without getting to the top. There's only one key now, the rest are yellow circles. Just redownload to play again.

Edit: Sorry, it didn't upload right. If the level seems unchanged, you need to redownload it.

Kev, do the doors work at all?

Java Game Console Project
Last Journal Entry: 12/17/04
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #9 - Posted 2005-02-04 01:25:28 »

Made a new one. It's much better Wink

http://www.kaioa.com/k/d2

Special features are a little secret and path hinting with coins. Try to get all 7 coins Smiley

>do the doors work at all?

Ye, dunno how they are supposed to work. Creating a link is rmb-clicking there and then rmb-clicking somewhere else, but I don't know what its supposed to do.

Hm... I think I should hurry a bit with my "bre4k" game. Hopefully there will be some time left for getting level submissions, which will be included at the end. Right now I guesstimate there will be room for about 10 levels Smiley

弾幕 ☆ @mahonnaiseblog
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #10 - Posted 2005-02-04 01:40:43 »

Oh... ok... doors work...

Put a door (gray thing) there and another one somewhere else... then rmb one and then the other. There is even a neat animation for entering/exiting doors Shocked

弾幕 ☆ @mahonnaiseblog
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #11 - Posted 2005-02-04 01:59:25 »

http://www.kaioa.com/k/d3 Smiley

Level making is fun Cheesy

弾幕 ☆ @mahonnaiseblog
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #12 - Posted 2005-02-04 02:39:47 »

Quote
Special features are a little secret and path hinting with coins. Try to get all 7 coins Smiley


Just a little "leap of faith", and you're there. ;-)

Quote
Oh... ok... doors work...

Put a door (gray thing) there and another one somewhere else... then rmb one and then the other. There is even a neat animation for entering/exiting doors Shocked


They seem to be really buggy. I already figured out the tunnel pieces. Unfortunately, when I tried to use them I got the following:

1  
2  
3  
4  
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 50
        at N.a(Unknown Source)
        at N.<init>(Unknown Source)
        at N.main(Unknown Source)


Similarly, the tunnels on your level seem to stop working after a few uses. Instead of going to the destination, the character pops in and then out. :-/

Java Game Console Project
Last Journal Entry: 12/17/04
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #13 - Posted 2005-02-04 02:49:57 »

>the tunnels on your level seem to stop working after a few uses

Hrm.

Hadn't tried em more than once. Well, Kev is to blame Grin

Regarding that exception. Delete the links and add em again. Most likely one of em points to nowhere (a non door tile).

弾幕 ☆ @mahonnaiseblog
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #14 - Posted 2005-02-04 04:27:23 »

Coo! Well thanks guys. I ended up going to get some sleep so missed all this. I'll work out whats going on, add the tool tips etc tonight.

Cheers for the feedback tho! If I only I could fit more than one level into the game Sad

Kev

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #15 - Posted 2005-02-04 05:09:41 »

The door links are one-way and they seem to work about right in that regard.

>If I only I could fit more than one level into the game

I think you can put in about 3-4 levels. Right now I can put the class and 2 levels (the last one from me and the last one from jbanes) into one zip and it ends up with 4027 bytes (7zip).

The levels gets compressed very well, but the per level overhead is huge(*). So... just put all levels into one file and you have that overhead only once. (I'm doing the same for bre4k for that reason Wink)

(* about 150 bytes. The levels themselfes compress down to 60-90 bytes)

yet anther edit:

Two way doors can be used for "interesting" things. Like somewhere at the beginning is a barrier you can't pass, you take a door to some other place, grap the key, go back through the door and finally go through the barrier Smiley

It's a pretty nice game design pattern, which you can see in a lot of games like... zelda. Somewhere at the begining is a rock in the way... later on you get bombs... go back and nuke the rock away.

The "secret" I'd added was also similar to that (in an abstract way) Wink

Oh and in the editor... the door links could be drawn as lines. Usually entity connections are shown like that in editors.

弾幕 ☆ @mahonnaiseblog
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #16 - Posted 2005-02-04 05:26:55 »

Right, thats it, what settings are you using for 7zip, and how are you using it command line/windowed? I can never get it to be better than kzip which is what you've got.

3 levels, that'd be stonking. Little bit more logic to handle the level change and voila! Excellent.

Going to start another game today at work but will return to this tonight.

Kev

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #17 - Posted 2005-02-04 05:35:42 »

>Right, thats it, what settings are you using for 7zip, and
>how are you using it command line/windowed?

I used the latest beta. Marked the files -> add to archive... zip/ultra. Nothing else.

>I can never get it to be better than kzip

kzip produced a smaller file with 4021 bytes (6 bytes less). I just ran it with:

kzip k @list

(and the list file just contained those 3 file names)

>Excellent

That's what I thought Wink

弾幕 ☆ @mahonnaiseblog
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #18 - Posted 2005-02-04 05:44:40 »

Hm. I just took a look at the original jar. The reason why it compresses so bad is because of the level, which only compresses down to 275 bytes. It's filled with junk (=bad compression) and the editor even hangs if I try to load it.

Mystery solved Smiley

弾幕 ☆ @mahonnaiseblog
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #19 - Posted 2005-02-04 06:02:49 »

Interesting, the level supplied (as you've no doubt seen in the game) is full of empty space (0's). I would have thought that would compress pretty darn well.

Weirder still, that level was created with the level editor and pushed back and forward plenty of times. Unless! Hmmm..

Also.. are you finding the the end block actually lets you win? Just tried the webstart and it seems to reset me to the start.

Kev


Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #20 - Posted 2005-02-04 06:27:37 »

Oooh, nebulous! *thumbs up*

Play Minecraft!
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #21 - Posted 2005-02-04 06:59:53 »

>is full of empty space (0's)

It's not. Well ingame it is all empty space, but the file is filled with trash (I looked at it with a hex editor, because the bad compression was quite the surprise).

>are you finding the the end block actually lets you win?

Yea... "you won"... and it changes rather quickly to press start yadda yadda.

弾幕 ☆ @mahonnaiseblog
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #22 - Posted 2005-02-04 07:06:24 »

I'll make the wait longer.. that "d" file is surprising.. brilliant tho!

Kev

Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #23 - Posted 2005-02-04 14:11:54 »

and once again....very nice!  Runs well here.

win2k, ATI all in wonder 9600
java 1.5
etc...

M

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #24 - Posted 2005-02-04 14:20:20 »

Hmm... I think I figured out the doors. It seems that only the first door link in the level works. Any other doors you add seem to fail silently. (i.e. you pop in and out of the same door) Perhaps none of the door links beyond the first one gets loaded?

Also, 7Zip is able to compress the d1 (mine), d2 (Onyx's), and N.class down to 3,990 bytes. The key to getting that sort of compression is to make sure that you always run 7Zip from the command line. This is very important since the 7Zip GUI doesn't seem to work the same as the command line tool.

Here's the command line string I used:

1  
7z a -tzip -mx=9 neb4k.zip d1 d2 N.class


Translated, that means "7Zip, Add to a Zip file (-tzip) with Maximum Compression (-mx=9), and call it 'neb4k.zip'. The files to add are 'd1', 'd2', and 'N.class'."

Java Game Console Project
Last Journal Entry: 12/17/04
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #25 - Posted 2005-02-04 14:35:12 »

I agree, this one is really good Smiley Gotta try that level editor...

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #26 - Posted 2005-02-04 14:52:47 »

>It seems that only the first door link in the level works. Any
>other doors you add seem to fail silently. (i.e. you pop in
>and out of the same door) Perhaps none of the door links
>beyond the first one gets loaded?

Nah... they work, but they are one-way. That means the linking order is important.

first click=from
second click=to

d3 has 2 door pairs and they work. Really Wink

弾幕 ☆ @mahonnaiseblog
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #27 - Posted 2005-02-04 14:58:44 »

Quote
Nah... they work, but they are one-way. That means the linking order is important.

first click=from
second click=to


Yes, I understand that. I've done several tests with doors, and only one set works.

Quote
d3 has 2 door pairs and they work. Really Wink


No, they don't. I can do the first door that drops you back to the bottom, but the door at the top of the level doesn't work. Maybe it's a bug in the version of Neb4K that comes with the editor? I'll try downloading the self-contained version and see if that works.

Edit: Nope, same problem with the JAR download. Am I the only one seeing this problem? :-(

Java Game Console Project
Last Journal Entry: 12/17/04
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #28 - Posted 2005-02-04 15:14:02 »

>I can do the first door that drops you back to the bottom,
>but the door at the top of the level doesn't work.

They are linked like this:
http://www.kaioa.com/k/doorlink.png

<edit>oh I see... you dropped down to that exit door... I should have made that impossible</edit>

>Maybe it's a bug in the version of Neb4K that comes with
>the editor?

No. The classes are byte-identical (hex editor compare files exact match).

弾幕 ☆ @mahonnaiseblog
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #29 - Posted 2005-02-04 15:24:53 »

Quote
They are linked like this:
http://www.kaioa.com/k/doorlink.png


Onyx, you're not listening. I UNDERSTAND HOW TO CREATE DOORS. THEY DO NOT WORK RIGHT.

However, I figured out the problem. Doors are actually TWO WAY! (How about that, eh?) However, the set of doors that work and the direction that works sort of gets "stuck" once you use a door. Reseting the door can be accomplished by using a teleporter. I've created a small test level to demonstrate:

http://java.dnsalias.com/4k/d-bug

Use one of the doors to go to the top, then try to use the other door. Note how the other door fails, but you can still jump off and use the first door. However, if you use the teleporter, BOTH doors at the top will work!

I'm not quite sure what is causing this bug, though, because it doesn't always seem to hold true. At certain times, it seems you can go back through given doors even though you used another one.

EDIT: Very interesting. In the test file I have, you can always go up, but can only go down after using the teleporter. That's really odd, because the doors on the right are linked to go from the top to the bottom, not the other way around. I'm starting to wonder if the doors don't get confused by teleporters being at the same level as they are. But that doesn't entirely make sense, since I made a level with only doors, and only the first set worked. What kind of wonky optimizations did you put in there Kev!  Shocked

Java Game Console Project
Last Journal Entry: 12/17/04
Pages: [1] 2 3
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (25 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!