Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (488)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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  
  Conquest of Planets (WIP) {Update: Jan 14}  (Read 9670 times)
0 Members and 1 Guest are viewing this topic.
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Posted 2009-01-10 15:51:06 »

Here is a game that I am working on for the 4K.

Conquest of Planets


Play it at http://marber8.freehostia.com/planet.jnlp

Instructions:
You are trying to take over 50% of the planets.  The computer is trying to do the same.
There are 4 planet sizes.  The largest planet has a defense of 50, then 40 for the next smallest, then 30 and 20 for the smallest.  Ships have an attack and defense of 10.  Ships are automatically built at your planets.  The more planets you have, the more ships you can support.  Also having more planets increases the rate at which you build them.

Your planets are red, The computer is blue and gray are neutral.

If you left click on one of your planets it will be selected.  If you then left click on any other planet all your ships will be sent to that planet.  If the new planet is already yours the ships will reinforce it.  If it is neutral or the computer's then you will attack it.  If you click the middle button instead, then only half your ships will be sent.

If you drag select a bunch of planets then all your planets in the rectangle will be selected.

If you right click all your planets will be selected.

If you click on empty space all planets will be deselected.


I am still working on this, but any thoughts are welcome.

TODO:
 - is too easy so will increase the number of planets needed to win
 - make easy and hard options
 - improve ship generation

Offline SimonH
« Reply #1 - Posted 2009-01-10 16:12:17 »

