Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (714)
Games in Android Showcase (214)
games submitted by our members
Games in WIP (787)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Discussions / General Discussions / Re: Reality Check Plz! on: 2010-05-02 15:02:59
ahhh, fair point riven.... but as the person above me said, I think there would be ways to check for malicious input??

Yeah you could easily check it with a simple regex match. I think people hear about passing stuff to the URL and immediately freak out about SQL injections, but they're easily preventable if you take the 30 seconds to fix them.
2  Game Development / Newbie & Debugging Questions / Re: Load in local file on: 2010-05-02 14:51:25
I'd advise just using the File(String) constructor like so:

File ubProperties = new File("../resources/UBProperties.csv");

But like you mentioned, we want OS independency, so we replace the path separators with the platform one:

File ubProperties = new File(".."+File.separator+"resources"+File.separator+"UBProperties.csv");

I hope that helped Smiley
3  Games Center / Tiny Game 2010 / Re: TinyGame Resources on: 2010-04-16 00:39:22
I finally got rid of my hex value array and wrote my own formula for it. I screwed up the order in the process but it doesn't really matter.

public static final Color[] COLORS = new Color[64];

static {
   for(int i = 0, j = 0; i < COLORS.length; i++){
      if((i & 15) == 0){
         j = (i >> 4) << 8;
      COLORS[i] = new Color(21760*(j+((i >> 2) & 3))+(i & 3)*85);

Spent a long time getting it optimized/shrunk but it works.

Here's an image to use as a reference for the array indexes:
4  Games Center / Tiny Game 2010 / Re: 40x30 EGA Contest on: 2010-04-14 03:05:23
In regards to sound. I was looking for ways to program using the PC speaker, and came across a class that mimics the PC speaker with the sound card:

example applet:

simple to use you just make static call to the Tone class as follows:
Tone.sound(int tone,int time,double volume);

I don't know why but my sound on Java is completely broken (I'm using Ubuntu). I really wish I could try that.
5  Games Center / Archived Projects / Re: Bubble Squids on: 2010-04-14 00:40:06
Very nice graphics  Smiley. As mike_bike_kite noted, I think the time limit needs to be increased a little bit. Other than that it's a pretty neat idea and good job implementing it.
6  Games Center / Tiny Game 2010 / [Journal] TinyRPG on: 2010-04-13 23:51:52
Hello JGO,

I saw the example images posted by ShannonSmith and decided to go with a RPG game.

I have some basic ideas for the gameplay, like:
  • Collecting gold coins (or maybe ores like gold, silver, copper...)
  • Killing ugly pixel animals

I'll make the map continuous by walking towards the edge. When the torso pixel (dark red) hits the edge it will switch to the bordering map. I originally planned on adding scrolling but I felt that would be too jerky since I can't use actual pixels to smooth it. It's all 8x8 or whatever zoom level is set.

I can't really decide on 4x or 8x zoom. It's playable at either levels but I don't want to make it impossible to see (like if it were actually 40x30 Tongue).

Progress Log
  • EGA color class (feel free to use/improve it:
  • Rendering with variable zoom (so map building isn't difficult)
  • Visual palette and pencil coloring (works like MS Paint)
  • Map saving/loading (testing only; will be replaced with a better system soon)
  • Cleaned up EGA colors


4x zoom:

8x zoom:

7  Games Center / Tiny Game 2010 / Re: 40x30 EGA Contest on: 2010-04-13 22:10:14
Ok, in the interest of avoiding confusion and people worrying about having to open source anything I'll drop the requirement and we'll just rely on the honour system. But I would encourage people to use one of the open frameworks that are sure to emerge as it will be much easier to get all the entries on a single screen ensuring they all play nice.

Can we have Journal  threads like in the JGO Comp?
8  Games Center / Tiny Game 2010 / Re: 40x30 EGA Contest on: 2010-04-13 20:55:05
Yeah I completely agree with fruitmaze. I don't like the whole open source bit... my engine is proprietary and as a result I'll have to obfuscate the code before putting the applet up. But, I guess I could post some snippets to prove I'm abiding to the EGA rule if it's so important. Worst case scenario, someone could write a tool that processes a screenshot of everyone's game and checks for EGA colors, but that seems a bit extreme Tongue.

Also, regarding sound, I think it's pretty common sense to use sounds that fit the style. And a while back when browsing this forum I stumbled upon this app called "SoundGen" made by someone on this forum (I don't remember who it was, sorry) but here's the link:
9  Games Center / Tiny Game 2010 / Re: 40x30 EGA Contest on: 2010-04-12 23:38:40
Ideally we would have a similar setup to Java4K but we would need to find a clone of appel willing to put the time and energy into hosting. I would love too but I'm afraid I really don't really have the time. I think for the first contest it will be host your own, if it is half as successful as Java4K and we decide to do it annually then we will really need to get a website for it.

This sounds like an awesome idea. I'm also up for participating in this.

I've wanted to make something similar ever since I saw that Trogdor flash game (

As for scaling, I've been messing around in GIMP for the past couple minutes with the example you posted. It seems like either 4x (as you noted) or 8x would be the best option.

Edit: Here's some code that has all of the EGA spec RGB values in it. It's a bit ugly but if anyone wants to optimize it then go ahead:
10  Games Center / JGO Comp Petite / Re: JGO Petite - Sunday, April 11, 6:00PM GMT on: 2010-04-12 03:10:29
thanks Alan_W you done a really great job too & last but not least fully finished !

some thing I noticed about the contest is that it requiere to be really well prepared, here are some problem I meat :
lost some precious minute only for looking over internet to the apple picking sound ...
last ten minutes are too short Smiley ... even if it is nothing to do => unable to implements health & gameover
finding a game idea and how to built the final gameplay took also some precious minutes...
also start/intro screen & end screen  should be prepared before the contest (no time to do them in the contest)

Well, in a way this is like improvisational comedy; you make things up as you go. I got on IRC about 30 mins early and started thinking of ideas (that time before the hour was my planning).

So essentially this is how my time was allotted:

-30 mins to -10 mins: Planning
-10 mins to 0 mins: Setting up project in Eclipse and getting base classes from my engine setup/imported (this was within that early start that was given)
0 mins to 10 mins: Camera translation math, drawing the grid lines, drawing centered fox sprite
10 mins to 20 mins: Random map generation and knife shooting (8 directional with random 'life' and speed)
20 mins to 30 mins: Hackish collision detection and score system
30 mins to 40 mins: Polishing some stuff, adding "levels" (which just regenerate the map), the "Level up" with a timer so it goes away
40 mins to 45 mins: Final little things like the preface/mission explaining that the game is supposed to be terrible (lol)
45 mins to 60 mins: Pretty much done at this point... switched to URL loading on my engine, built the JAR, obfuscated it, uploaded images and the jar to my web host.

Granted, this was a simple design and I wish I had been able to add more to it. I think with a longer time limit (maybe 2 to 2.5 hours) the games would look better overall.

Some things I could have added with more time:
-Health bars over the objects with random HP per object
-Some sort of map scenery like a tree or a bush (it's pretty boring right now)
-Textured ground
-Make the objects wander around instead of being stationary
-Doctored the images some more (like giving the apple eyes and a grimaced face)
-An actual menu
11  Games Center / JGO Comp Petite / Re: Next JGO Petite? on: 2010-04-11 20:26:27
The graphics choice was pretty good, we all managed to come up with something. Though I think limiting it to a particular theme might cut down on the freedom a bit but I'm still open to the idea.

One hour worked fine for me, but I would have loved to continue on it. If I had more time on CrapAssassin I would have added some map stuff.

And about the Java vs. anything discussion that we briefly had on IRC, I don't mind personally but it makes sense for everyone to make Java games as we're on a Java-based forum.

The time that today's was at worked out pretty well, but it should probably be a couple hours earlier.
12  Games Center / JGO Comp Petite / Re: JGO Petite - Sunday, April 11, 6:00PM GMT on: 2010-04-11 19:14:54
Here's my entry:


Playable at:
Pages: [1]
CopyableCougar4 (48 views)
2017-03-24 15:39:42

theagentd (32 views)
2017-03-24 15:32:08

Rule (96 views)
2017-03-19 12:43:22

Rule (85 views)
2017-03-19 12:42:17

Rule (93 views)
2017-03-19 12:36:21

theagentd (102 views)
2017-03-16 05:07:07

theagentd (102 views)
2017-03-15 22:37:06

theagentd (94 views)
2017-03-15 22:32:18

theagentd (92 views)
2017-03-15 22:31:11

ral0r2 (147 views)
2017-03-03 11:52:41
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

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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!