Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  CraftCraft  (Read 11314 times)
0 Members and 1 Guest are viewing this topic.
Offline Damocles
« Posted 2010-12-11 22:50:58 »

Hi, I wanted to show my progress on "CraftCraft"

Its a RTS/Mission Game.
You are command of a Rebel Group, that has to fight of a Military Invasion,
on several parts on one of your Space-Supply-Stations.
Your basic Objective is to kill all Intruders, on several sections of the spacestation to finish each mission.

Left-Click / Drag: select your units.
Right-Click:  order to walk

The game contains yet:
-Fog of War
-Full Pathfinding
-simple Statemachine AI

You will notice that most of your companios are locked in Stasis-Chambers, get close to release them
At Start and at some Positions are Healing docks, wich slowly regenerate Health to the unit that steps onto them.

Thanks, Damocles

Here the sourcecode:
Offline zammbi

JGO Coder

Medals: 4

« Reply #1 - Posted 2010-12-11 23:01:53 »

All in 4k? Amazing stuff. Keep up the good work.

Current project - Rename and Sort
Offline Damocles
« Reply #2 - Posted 2010-12-11 23:08:21 »

The Fully Packed Version is around 4300Bytes currently,
I probably have to squeeze some stuff a bit more.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel

Medals: 120
Projects: 15


« Reply #3 - Posted 2010-12-12 00:48:39 »

oh thats impressive for 4k, still a bit buggy e.g. drag select (from bottom-right to top-left) doesn't work or that mission doesn't end when it should. Still very nice so far.
Offline Damocles
« Reply #4 - Posted 2010-12-12 01:00:47 »

Yes, there are some bugs left.
They would be easy to solve without a 4k limit.

I probably have to cut down on some graphical features, to have more space for
a smoother gameplay.
The statemachine can probably be written more efficient too.

Any Suggestions:
What should I cut out in favor of gameplay:
-Fog of War
-Unitsprite (makeing a lower Quality version)
-simpler Maprendering
-the Pathfinding (replacing it with a simple direct walk)
-Image smoothing
Offline princec

« JGO Spiffy Duke »

Medals: 1033
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #5 - Posted 2010-12-12 01:13:11 »


Cas Smiley

Offline SquashMonster

Senior Devvie

Medals: 1
Projects: 2

« Reply #6 - Posted 2010-12-12 01:54:06 »

Yeah, fog is the least necessary of the features you listed.

The game is very impressive.  The graphics are great.

How exactly do you get your guys to attack? Is there a way to specifically target an enemy soldier? I have trouble getting my men to engage unless they've been sitting still and the enemy has be firing at them for some time.  If there isn't a way to target a specific enemy, I would put that on top of any potential feature wishlist.  Without it my mad actual-starcraft skills are useless.
Offline Damocles
« Reply #7 - Posted 2010-12-12 01:59:21 »

Yes, the unit-attack routine is flawed.
Your units have a cool-off time to look for enemies, after getting a move command.
(Trying to make a mix between normal and attackmove)

If I have space, I can implement an attack-movement (using A key), and a normal movement (ignoring others , until reaching destination)


Or I have to "redraw" from the 4k goal, and
make a complete RTS with Basebuilding and different Units in 8k  Wink
Offline SquashMonster

Senior Devvie

Medals: 1
Projects: 2

« Reply #8 - Posted 2010-12-12 03:31:43 »

Heh, I made a complete RTS with basebuilding and ten different units in 4k last year by skipping pathfinding, scrolling, and fog of war.  So I think you're fine with just the ones I missed, it makes us even  Wink.
Offline appel

JGO Wizard

Medals: 80
Projects: 4

I always win!

« Reply #9 - Posted 2010-12-12 04:31:45 »

The thing with these kind of games is defining the stuff you can get without, and just put the most useful things in.

You can define pathfinding away, saving yourself space for something more valuable.
Fog-of-war is fine, it does serve a purpose in the gameplay, forcing the player to explore.

Even as a non-4k, the graphics look amazing. Shocked
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Scarzzurs
« Reply #10 - Posted 2010-12-12 09:36:26 »

Gave it a quick try.
Completed the first mission in around 5th try. Quite hard for a first level. :-)

When I completed the mission the screen seemed to go all white. After a while I started to click it, and got the following error:
Exception in thread "Thread-10" java.lang.ArrayIndexOutOfBoundsException: -143
   at C.a(Unknown Source)
   at Source)
   at Source)

