Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (541)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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 5832 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!

Ahem,

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


oi?


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

Quote
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: 5
Projects: 7


games4j.com


« 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
GameLizard.com
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://..."
      main-class="Main"
      width="..."
      height="...">
</applet-desc>


Lilian

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

Mr.CodeIt (24 views)
2014-12-23 03:34:11

rwatson462 (55 views)
2014-12-15 09:26:44

Mr.CodeIt (45 views)
2014-12-14 19:50:38

BurntPizza (88 views)
2014-12-09 22:41:13

BurntPizza (111 views)
2014-12-08 04:46:31

JscottyBieshaar (82 views)
2014-12-05 12:39:02

SHC (92 views)
2014-12-03 16:27:13

CopyableCougar4 (99 views)
2014-11-29 21:32:03

toopeicgaming1999 (159 views)
2014-11-26 15:22:04

toopeicgaming1999 (157 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

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