Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (554)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Java] Tracks, Turrets, Armor, & Attitude  (Read 3464 times)
0 Members and 1 Guest are viewing this topic.
Offline ralphchapin

Junior Member


Medals: 3
Projects: 1



« Posted 2013-07-13 00:20:59 »

Tracks, Turrets, Armor, and Attitude is half board game and half RTS.  It's a tactical, realistic war game (relatively speaking) with each player commanding 10 or more (or less) tanks.  Intended for network play, it has good AI so it works for single players also.  Available on, and described more fully by, ralphchapin.wordpress.com.

This game is somewhat involved because of the multi-player aspect and because it allows you to design your own tanks and build your own army, but you can play a simple game very quickly.  On the website menu,  just go to Real Quick Start for the fastest look.

I put this game together over several years, targeting a small group of people.  I'm now interested in seeing if it interests anybody else.

Offline vbrain
« Reply #1 - Posted 2013-07-13 16:58:29 »

Wow, I just took a look at your source code and boy was it complicated and unorganized. You had so many objects all over the place, and I had no idea where the main loop occured or where the entry point of the game was, then I looked into the manifest.mf file and found it obscurely placed in the utils package. I feel like there's a better way to do what you did in checkPhaseWork() in the Game class, instead of creating Objects and casting them to something else later on.
However, the game displayed no lag, even though I have no clue how to play it.
Offline ralphchapin

Junior Member


Medals: 3
Projects: 1



« Reply #2 - Posted 2013-07-13 19:42:07 »

The idea to to hold a majority (3 with 2 players) of the control points for a few minutes.  Then you win.  Or exterminate the enemy.  Tanks shoot automatically, but go where you tell them to.  Drop the green question mark anywhere that looks interesting and you'll get an explanation.

The source code is complicated, but it is highly organized.  The entry point doesn't do anything except create the main window.  There's no main loop.  I suspect the castings you see are objects being retrieved from collections.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online trollwarrior1
« Reply #3 - Posted 2013-07-14 05:19:01 »

Since you're using a lot of Java GUI might as well make it look good!

