Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (108)
games submitted by our members
Games in WIP (536)
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 4544 times)
0 Members and 1 Guest are viewing this topic.
Offline Damocles
« Posted 2010-12-11 23:50:58 »

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

http://damocles11.byethost9.com/craftcraft4k.html

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:

http://damocles11.byethost9.com/applet/CraftCraft.java

Offline zammbi

JGO Coder


Medals: 4



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

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

Current project - Rename and Sort
Offline Damocles
« Reply #2 - Posted 2010-12-12 00: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: 75
Projects: 15


★★★★★


« Reply #3 - Posted 2010-12-12 01: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 02: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 Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


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

Fog.

Cas Smiley

Offline SquashMonster

Senior Member


Medals: 1
Projects: 2



« Reply #6 - Posted 2010-12-12 02: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 02: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 Member


Medals: 1
Projects: 2



« Reply #8 - Posted 2010-12-12 04: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: 50
Projects: 4


I always win!


« Reply #9 - Posted 2010-12-12 05: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

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Scarzzurs
« Reply #10 - Posted 2010-12-12 10: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:
Quote
Exception in thread "Thread-10" java.lang.ArrayIndexOutOfBoundsException: -143
   at C.a(Unknown Source)
   at C.run(Unknown Source)
   at java.lang.Thread.run(Unknown 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:
BlastingPixels.com,
Old website
Offline Damocles
« Reply #11 - Posted 2010-12-12 13: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 Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


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

I get one of these:

1  
2  
3  
4  
5  
6  
7  
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 C.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Kev

Offline Damocles
« Reply #13 - Posted 2010-12-12 14: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 21:57:42 »

Doesn't work.  Same OutOfMem exception as Kev.

https://play.google.com/store/apps/details?id=com.bullsquared.alggame Annoying Little Gits (Android)
www.bullsquared.com   Play java (applet) games! www.chessclockpro.com Free Online Chess Clock
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


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

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

Kev

Offline Damocles
« Reply #16 - Posted 2010-12-13 14: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 12: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 23: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 02:20:21 »

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


http://www.indiespot.net/app/java-four-kay-test?task=html&resource=download.e1da054763ec93fd7d166514641310f5.progrd.java6.bj&className=C&w=800&h=600&ok=resize


Here the sourcecode Wink

http://damocles11.byethost9.com/applet/CraftCraft.java

Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


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

Shame  Cry

Maybe next year Smiley

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Damocles
« Reply #21 - Posted 2011-03-01 03: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 10:03:48 »

I'm afraid this whitescreens on my mac. Sad
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.

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

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

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

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

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

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

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
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

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43
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!