Other than that, it looks really nice (despite graphics being a Starcraft ripoff).
Checked the size of my source code for a half-finished game i'm working on to comparison => 4k seems quite amazing! :-)
How much would you say the quality of the code, that is readability, stability (corner case checks among others) are affected by these constraints?

- Scarzzurs

My games and Projects:,
Old website
Offline Damocles
« Reply #11 - Posted 2010-12-12 12:36:04 »

I will add some corner case checks, and better unit reaction first.
Then I will see how much I "hang over" the 4k Limit. I can probably replace the Unit-Graphics with a vector-generated one, should
save some space.

Taking out the FofOfWar would result in a problem with the gameplay, as its easy to see where to go, and the enemies are.
Some graphicsl stuff and the Texts should be cut out too. Especially the text wastes a lot of space.

Something Else:

I cant seem to load my "pack.gz" file via the net, but it works locally.
Does the webserver have to impose some Mime-Type defenition to make it load?
I cant really change the Apache settings.
Maybe someone else has to host it then.

(thats why the larger jar version is used here)
Offline kevglass

« JGO Spiffy Duke »

Medals: 319
Projects: 25
Exp: 22 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #12 - Posted 2010-12-12 12:42:58 »

I get one of these:

Exception in thread "Thread-10" java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(Unknown Source)
   at java.awt.image.Raster.createPackedRaster(Unknown Source)
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
   at java.awt.image.BufferedImage.<init>(Unknown Source)
   at Source)
   at Source)


Offline Damocles
« Reply #13 - Posted 2010-12-12 13:53:38 »

fixed some little Bugs:
-level ends when dead
-Missions should progress correctly
-scroll and click are now in "Bounds"
-Units attack quicker
-switched mission 1 and 3
Offline steveyO
« Reply #14 - Posted 2010-12-12 20:57:42 »

Doesn't work.  Same OutOfMem exception as Kev.  2D Game Editor + Random Graphics Generator
Offline kevglass

« JGO Spiffy Duke »

Medals: 319
Projects: 25
Exp: 22 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #15 - Posted 2010-12-13 10:16:31 »

Worked on my desktop, just not on my laptop. It's really kick-ass!! Smiley


Offline Damocles
« Reply #16 - Posted 2010-12-13 13:19:38 »

Its quite memory intensive. (the tradeoff to making the file small, there is not much space to make a
more advanced memory management)

But I could also run it on my EEEPC netbook with 1GB ram.
Offline Morre

JGO Knight

Medals: 2
Projects: 10

I'm Dragonene on IRC.

« Reply #17 - Posted 2010-12-20 11:58:40 »

This is quite amazing!

I love it. Excellent 4k work going on here. Cheesy

Offline Alan_W

JGO Knight

Medals: 8
Projects: 3

Java tames rock!

« Reply #18 - Posted 2010-12-24 22:20:13 »

The graphics are great. I've never written a RTS myself, so am going to have a good look Smiley  I'm curious about the AI logic.

Regards, Alan

(P.S. I had a bit of difficulty with the mouse scrolling action.  When I opened the page, my mouse just happened to be on the edge of the applet and the game area rapidly shot off the page leaving me with a blank area.)

Time flies like a bird. Fruit flies like a banana.
Offline Damocles
« Reply #19 - Posted 2011-03-01 01:20:21 »

Uh, well, I did not made it quite.
Anyhow, here the reduced version, if anyone likes to try.

Here the sourcecode Wink
Offline appel

JGO Wizard

Medals: 80
Projects: 4

I always win!

« Reply #20 - Posted 2011-03-01 01:55:32 »

Shame  Cry

Maybe next year Smiley
Offline Damocles
« Reply #21 - Posted 2011-03-01 02:03:39 »

Yes, it mostly about the fun to sqeeze functionality into short code.
There a lot of cool entries this year.
Offline MetalBeetle

Senior Newbie

« Reply #22 - Posted 2011-03-01 09:03:48 »

I'm afraid this whitescreens on my mac. Sad
Pages: [1]
  ignore  |  Print  

EgonOlsen (45 views)
2018-06-10 19:43:48

EgonOlsen (27 views)
2018-06-10 19:43:44

EgonOlsen (47 views)
2018-06-10 19:43:20

DesertCoockie (210 views)
2018-05-13 18:23:11

nelsongames (127 views)
2018-04-24 18:15:36

nelsongames (126 views)
2018-04-24 18:14:32

ivj94 (867 views)
2018-03-24 14:47:39

ivj94 (128 views)
2018-03-24 14:46:31

ivj94 (779 views)
2018-03-24 14:43:53

Solater (143 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!