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 (537)
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  
  Ultimate Wars (Updated 6/30/2014)  (Read 1376 times)
0 Members and 1 Guest are viewing this topic.
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Posted 2014-06-25 01:16:05 »

Hey guys,

A long time ago, a little over a year ago, I decided to make a sort of army simulator but it would include various warriors and monsters. The idea was that they would fight one another and whoever won would be superior to the other. So I built the basic framework but i then abandoned it because, well, I started on Astrofirm. Well today, I took on the task of making it into something. That thing is what I am showing you today. It is made with Java2D LibGDX so I decided just to draw units as basic shapes in order to save on performance. Anyway here it is:

Screens:



Download Here

Enjoy!


Controls:
WASD- move the camera
Q- bring the battle edit window back
Space- pause / un-pause the game
T- Toggle Unit AI between new and old
R- Toggle between new and old textures (no performance improvements)
Left Shift- Slow Motion


I forgot to mention that the battles are generated randomly according to the settings and values  you put into the Battle Options window. There are currently 3 battle types: Cluster, Random, and Four corners of death. And there are 5 unit types: Human, Zombie,Ogre,Ninja, and Death (warning: Death units are so overpowered that it takes a large group of other units in order to take one death unit down. Use responsibly Wink )

There are also some blood options

V 2.6:26:14.11:24
CHANGE LOG:
 - Switched to LibGDX
 - New Unit and Blood textures (can switch back to blocks by pressing "R")
 - New Unit AI (Can switch back to old AI because the new one makes things less exciting but more realistic *note: both AIs need improvement*)
 - Added defaults to the Battle Options window
 - Slow Motion
 - Bug Fixes

V 3.6:30:14:7:56
CHANGE LOG:
 - Create and load Units via XML
 - Betterish Ai
 - Updated GUI to better fit the xml loading



Offline Coldstream24
« Reply #1 - Posted 2014-06-25 12:01:10 »

Very nice - you should add a speed toggle so you can slow down/speed up the simulation as you please.

Yes, I am that same incredibly famous Internet musician.
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #2 - Posted 2014-06-25 13:25:30 »

You know I was thinking about doing that too. It will probably be in The next update

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online LiquidNitrogen
« Reply #3 - Posted 2014-06-25 14:34:42 »

that was more entertaining that it looked lol. It could do with some default settings, its hard to work out some of the limits. now you just need some terrain obstacles, some goal and method of scoring (place certain amount of zombies in certain designated areas to try to kill the orges, etc) use your ponts to buy more mobs to place lol. it could make quite a nice simple strategy game without even any graphics.
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #4 - Posted 2014-06-27 05:21:49 »

V 2. 6:26:14.11:24
CHANGE LOG:
 - Switched to LibGDX
 - New Unit and Blood textures (can switch back to blocks by pressing "R")
 - New Unit AI (Can switch back to old AI because the new one makes things less exciting but more realistic *note: both AIs need improvement*)
 - Added defaults to the Battle Options window
 - Slow Motion
 - Bug Fixes

Updated Controls:
WASD- move the camera
Q- bring the battle edit window back
Space- pause / un-pause the game
T- Toggle Unit AI between new and old
R- Toggle between new and old textures (no performance improvements)
Left Shift- Slow Motion

Download Here

Offline VIrtueeL
« Reply #5 - Posted 2014-06-27 05:43:37 »

really funny =D
Offline Longarmx
« Reply #6 - Posted 2014-06-27 05:50:31 »

I had a really bad crash the first time that I couldn't reproduce.

I clicked generate battle and the game stopped responding.
I tried to switch to it but the battle options window wouldn't let me. I also couldn't close the options window.
I tried ending both processes but they wouldn't end.
I then had to terminate javaw.exe and spam the "close window" popup until they both closed.

Like I said, I couldn't reproduce but it the worst Java crash I have ever had.

Now that that's out of the way, cool simulator. I couldn't tell a difference between the new and old AI though. Do they just perhaps not clump on one target? I lost sight of the battle sometimes, maybe you could have a "reset camera" button which would zero it.

Edit: Also, when most of the creatures were killed of, they just separated and didn't move. Maybe other things weren't close enough to them to trigger chasing?

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #7 - Posted 2014-06-27 06:06:12 »

Thanks for the kind words  Grin,

I have experienced that crash a few times (about one in every fifty or so launches) but everything is seemingly fine in the console. I can't pinpoint where it could be coming from and I also can't reproduce it so I can't fix it right now , but I will have to.

The AI is very buggy right now but the two are a little different. In the Old AI you should see more blood centered around the North East and South West diagonals of the Battlefield bounds but with the new, blood is more spread through out the whole area.