Got about 49% of the planets and;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
java.lang.ArrayIndexOutOfBoundsException: 4
   at P.main(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

 Sad

People make games and games make people
Offline princec

JGO Kernel


Medals: 367
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2009-01-10 16:12:29 »

Aha! I saw a Flash game with this idea implemented nicely. And you're squeezing it into 4k! Shocked

Cas Smiley

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

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #3 - Posted 2009-01-10 18:11:17 »

Got about 49% of the planets and;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
java.lang.ArrayIndexOutOfBoundsException: 4
   at P.main(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

 Sad


Thanks.  I put a debug version up to see if I can find the problem.  Can you please try again?

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #4 - Posted 2009-01-10 18:13:27 »

Aha! I saw a Flash game with this idea implemented nicely. And you're squeezing it into 4k! Shocked

Cas Smiley

Thanks.  Yeah, I got the idea from that game.  It's called Star Baron: http://www.kongregate.com/games/alienpro/starbaron.

Offline toasten

Junior Member





« Reply #5 - Posted 2009-01-10 20:21:23 »

Just played it and got the same NPE.
It came up when attacking an opponents planet, in the moment when my ships arrived.
Offline SimonH
« Reply #6 - Posted 2009-01-10 20:22:22 »

Hmmm. Can't seem to replicate it with the debug version...

People make games and games make people
Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #7 - Posted 2009-01-10 20:59:27 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
java.lang.ArrayIndexOutOfBoundsException: 4
   at P.main(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Occured when the AI was attacking a planet of his I had just captured.

Seems realy easy to replicate - managed it every game so far  Lips Sealed

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

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #8 - Posted 2009-01-10 22:12:54 »

It occured for me when i was attacking one of his large planets with my entire fleet while he was attacking one of my planets
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #9 - Posted 2009-01-10 22:20:07 »

It is pretty fun, but a little easy i think.

perhaps it might be fun to have different planets generate different ships, i.e. small planets generate weak ships, big plannets strong ships. also a maximum range for the ships would force the player to progress through the planets. currently you can send all your ships from one side to the other with no penalty.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline toasten

Junior Member





« Reply #10 - Posted 2009-01-10 23:00:31 »

Another hint: Most of the time its hard to "click" a planet. Most of the time i need at least two tries until i hit it correctly.  Sad
Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #11 - Posted 2009-01-10 23:02:42 »

currently you can send all your ships from one side to the other with no penalty.

Slowing the speed ships travel would greatly improve that problem, possibly making their speed inversely proportional to the distance they are traveling - thereby making planet hopping the typical strategy.

Also I think allowing multiple concurrent attacks would add a little more depth to the game.

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

Junior Member





« Reply #12 - Posted 2009-01-10 23:32:41 »

I'm in agreement with this being a little, easy, and some of the controls seeming unresponsive/failing to send ships. Needs a bit of work.

Also, to further continue the string of "game inspiration", I believe that flash game you linked took it's concept from an earlier game on kongregate (which, frankly, probably took it's idea from some other indie game somewhere), called Nano War (http://www.kongregate.com/games/badben/nano-war).

It might be worth taking a look at how this game set up it's mechanics, as it's a slower paced, but still very intense game (I rather liked it, anyway). Having some indication of the strength of the neutral territory you're attacking would be good, and I definitely think complete dominance should be the condition for victory, as it's much more satisfying.

Perhaps, also, middle click for send all, and left click for sending half. Maybe this is just what I'm used to, but I thought it worked well. Although with the fast pace ship sending, maybe the 100% send is more practically useful. So perhaps disregard that. Or maybe use a ctrl-key modifier instead of a middle click, I'm not that fond of middle click as a thing I have to click rapidly/often. I'm not sure really though.

Good luck, hope to see this emerge into one of my favorites (I really enjoy these styles of games, for some reason)
Offline CommanderKeith
« Reply #13 - Posted 2009-01-11 01:33:00 »

Awesome gameplay, love it. One of the best game play concepts for a 4k that i've seen.

Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #14 - Posted 2009-01-11 01:43:50 »

hmm, lost a planet to the AI early on, and now I have 7 of 5 ships.
Unfortunately I don't actually have 7 ships... I have 0, but as it thinks I have 7, won't spawn any more ><

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

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #15 - Posted 2009-01-11 04:02:44 »

Thanks for all the comments and bug reports guys.  Will look into them.

Yes it is definitely too easy.  I have over 300 bytes left to work with.  I'll see what I can do.

Thanks again.

Offline SunshineKiller

Junior Member





« Reply #16 - Posted 2009-01-11 05:18:18 »

wow i love it, fun game, it did crash on me tho...i guess i got to crazy moving ships.

<b>Check out my Development Blog:</b> <a href="http://www.scottscreations.com">Scotts Creations</a> | <b>Games in Development: </b> <a href="http://mechwarfare.scottscreations.com">Mech Warfare</a> | Mech Warfare: Facebook Edition | Game Master
Online cylab

JGO Ninja


Medals: 43



« Reply #17 - Posted 2009-01-11 13:02:22 »

would be great to introduce a maximum flight distance (indicated by a circle maybe), so you have to move a bit more strategic. so you can make levels where certain planets are only reachable from one neighboring planet, so you would have a fight for the transfer planet. also the build rate should depend on the planet size. if combined you could make a some interesting strategic challenges.

Edit: And change the goal to conquer all worlds. Let the enemy ships add to the defence af a planet.

Mathias - I Know What [you] Did Last Summer!
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #18 - Posted 2009-01-11 23:03:23 »

I changed it so you now have to take over all the planets.  The ships also move slower.

Fixed the ArrayIndexoutOfBoundsException and the ship counting problem.

It is still too easy.  I will see if I can put a range limit.  I think I will put an easy mode and a hard mode.  This can remain as easy and hard will improve the computer in a couple of areas and see how that goes.

Thanks for all the comments so far.  Keep 'em coming.

Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #19 - Posted 2009-01-11 23:41:12 »

I guess you know it's broken atm?

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

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #20 - Posted 2009-01-12 00:11:55 »

I guess you know it's broken atm?

Oops.  Fixed now.  There is a selection for easy or hard, but hard isn't that hard yet.

Offline SunshineKiller

Junior Member





« Reply #21 - Posted 2009-01-12 03:21:00 »

sweet, beat hard Cheesy what could be a cool add on is like special planets...?where with a different symbol it creates ships faster or has better defense etc...its looking good tho

<b>Check out my Development Blog:</b> <a href="http://www.scottscreations.com">Scotts Creations</a> | <b>Games in Development: </b> <a href="http://mechwarfare.scottscreations.com">Mech Warfare</a> | Mech Warfare: Facebook Edition | Game Master
Offline nva225

Junior Member





« Reply #22 - Posted 2009-01-12 04:17:21 »

Quick suggestion: if you're having issues making hard mode hard (maybe you have enough good ideas, I don't know), just "cheat" a little and make the cpu start out with more planets. I messed up the beginning of my last game (hard mode), because I managed to send, on three consecutive attempts, just not enough ships to take over a planet (due to me sending them "out of sync" and just not waiting long enough). By the time I started capturing planets, the cpu had 5 or 6 planets already, while I just had 3. I found it a healthy challenge trying to beat the computer then, but could still overcome it.

Also, there's a greater feeling of satisfaction if you beat an opponent who actually has more forces than you, as you just feel like you're all that much smarter.  Wink
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #23 - Posted 2009-01-12 16:12:39 »

Lots of good ideas coming in.  Thanks.

I uploaded a new version.

Now the you are limited in the amount of ships that you can send.  The maximum number of ships you can send is half that are orbiting each planet.  So if you have 2 planets selected with 5 on the first and 8 on the second and you send them to attack a planet, the first will send 3 and the second will send 4.

If you select the hard setting, the computer will start with 4 planets and will make decisions a lot quicker.

Also note that each time you play, the map is randomly generated.(It always has been)

I have tried fixing the problems with clicking sometimes not working, but it is difficult to pin down the solution.

There was kind of a bug with the way I moved ships around.  They would belong to their source until the reached their destination.  So if the source planet was attacked those ships would take damage.  I separate moving ships from the planets now until they reach their destination.  This also prevents you from getting ships in flight to go to a new destination before reaching the old one.

Online cylab

JGO Ninja


Medals: 43



« Reply #24 - Posted 2009-01-12 17:50:59 »

battling the enemy is fun! Smiley

some notes:

- I dunno about the send limitation, seems you just have to wait longer to make a move... a bit boring
- also it seems the limitation does not apply to the enemy ships, which is just unfair
- maybe use the second mouse button: left click - send half your ships (to leave the planet protected), right click - send all (oops, just reread your original post Smiley)
- I _really_ would like to see distance limitation, so you have to conquer with a strategy
- and I still vote for ship production rate dependent of the planet size
- I would skip the maximum ship limit
- add some special planets like
  o "Industrial" - if conquered doubles the ship production of nearby planets
  o "Fortress" - if conquered, every ship in orbit has double defence value
  o "Thinktank" - if conquered, your ships range is doubled (due hi-tech equipment from the scientists Wink)
  o etc.
- make the enemy a bit smarter (like conquering your planets with the lowest defence first)

After 4K suggestions:

- polish
- create more chalenging maps by hand
- make it 4 player online playable Wink

Edit: some more thought

- ship production rate is too high once many planets are conquered, you end up furiously clicking around without any strategy
  (combined with the occasional missed clicks it's no fun...)
- it seems to be random in which orbit the ships appear once your ship limit is reached,
  skipping the maximum limit and using planet size based production rate would imo fix this...

 

Mathias - I Know What [you] Did Last Summer!
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #25 - Posted 2009-01-12 18:49:41 »

- also it seems the limitation does not apply to the enemy ships, which is just unfair
You are right.  I was just tring to make it more challenging this way.
- I _really_ would like to see distance limitation, so you have to conquer with a strategy
This is still a possibility.  Though I don't know if I could show it graphically.
- and I still vote for ship production rate dependent of the planet size
- I would skip the maximum ship limit
This is also a good one.  So if you send 20 ships to a planet that supports 3 you lose the rest.
- add some special planets like
  o "Industrial" - if conquered doubles the ship production of nearby planets
  o "Fortress" - if conquered, every ship in orbit has double defence value
  o "Thinktank" - if conquered, your ships range is doubled (due hi-tech equipment from the scientists Wink)
  o etc.
Doing this while making the computer think about the types would blow the size off the top.  I just think I could make it fit.
- make the enemy a bit smarter (like conquering your planets with the lowest defence first)
I do have some room left so I can work on the AI.
- ship production rate is too high once many planets are conquered, you end up furiously clicking around without any strategy
  (combined with the occasional missed clicks it's no fun...)
- it seems to be random in which orbit the ships appear once your ship limit is reached,
  skipping the maximum limit and using planet size based production rate would imo fix this...
I think I will try the x ships / planet and see how that works.

Thanks, all great comments.

Offline bienator

Senior Member




OutOfCoffeeException


« Reply #26 - Posted 2009-01-12 18:51:53 »

i like the idea of limiting the fleet per click but:
-keep the outgoing planet selected
-->multiple clicks multiple fleets; this is IMO the best way to distribute an overpopulated planet
-fix the missed clicks issue Wink

what about a mother planet? you have to conquer all moons (small planets around the mother planet) to land on the planet and win. Moons don't produce ships very fast but the mother planet does.

good work!

Online cylab

JGO Ninja


Medals: 43



« Reply #27 - Posted 2009-01-12 19:24:26 »

Quote from: cylab
- I _really_ would like to see distance limitation, so you have to conquer with a strategy
This is still a possibility.  Though I don't know if I could show it graphically.

A simple green circle around each selected planet would be sufficient. No space left?

Quote from: cylab
- and I still vote for ship production rate dependent of the planet size
- I would skip the maximum ship limit
This is also a good one.  So if you send 20 ships to a planet that supports 3 you lose the rest.

Sorry, I don't understand what you mean. I would like the planets to produce ships steadily with no limit at all, just let the production speed depend on the size of the planet.

What did you understand or what do you have in mind? 

Mathias - I Know What [you] Did Last Summer!
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #28 - Posted 2009-01-12 19:53:09 »

A simple green circle around each selected planet would be sufficient. No space left?
This is also a good one.  So if you send 20 ships to a planet that supports 3 you lose the rest.
It's just the way I programmed it.  I go through all the planets making decisions and drawing them all at once, also checking for mouse clicks and everything else.  So to show range would be a challenge structurally.  Although now that I think of it I could move the mouse click and that might fix the click not registering problem.

Sorry, I don't understand what you mean. I would like the planets to produce ships steadily with no limit at all, just let the production speed depend on the size of the planet.

What did you understand or what do you have in mind? 
I was thinking each planet can only support a certain amount of ships in orbit.  If you go past that you lose the rest that try to go there.  If I did this I would go back to letting you move all your ships instead of limiting you to half.

Online cylab

JGO Ninja


Medals: 43



« Reply #29 - Posted 2009-01-12 20:01:20 »

I was thinking each planet can only support a certain amount of ships in orbit.  If you go past that you lose the rest that try to go there. 

Hmm, I don't know how this would affect the gameplay, but it seems a bit unlogical from a real world perspective. Also I fear this could lead to some frustration in the heat of the action.

Mathias - I Know What [you] Did Last Summer!
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.

TehJavaDev (17 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

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

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

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

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

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

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

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

BurntPizza (36 views)
2014-08-08 02:01:56
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!