Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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  
  Creating a 4k game - Where to start?  (Read 1018 times)
0 Members and 1 Guest are viewing this topic.
Offline DonaldEKnuth

Junior Member





« Posted 2005-12-06 23:16:00 »

I have looked around a bit and found some examples in the threads, for example the Pengo4k thread has some code in it. I still thought that I would ask if there is any tutorial which explains some tricks and development strategies created by one of you guys?

Are the way used in Pengo4 the preferred way? A small example where you can control a square or something built using the tricks that you normally use in this situation would be great.

I'm not new to programming but I'm not good at game programming in general and using Java in particular. Still it would be fun to join and I think that it's entierly possible if I just got some pointers to begin with. Also, should this thread have been created in the competition forum? It seemed so "nice and clean" that I didn't want to clutter up the forum with this post, my humble apology if I was wrong in doing so.

My 4k 2006 Entry: Sokoban4k
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #1 - Posted 2005-12-06 23:42:03 »

there are some tricks in [url = http://www.java-gaming.org/forums/index.php?topic=11605.0]this posts[/url]

There are lots of tricks all over the forums, posted after 4k 2005 contest a search will reveal most of them.

but generaly, write clean and neat java, make it do what you want it to do, and then sqash it to the minimum (for example inlining ALL methos into run() or into the constructor) and use the tricks after finishing it.

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #2 - Posted 2005-12-07 07:55:30 »

-one class
-as few methods as possible
-as few class variables as possible (move them to the constructor)
-use obfuscators (progruard, jax, jarg, joga...) in different combinations (eg jax->jarg or joga->jarg)
-try different zip programs (7zip/kzip)
-?: is smaller than if/else
-decompile your stuff occassionaly to check if the obfuscators do their job
-use enableEvents instead of listeners
-look around in the lib for stuff you can (ab)use

弾幕 ☆ @mahonnaiseblog
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #3 - Posted 2005-12-07 21:55:31 »

Even more info:

http://wiki.java.net/bin/view/Games/4KGamesDesign

Java Game Console Project
Last Journal Entry: 12/17/04
Offline DonaldEKnuth

Junior Member





« Reply #4 - Posted 2005-12-08 00:12:25 »

Thanks for your replies! Especially the Wiki was a great read, can't wait for the Sound section to be finished! *hint*

I've begun creating a game now, started out with directly inheriting from JFrame but I moved to an applet structure. I have some ideas for semi-procedural graphics which might look neat. We will see. :-)


My 4k 2006 Entry: Sokoban4k
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.

TehJavaDev (16 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (34 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (20 views)
2014-08-16 06:20:21

Tekkerue (31 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (44 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!