Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
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
  ignore  |  Print  
  Bridge4k [done~ish]  (Read 15772 times)
0 Members and 1 Guest are viewing this topic.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Posted 2008-12-31 17:04:24 »

I'm currently working on a bridge builder game (with the working name Bridge4k):

Applet: http://x2d.org/java/4k/bridge4k.html
Webstart: http://x2d.org/java/4k/bridge4k.jnlp



To select or place a node, use the left mouse button.
To deselect or delete a node, use the right mouse button (or ctrl+left mouse).
To run the simulation, press [Space].
To restart the level, prees [R].

"Road parts" can only be built horizontally between the topmost supporting nodes.

I do have a bit of space left. Any comments and suggestions are warmly appreciated!

Offline Renoria

Junior Member




...


« Reply #1 - Posted 2008-12-31 17:13:46 »

Nice physics Grin
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #2 - Posted 2008-12-31 18:49:52 »

Level passed with $1426 unspent ! (i'm sure there is a lot further to go!)
Though I certainly wouldn't trust my life on trying to cross it  Grin

The characteristics of the building material is rather peculiar to say the least!

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #3 - Posted 2008-12-31 22:20:16 »

$1700 unspent!  Wink


Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #4 - Posted 2008-12-31 22:37:28 »

$1723 unspent - though I think i'm stretching the definition of 'level passed', you'll have to build it yourself to see exactly what goes wrong Cheesy (The bridge remains intact)

:edit:

Fixed the dubious behaviour above, and got it down still further @ $1737 unspent  Cool

I love this game - it's a very good simplification of Bridge Construction Set (pontifex 2).

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #5 - Posted 2008-12-31 23:11:13 »

$1773 though it's a dirty one  Roll Eyes (Causes the return-run bug found earlier, and causes the bridge to partially destroy itself too!)

:edit:

Scratch that - found a clean version that is much cheaper! Shocked

$1949

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #6 - Posted 2008-12-31 23:25:57 »

Managed to break it with this incredibly simple bridge design Grin
(when the bridge bends so much that it goes off the bottom the screen the ball rolling logic breaks.)

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #7 - Posted 2009-01-01 00:29:25 »

$2047 - Don't think you can get much cheaper than that  Roll Eyes

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #8 - Posted 2009-01-01 01:46:10 »

Quote
I do have a bit of space left. Any comments and suggestions are warmly appreciated!

Add some kind of mechanism for importing & exporting a bridge design to/from a hex string encoding so we can more easily share bridge designs.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Renoria

Junior Member




...


« Reply #9 - Posted 2009-01-01 02:24:51 »

Good Work Abuse.

Btw, I got this error:

1  
2  
3  
4  
5  
6  
Exception in thread "Thread-7" java.lang.NullPointerException
   at Bridge4k.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-12" java.lang.NullPointerException
   at Bridge4k.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Might wanna fix that?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #10 - Posted 2009-01-01 11:56:48 »

Thanks for the responses!

Renoria - I'm afraid it's rather hard to tell what goes wrong from that exception, but I'll make sure to upload a version with debug information enabled shortly.

Abuse - I had seen a lot of cheap bridges already, but your $2047 takes the prize! Smiley As for importing/exporting bridges: Sure, I could do that. The other option (which would quickly use up most remaining space) is adding levels of difficulty (different support setups, bridge lengths, starting money and ball weights). Which would you prefer?
Also: Yes, Pontifex II is the primary source of inspiration for this game Smiley

Offline Renoria

Junior Member




...


« Reply #11 - Posted 2009-01-01 12:54:46 »

still not fixed =O

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  
Java Plug-in 1.6.0_07
Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
User home directory = C:\Users\David
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Finalize objects on finalization queue ... completed.
Memory: 5,056K  Free: 623K  (12%) ... completed.
Dump classloader list ...
    codebase=http://x2d.org/java/4k/, key=http://x2d.org/java/4k/,Bridge4k.jar, zombie=false, cache=true, refcount=1, info=sun.plugin.ClassLoaderInfo@21b6d
Done.

Reload policy configuration ... completed.
Exception in thread "Thread-6" java.lang.NullPointerException
   at Bridge4k.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #12 - Posted 2009-01-01 14:20:25 »

$2078 Grin

and finally a dirty $2080

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #13 - Posted 2009-01-01 15:13:40 »

Sorry Renoria, hadn't uploaded new version yet. Try it now - should give line numbers when crashing this time (current debug version >4kb, not obfuscated).

Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #14 - Posted 2009-01-01 17:25:10 »

Dirty $2113 - almost certain that can't be beaten  Kiss

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline toasten

Junior Member





« Reply #15 - Posted 2009-01-02 12:10:47 »

One Idea: The game can be played whole by mouse except for start or stop by using space.
Would be great to make to top right text "clickable"  Wink

Other than that, great game. Want to have moooooore Level's  Grin
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #16 - Posted 2009-01-02 12:16:11 »

Another Idea: Allow deletion of edges as well as nodes.

Currently if you create an edge between 2 of the starting nodes, the only way to get rid of it is to restart the app.
This would also help when wanting to remove a single edge from a node that has many others.
Currently you have to delete the edge, and re-add all but the unwanted edge.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #17 - Posted 2009-01-02 14:55:24 »

You don't *really* need to restart the entire app, just the level (by pressing R) is enough... but yeah, I can see why it's a problem Smiley

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #18 - Posted 2009-01-18 22:20:17 »

Updated. There are now levels in the game; they should get progressively harder. Every second and fourth level is a bit different from the standard layout, and the gap widens with each level. Also, the ball gets slightly heavier with each level.

I've still not managed to get those physics more rigid, though (I should really start over, but I lack the motivation).

Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #19 - Posted 2009-01-18 23:20:00 »

hmm.... level 11 is kinda difficult  Roll Eyes (nothing to build off, so can't place any bridge pieces!)

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #20 - Posted 2009-01-18 23:44:46 »

Found a bug, if you rerun the simulation after you have been given the "level passed" message, the level counter is incremented again.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline pjt33
« Reply #21 - Posted 2009-01-19 00:05:20 »

I have two issues. Firstly, the grey stuff looks solid but if I place nodes against it they go through - pretty much forces you to build a suspension bridge because if you undergird it your girders are unanchored.

Secondly, the mouse and key handling is dodgy. The impression I get is that in the event handling method you're storing whether the button/key is down or not in an array, and in a separate thread you're reading that array. I don't think you really care about drags, so I suggest only setting the boolean to true in the event thread and then clearing it in the logic loop.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #22 - Posted 2009-01-19 01:08:00 »

Abuse: Thanks. I'll fix the level counter bug. About very late levels (11 and the like): Yeah, you're right. I didn't think anybody would bother playing that far, but I've been meaning to put a cap on the gap width and instead decrease the amount of money available.

pjt33:
1) It's not meant to be solid ground; it's only decoration. I understand how it may feel odd if you haven't played a similar game before, though. The game mechanics are more or less taken from Pontifex II, in which you can only use a few "support nodes" as a base for your bridge.

2) I'm not sure what you mean about the input handling. I know it was previously buggy, but it really shouldn't be right now. What you suggested as a solution is how it's already being handled. Smiley Could you give me some specs for your machine, please? It may be that it's due to the program running slowly (although even that shouldn't really cause any troubles with the input handling).

Offline pjt33
« Reply #23 - Posted 2009-01-19 01:17:29 »

2) I'm not sure what you mean about the input handling. I know it was previously buggy, but it really shouldn't be right now. What you suggested as a solution is how it's already being handled. Smiley Could you give me some specs for your machine, please? It may be that it's due to the program running slowly (although even that shouldn't really cause any troubles with the input handling).
Odd. I have a 1.7 Ghz box with Debian testing and some version of Sun 1.6 Java - I think it was using 1.6u10, but I'm not certain and I'd probably have to write an app to print system properties and run it with Webstart from the browser to be completely certain. As I'm just about to go to bed, that won't happen tonight.

The symptom I found was that I had to hold the button to get it to recognise the click.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #24 - Posted 2009-01-19 16:14:02 »

Sounds fast enough. Smiley

I'll look into it some more.

Offline SquashMonster

Senior Member


Medals: 1
Projects: 2



« Reply #25 - Posted 2009-01-22 05:30:23 »

I'm really impressed by this, the physics is much better than I would've expected in 4k.  I also like your user interface - the circle showing how far an edge can reach is much more intuitive than most games, where you have to click and drag and hope you have room.  Having the ball go across twice is a good design decision as well, since it prevents you from using a cheap bridge that falls apart as soon as the ball is through.

Have you considered having levels where there's more than one ball going across at once?
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #26 - Posted 2009-02-19 06:35:20 »

I've uploaded a new version. The physics simulation is still dodgy - I won't have time to fix that. However, I have fixed a few arbitrary bugs, improved level progression a bit (I hope), and improved UI usability some.

I've also submitted the game to java4k.com, so it'll probably be there shortly.

I might work on this some more, but it's unlikely that I'll make any major changes since I've started exchange studies in Australia.

Thanks for all the feedback folks! Smiley

Offline zammbi

JGO Coder


Medals: 4



« Reply #27 - Posted 2009-02-20 00:02:01 »

Very cool game.
Works great here.

Current project - Rename and Sort
Offline Ranger
« Reply #28 - Posted 2009-05-16 14:42:20 »

Another bridge game.  Kinda fun:  http://www.buzzfeed.com/scott/cargo-bridge-game-battle
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #29 - Posted 2009-05-16 20:05:08 »

Another bridge game.  Kinda fun:  http://www.buzzfeed.com/scott/cargo-bridge-game-battle

That's pretty cool; though after about 20 odd levels it caused the browser to unexpectedly quit  Lips Sealed

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Pages: [1] 2
  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.

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

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

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

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

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

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

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

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

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
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

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!