Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
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  
  Combat 4k  (Read 7795 times)
0 Members and 1 Guest are viewing this topic.
Offline nonnus29

Senior Devvie

Giving Java a second chance after ludumdare fiasco

« Posted 2005-02-21 16:14:28 »

OMFG!!!  Nonnus29 made a game!


Here's my entry to the 2005 Java4k Game contest.  It's a remake of the 'classic' Atari 2600 tank battle game in stunning 3d!  Well, maybe not so stunning, but I'm pleased with how smooth the game runs on my computer using only fillPolygon().

A few notes;

- The game is an applet (I started off with an applet then I was far enough along I didn't want to change...)
- It's 4038 bytes
- the ai is very cheap
- when you hit your opponent or your opponent hits you, game over and it resets to the start.
- Can an applet be webstarted?  Why bother?

Here's the link.  Let me know how it runs, suggestions for the remaining few bytes etc....

Here's the jar.
Offline Danskeren

Senior Devvie

Projects: 1


« Reply #1 - Posted 2005-02-21 16:25:48 »

Can an applet be webstarted?  Why bother?  

Hehe yes, why bother. Is the source available? I experience some flickering when programming for applet instead of Application. GUess it has something to do with lack of skills using graphics correctly.

Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #2 - Posted 2005-02-21 16:31:37 »

no flickering for me, it ran smooth.

But whats the objective of the game? everytime i shoot the pink tank, i end up going back to the start...

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jojoh

JGO Knight

Medals: 8
Projects: 8

« Reply #3 - Posted 2005-02-21 17:36:35 »

No flickering, and quite impressive 3D for a 4K game.  Smiley Gameplay gets a bit limited with the "cheap AI", but good technology display. Viewpoint might be a bit further away, and you get a funky "wobbling" of the buildings when driving. Line jumps around a bit. Probably becuse you typecast a float/double to int. If you can afford it you could add 0.5 or use Math.round() to get rid if it. Maybe I am the only one seing it because I had the same problem with Shot 4K Wink
Maybe one more computer tank and/or display of who won if there is enough space.

Offline Malohkan

Senior Devvie

while (true) System.out.println("WOO!!!!");

« Reply #4 - Posted 2005-02-21 19:28:47 »

Yup I like those last comments.  I very much like the 3D effect Wink  I wish my tank game were 3D... anyone wanna take over RoboTank?

Admin and Game Developer at
Play Rimscape!    |    Play Conquer!
Offline nonnus29

Senior Devvie

Giving Java a second chance after ludumdare fiasco

« Reply #5 - Posted 2005-02-22 00:26:40 »

Thanks for input!

Yes, the lines do look jumpy;  I think that's because I'm using Graphics.fillPolygon() and Graphics.drawPolygon() to draw the polygons.  I added a .5f to the vertex before casting them to ints, I can't tell that it helped any.

I also added a 'game over' message and it's now 4090 bytes.

I had the rendering+applet code squished to about 2k, but data and game logic pushed it up.  If I did this again I'd use better data management to shrink the gamelogic further and a full screen JFrame.  I think I could even fit some key-frame animation in there if I could find a super low poly model (ie 30 tri's?) Shocked

Here's the source, view at your own risk........  To bad JCreator won't save tabs as spaces.
Offline c_lilian

Senior Devvie

Projects: 1

Java games will probably rock someday...

« Reply #6 - Posted 2005-02-22 05:25:41 »

If you want your applet to be run via java web start, it's easy :
you just have to replace the usual application-desc tag by an applet-desc tag.

<application-desc main-class="Main"/>

<applet-desc documentBase="http://..."


Offline Serethos

Junior Devvie

Java games rock!

« Reply #7 - Posted 2005-02-22 05:52:56 »

ohoo, i really like the graphics. its like a 4k cartoon shader  Smiley
but there could be a little more gameplay, perhaps:

- bullets which bound off walls for a few times
- armor, so that you dont die immediately
- a warp field
- upgrades

anyway: very nice and smooth !!
Offline nonnus29

Senior Devvie

Giving Java a second chance after ludumdare fiasco

« Reply #8 - Posted 2005-02-22 22:56:55 »

Thanks, I liked the cartoon shading look too, plus it saved me from storing face normals and calculating hundreds of Color shades!
Pages: [1]
  ignore  |  Print  

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

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

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

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

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

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

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

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

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

Solater (952 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!