Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (512)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Moo4k [Completed]  (Read 5762 times)
0 Members and 1 Guest are viewing this topic.
Offline MetalBeetle

Senior Newbie





« Posted 2011-02-23 09:09:02 »

So I thought I'd make a turn-based strategy game, as I haven't seen much of that kind of game in the contest. Moo4k is a stripped-down space strategy game, more like a board game in that you get one action a turn.

Play it here

(Detailed manual further down that page.)

Thoughts?
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2011-02-23 14:41:48 »

So complex and feature packed!!! I love it!!
Can be a bit confusing to get going at first but the more you play, the better you get Grin

Is the game supposed to end anytime soon? Wink
All my planets got captured and the game kept going on and on. There should be a Quit button, if you can fit it in.

Great job!!

EDIT: I think you win the prize for longest time to play an online game. Tongue
EDIT2: You should make it harder to raid and be raided. Maybe make raiding harder the more defences you have.
EDIT3: Is it possible to move your fleet to another planet?

Offline MetalBeetle

Senior Newbie





« Reply #2 - Posted 2011-02-23 16:26:09 »

All my planets got captured and the game kept going on and on. There should be a Quit button, if you can fit it in.
EDIT3: Is it possible to move your fleet to another planet?

I'm glad you like it. I'm afraid it's within a few bytes of 4096, so while those two would be very useful additions, they don't fit without some re-engineering.

I *am* writing a cleaned-up version of it that supports proper multiplayer and some more stuff though. Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2011-02-23 18:11:56 »

I would love the play the multiplayer version with some friends! Make sure to post the link Grin

Offline Mike

JGO Wizard


Medals: 86
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #4 - Posted 2011-02-23 19:25:28 »

That was great Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #5 - Posted 2011-02-24 01:26:56 »

Very well done, but I found it too hard. Once I get to about 4 or 5 planets the other players are already everywhere else and easily take over my planets.

Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2011-02-24 01:48:40 »

Very well done, but I found it too hard. Once I get to about 4 or 5 planets the other players are already everywhere else and easily take over my planets.
Really? I found it too easy Tongue
Once I got the hang of it, I easily won every single game I played.

Tips:
1. Raid and tax a lot!
2. Build up defenses as much as possible when you invade and capture a planet.
3. Try to invade planets with that color's fleet on it since half of their fleet is destroyed upon the invasion.

Offline Addictman

Senior Duke


Medals: 3
Projects: 1


Java games rock!


« Reply #7 - Posted 2011-02-24 07:58:43 »

Holy.... I loved it. So much nice gameplay in such a small package. Good job!
Offline MetalBeetle

Senior Newbie





« Reply #8 - Posted 2011-02-24 08:07:16 »

ra4king has got it pretty much perfect strategy-wise. Smiley I would only add to that that it's a lot cheaper to colonise than to invade, so at the start of the game, rapidly colonise anything that isn't Poor or Barren, and fortify each planet just after colonisation - as otherwise the computer will grab it from you.

The other thing worth mentioning is that the formula for how many ships you lose when attacking means that if you want to lose no ships at all, the number of attacking ships must be three times the number of the defences. (Planetary defences plus any fleet present.) And you can lose up to half your ships when attacking, so don't get into too many narrowly won battles, or you'll spend all your time rebuilding your fleet.
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #9 - Posted 2011-02-24 08:26:17 »

ra4king has got it pretty much perfect strategy-wise. Smiley I would only add to that that it's a lot cheaper to colonise than to invade, so at the start of the game, rapidly colonise anything that isn't Poor or Barren, and fortify each planet just after colonisation - as otherwise the computer will grab it from you.

The other thing worth mentioning is that the formula for how many ships you lose when attacking means that if you want to lose no ships at all, the number of attacking ships must be three times the number of the defences. (Planetary defences plus any fleet present.) And you can lose up to half your ships when attacking, so don't get into too many narrowly won battles, or you'll spend all your time rebuilding your fleet.
Actually, from the many games I played, fortifying your current planet first is important, THEN colonize since if you colonize too much, you will not be able to afford defenses and your planets will be snapped up quickly by the enemies Grin

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

