Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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  
  compiling resources?  (Read 1003 times)
0 Members and 1 Guest are viewing this topic.
Offline lucazd

Senior Newbie





« Posted 2005-07-27 01:01:08 »

Hello again, I used to compile my resources when I was programming in c++.
I mean, convert resources files (images, etc...) to .cpp files (.java this time).

Is there something to do it in the standard api?
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #1 - Posted 2005-07-27 02:59:06 »

The usual thing to do is simply bundle the resources in a Jar with your apps class files.  Compiling the data in to a class file (as a static array or something) is too limiting, particularly since a single class must be less than 64kB.

Offline lucazd

Senior Newbie





« Reply #2 - Posted 2005-07-27 03:09:06 »

I never heard about 64Kb limit, thanks!

BTW, Im trying to find a way to encrypt my resources.
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #3 - Posted 2005-07-27 03:12:53 »

BTW, Im trying to find a way to encrypt my resources.

Give up.  There is no practical way.

Offline lucazd

Senior Newbie





« Reply #4 - Posted 2005-07-27 08:14:29 »

yes, I know there's no practical way.

I just like to prevent the "casual thief"  Smiley.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #5 - Posted 2005-07-27 13:46:40 »

yes, I know there's no practical way.

I just like to prevent the "casual thief"  Smiley.

You can't. Hence SWP's comment.

Search for "obfuscation" and "decompilation" in the whole forum, going back circa 500 days, to find various threads on the details of this

malloc will be first against the wall when the revolution comes...
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #6 - Posted 2005-07-27 14:11:03 »

http://192.18.37.44/forums/index.php?topic=8442.0

Some ideas there...Enjoy the read...

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (70 views)
2013-05-17 21:29:12

alaslipknot (80 views)
2013-05-16 21:24:48

gouessej (111 views)
2013-05-16 00:53:38

gouessej (106 views)
2013-05-16 00:17:58

theagentd (117 views)
2013-05-15 15:01:13

theagentd (106 views)
2013-05-15 15:00:54

StreetDoggy (150 views)
2013-05-14 15:56:26

kutucuk (174 views)
2013-05-12 17:10:36

kutucuk (171 views)
2013-05-12 15:36:09

UnluckyDevil (180 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.105 seconds with 22 queries.