1  
2  
3  
4  
5  
6  
7  
try{ 
   UIManager.setLookAndFeel(
        UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e){
 e.printStackTrace();
}


Just put this at any point of program and java will pick default look of your operating system.
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #4 - Posted 2013-07-14 07:50:48 »

Since you're using a lot of Java GUI might as well make it look good!

1  
2  
3  
4  
5  
6  
7  
try{ 
   UIManager.setLookAndFeel(
        UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e){
 e.printStackTrace();
}


Just put this at any point of program and java will pick default look of your operating system.
That's pretty off-topic, he didn't ask about GUI or anything. Plus, remember that there's 3 "Java GUI"s - FX, Swing, and AWT.
Online trollwarrior1
« Reply #5 - Posted 2013-07-14 10:15:11 »

Sorry, but I just wanted to help a little to make the GUI look better, since his game uses a lot of it. So you can f**k off you troll.
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #6 - Posted 2013-07-14 11:02:34 »

Sorry, but I just wanted to help a little to make the GUI look better, since his game uses a lot of it. So you can f**k off you troll.
I don't see why you consider that a troll "trollwarrior1" Wink
My point with the GUI is that it was unnecessary. He didn't ask for help with GUI or anything, so posting a code snippet that he may or may not need is just spamming the thread, especially when you're using specific code snippets, and especially with something as minor as native GUI look and feel.
Offline relminator
« Reply #7 - Posted 2013-07-14 15:11:32 »

The source code is complicated, but it is highly organized.  The entry point doesn't do anything except create the main window.  There's no main loop.  I suspect the castings you see are objects being retrieved from collections.

"Highly organized" is a subjective phrase.
Offline SwampChicken
« Reply #8 - Posted 2013-07-14 15:48:35 »

Wow, I just took a look at your source code and boy was it complicated and unorganized.

Where did you see a link to source?
Offline vbrain
« Reply #9 - Posted 2013-07-14 15:51:00 »

Wow, I just took a look at your source code and boy was it complicated and unorganized.

Where did you see a link to source?


There are ways to decompile a jar and view the source code.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ralphchapin

Junior Member


Medals: 3
Projects: 1



« Reply #10 - Posted 2013-07-14 16:23:15 »

Comments on the comments so far (another one came in as I'm writing this):

UIManger.SetLookAndFeel:  Thanks a lot!  I may not have asked, but only because I didn't know enough to ask.  Looks simple and painless.

Highly Organized is not all that subjective.  The code works, which is an pretty objective measure.  Particularly when it's doing the job this code has to do.

Source Code:  Must be decompiled code, which I expect must be somewhat confusing.  You'd need the Javadoc to get a quick (or even slow) sense of how it all fits together.
Offline vbrain
« Reply #11 - Posted 2013-07-14 16:50:35 »

Source Code:  Must be decompiled code, which I expect must be somewhat confusing.  You'd need the Javadoc to get a quick (or even slow) sense of how it all fits together.

No, what I use puts everything together into the original typed letters.
Offline relminator
« Reply #12 - Posted 2013-07-14 16:52:06 »

Some code full of goto statements work too.  Would that qualify them as "highly organized"?
Offline ralphchapin

Junior Member


Medals: 3
Projects: 1



« Reply #13 - Posted 2013-07-14 19:08:36 »

If it can do what TTA&A does then yes, definitely.  It would be way beyond "highly organized".  I could never have done it.  In fact, I could never have written this thing in anything but Java.
Offline sproingie

JGO Kernel


Medals: 202



« Reply #14 - Posted 2013-07-15 20:03:42 »

I'd like to apologize on behalf of the rest of the community to ralphchapin for the shabby treatment he's received after newly arriving here.  Ralph, I hope you've read enough other threads here to see that the responses you're getting on your showcase thread isn't typical of the community, even for criticism.

I like the abstract look, though I will say if you want to make it look more like a game than a business app (that's what swing does to apps), you'll want at least a little more pizazz in the visual department.  But judging by the content you've got on your website, you look like you have quite an ambitious roadmap, and I'd love to see what comes of it.
 
Offline ralphchapin

Junior Member


Medals: 3
Projects: 1



« Reply #15 - Posted 2013-07-17 01:03:11 »

Thanks for your concern.  I will, however, take whatever comments I can get.  Destructive criticism is welcome.  In particular, if something doesn't work, or is unintelligible, I need to know.  All other comments welcome too.

Visual pizazz is important, and I regret the lack.  Unfortunately, it takes time and ability and knowledge, all lacking, so it got a lower priority.  The business app look is probably as much my fault (I've written a lot of business software) as swing's--to be fair to swing.  I'd like to blame it on the nature of the game, but I've seen a bunch of games that ought to have the same problem--lots of little dots running around simple terrain--almost all spaceship games, come to think of it, with absolutely featureless terrain--at least I've got woods, roads, and a river-- (ah hem) --anyway, they manage at least a little bit of pizazz, so I can't claim that excuse.
Offline CommanderKeith
« Reply #16 - Posted 2013-07-17 05:40:07 »

Hi Ralph,
Cool stuff, I like the abstract art too. Clean and crisp. Automatic shooting with less micromanagement is good. The colours work well, nice shades of green.
One small criticism, the tanks are too small, hard to click on and they don't get bigger when zooming.
I played the single player mode and it was good. Nice work getting multiplayer working.
I was working on a game with a similar look but using light and path finding as an attempt to make it more attractive but I lost motivation.
By the way, if you want to style up your swing gui, take a look at substance look and feel. It's a bit of an old project and not maintained by the original author anymore but it looks good.

Wow, I just took a look at your source code and boy was it complicated and unorganized.

Where did you see a link to source?


There are ways to decompile a jar and view the source code.
vbrain, think twice before decompiling someone's game source code without permission and then publicly criticising them for how it appears 'disorganised', which is a matter of opinion and is not a relevant criticism when this is not an open source project.

Offline ralphchapin

Junior Member


Medals: 3
Projects: 1



« Reply #17 - Posted 2013-07-18 00:31:01 »

Hi CommanderKeith,

Thanks.  The tanks do get a lot bigger, but you have to zoom way in.  They're to scale, and each of those squares is a kilometer on a side.  So unless you design and build a VERY big tank, it's hard to keep an eye on the battle and on a tank at the same time.  (But check out the unit tray.)  I'm thinking of using oversized tank images, but until I come up with better visuals for the tanks that's not a big improvement on the dots.  On the other hand, it shouldn't be difficult to click on them; tactical skill is what's supposed to matter here, not eye-hand coordination.
I actually did multiplayer first.  A friend pointed out that a first time player would not want to fire up a host session, an AI session, and a player session before starting his first game, so I mashed them all together.
Pages: [1]
  ignore  |  Print  
 
 

 
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!