The whole stopping thing might come from two things: first, the Ai just gave up or second, a ninja paralyzed that Unit. Basically, each Unit has an effect than they can perform on other Units about 3% of the time when they attack: Zombies can turn Humans into Zombies; Humans can cure Zombies and make them human; Ninjas paralyze their foes; Ogres get Higher attack and movement speed; Death units get nothing because they are way too overpowered as it is.

Offline VIrtueeL
« Reply #8 - Posted 2014-06-27 17:46:52 »

add more stuff to it i enjoyed play this xD add like battels

so you are one team and you gota fight others and kill all of em and you can like upgrade weapons and armor and stuff
like an rpg or something

EDT: hit me up on skype: tomastero

and we can talk =D
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #9 - Posted 2014-06-27 22:40:43 »

Example of a Unit XML file:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
<?xml version="1.0"?>
<config>
   <unit id="2">
      <name>Ninja</name>
      <speed>2.5</speed>
      <defence>15</defence>
      <attack>15</attack>
      <swing>15</swing>
      <range>25</range>
      <regen>.01</regen>
      <red>.5</red>
      <green>.5</green>
      <blue>.5</blue>
   </unit>
   
</config>


If you have any suggestions please feel free to say them.

@VIrtueel
I like those suggestions, they will probably be in a future update after I add vague army control. As for Skype, i don't like to give out my Skype, but if you really want to talk, I'm like Google Hangouts. Be warned though, I only message people because my house isn't exactly quiet and you can get the point across much quicker in messages. (plus, there are emojis  Grin!) Google+ Page Pointing

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mac70
« Reply #10 - Posted 2014-06-27 23:57:45 »

Example of a Unit XML file:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
<?xml version="1.0"?>
<config>
   <unit id="2">
      <name>Ninja</name>
      <speed>2.5</speed>
      <defence>15</defence>
      <attack>15</attack>
      <swing>15</swing>
      <range>25</range>
      <regen>.01</regen>
      <red>.5</red>
      <green>.5</green>
      <blue>.5</blue>
   </unit>
   
</config>


How about something like this?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
<?xml version="1.0"?>
<config>
   <unit id="2" name="Ninja">
      <speed>2.5</speed>
      <defence>15</defence>
      <regen>.01</regen>
      <weapon attack="15" swing="15" range="25"/>
      <color r=".5" g=".5" b=".5"/>
   </unit>
   
</config>


If you are using DOM XML, then reading XML like this is very easy and extensible - for example, you can have Color class with constructor Color(Element) which read color data from Color element - the same with weapon and unit itself (I had no idea for speed, defence and regen).

This way, if you stick to this scheme, you can for example use <color/> element in any other entity informations.

Check out my Devblog! Smiley
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #11 - Posted 2014-06-28 23:58:28 »



How about something like this?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
<?xml version="1.0"?>
<config>
   <unit id="2" name="Ninja">
      <speed>2.5</speed>
      <defence>15</defence>
      <regen>.01</regen>
      <weapon attack="15" swing="15" range="25"/>
      <color r=".5" g=".5" b=".5"/>
   </unit>
   
</config>

[/quote]

Ok, I have set up the xml parser to use that format, thanks. I though that the original was very ugly so this was helpful  Grin
[Edit]
I am working on a way to dynamically make/load mods. Wish me luck! update after this is done!

Offline AppleSauce
« Reply #12 - Posted 2014-06-29 00:13:54 »

Really unique, reminds me of supersmash bros. I thought the AI could have been improved a bit, they move pretty fast.
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #13 - Posted 2014-07-01 01:58:00 »

Woo new update!
V 3.6:30:14:7:56
CHANGE LOG:
 - Create and load Units via XML
 - Betterish Ai
 - Updated GUI to better fit the xml loading
 - Default Unit installation

You can now load Units from .xml files! All you have to do is after running the game at least once, go to the Ultimate Wars folder in your AppData. Once there go into the Units folder and there ya go. Just add an xml file that follows this format and put it into that folder or just edit a file that is already there:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
<?xml version="1.0"?>
<config>
   <unit id="2" name="Ninja">
      <speed>2.5</speed>
      <defence>15</defence>
      <regen>.01</regen>
      <weapon attack="15" swing="15" range="25"/>
      <color r=".5" g=".5" b=".5"/>
   </unit>
   
</config>


DOWNLOAD HERE



Pages: [1]
  ignore  |  Print  
 
 

 

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 (17 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (18 views)
2014-08-01 19:37:19

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

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

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

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

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

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

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

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