Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
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  
  So how many bytes should go into each area (images, painting, code...)  (Read 2402 times)
0 Members and 1 Guest are viewing this topic.
Offline richardGoulter

Senior Newbie




Java - n. 2nd only to Chocolate


« Posted 2006-01-01 08:30:18 »

Hello All,

I'm a Newless Cluebee (i only just got that joke),
and was wondering how the bytes should be managed,
by this i mean how much space i should put into gameplay,
how much into drawing, etc.

btw 4k is tiny, thats the size of 2 folders on windows (on my pen drive at least)

Thanks to all that can help

What do i put here, i wonder... 218, 211, 207...
Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 840
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2006-01-01 11:46:30 »

I put nearly 3K into graphics for Poker4K... it just depends on the game, there are no rules of best strategies here.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #2 - Posted 2006-01-01 17:59:20 »

Don't plan it that way.  Just make the game.  Think up something simple or use an old simple arcade game and just do it.  Keep the feature set small and code away.  After you get something that you can put up on the screen, start using all the external tricks to compress the jar file.  See how close you are getting.  By external tricks I mean otther zip tools, obfuscators, etc.  This will then give you an idea how much room you have left to make your game.

If you are close to finished and the file is too big, just finish first.  Then go over your code afterwards to see if there are any internal tricks you can employ.

I would also recommend using ANT or something to automate your build to make it easy to check your end size any time you want.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline richardGoulter

Senior Newbie




Java - n. 2nd only to Chocolate


« Reply #3 - Posted 2006-01-01 18:17:25 »

Thanks to you both, and anyone that posts after this.

What do i put here, i wonder... 218, 211, 207...
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #4 - Posted 2006-01-01 19:54:35 »

>how much space i should put into gameplay,how much into drawing, etc.

As few bytes as possible.

Start with some idea. Then cut it down to the absolute minimum... by that I mean... throw everything out which isnt part of the core game mechanic.

Try to put it into 4k. If there is some free room use it for things like extending the gameplay, better graphics or whatever seems to be important from your pov.

You could also do it the other way around... like making some game and then trying to get that down to 4k, by throwing things out. However, it will take way more time and you end up writing too much useless code.

弾幕 ☆ @mahonnaiseblog
Offline DonaldEKnuth

Junior Devvie





« Reply #5 - Posted 2006-01-01 21:46:42 »

As the experienced pupils above said planning on the size of each part would probably be harder to do. The way I did it was first to get the basic game structure going while keeping my uncompressed class file size <4k. After that I crammed in as many levels as possible and a couple of features while keeping track of my compressed final size of the jar-file.

The best tip I have (which also was given to me): Try out KZip, I definitely underestimated how much better compression it could give me compared to 7Zip for instance. My size before compression is >10kb (I experienced very good compression rate though due to my level data format). If you want to you can check out what I wrote about my creation on my blog: http://thisistheurl.com/2005/12/13/sokoban4k/

Good luck!

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.

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

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

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

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

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

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

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

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

toopeicgaming1999 (113 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
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!