Senior Newbie





« Reply #10 - Posted 2011-02-26 10:29:03 »

Really cool game, a bit way to easy, but i enjoyed playing it. Just a question: Do you have a less cleaned up version somewhere? I tooked a look into the source and its damn hard to read Smiley I really like to improove it a bit for my own, so...

Regards
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #11 - Posted 2011-02-26 20:44:08 »

Really cool game, a bit way to easy, but i enjoyed playing it. Just a question: Do you have a less cleaned up version somewhere? I tooked a look into the source and its damn hard to read Smiley I really like to improove it a bit for my own, so...

Regards
Source code? Where? I wanna take a look at it! Tongue

Offline Localhorst

Senior Newbie





« Reply #12 - Posted 2011-02-27 10:17:26 »

Javadecompiler produces a quite near to the original code. This does not include the Variablenames and also the Comments are missing, but it helps to understand the application.

Regards
Offline MetalBeetle

Senior Newbie





« Reply #13 - Posted 2011-02-27 12:09:19 »

I've submitted the source code along with the game, so the code will be be available shortly. Not that it will look much different than the decompiled code, I fear.
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #14 - Posted 2011-02-27 13:30:18 »

Javadecompiler produces a quite near to the original code. This does not include the Variablenames and also the Comments are missing, but it helps to understand the application.

Regards
How do you decompile the game?

I've submitted the source code along with the game, so the code will be be available shortly. Not that it will look much different than the decompiled code, I fear.
Thanks!

Offline Localhorst

Senior Newbie





« Reply #15 - Posted 2011-02-28 09:47:47 »

This is simple, extract the .class file from the jar (or if you have a pack'ed version use unpack200 for extracting) and load the file with this tool:
http://java.decompiler.free.fr/?q=jdgui

There are some other decompilers available, but their result is less reliable and readable.

Cheers
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #16 - Posted 2011-02-28 21:25:37 »

This is simple, extract the .class file from the jar (or if you have a pack'ed version use unpack200 for extracting) and load the file with this tool:
http://java.decompiler.free.fr/?q=jdgui

There are some other decompilers available, but their result is less reliable and readable.

Cheers

Wow thanks!

Offline MetalBeetle

Senior Newbie





« Reply #17 - Posted 2011-03-01 09:07:33 »

As promised, here's the source: https://gist.github.com/848867
Offline SwampChicken
« Reply #18 - Posted 2011-03-01 14:31:26 »

As promised, here's the source: https://gist.github.com/848867

Appreciated.
Offline MetalBeetle

Senior Newbie





« Reply #19 - Posted 2011-03-01 14:47:21 »

(Have fixed up the indentation to be less mountainous.)
Offline Localhorst

Senior Newbie





« Reply #20 - Posted 2011-03-22 10:26:47 »

Hey, sorry that your game did not come up to one of the first positions. I love it that much that i ported it to Delphi. No kidding, but the cpu fan on my laptop is extremely nagging while using java.
It seems to be working like the original, but somehow the ai is much too passive. I guess there is some sort of typo, maybe you could have a look?
I uploaded the source and the binary to:
http://www.mediafire.com/?sbhb1n0sjfnql9s

Peter
Offline MetalBeetle

Senior Newbie





« Reply #21 - Posted 2011-03-22 11:28:04 »

I'm flattered. Smiley

Have you considered replacing the targeting code with something like "attack the first planet you can attack" and then building up from there? My code is fairly terrible anyway.

BTW, try the code at https://gist.github.com/848867/ - it should now be much less of a drain on your CPU, as it will only update when needed.
Offline Localhorst

Senior Newbie





« Reply #22 - Posted 2011-03-22 12:13:48 »

I did not considered changing the algorithm at all, at least unless i find the reason why the ai is not working similar like in the java original. My guess is that it might be caused by the loops and goto constructs you made. Since i stopped dealing with basic (15 years ago), i tried to avoid labels Wink

The new update code should help a bit, but in my case the fan always start once java is loaded. Its java related i guess Smiley
Pages: [1]
  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.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (35 views)
2014-10-15 16:18:58

TehJavaDev (66 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!