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  
  Creating a 4k game - Where to start?  (Read 2106 times)
0 Members and 1 Guest are viewing this topic.
Offline DonaldEKnuth

Junior Devvie

« 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 Devvie

Projects: 3

there is no place like

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

there are some tricks in [url =]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
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:

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

Junior Devvie

« 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  

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

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

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

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

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

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

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

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

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

Solater (142 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!