Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (524)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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:

1  
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:


1  
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.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
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: http://i41.tinypic.com/fk03h0.png
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: http://users.on.net/~bobjob/test_tone.html
source: http://users.on.net/~bobjob/tone_source.zip

simple to use you just make static call to the Tone class as follows:
1  
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: http://pastie.org/916717)
  • 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

Screenshots

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: http://code.google.com/p/rugl/source/browse/SoundGen/
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 (http://www.homestarrunner.com/trogdor.html).

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: http://pastie.org/916717
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:

"CrapAssassin"



Playable at: http://midtro.com/jgo-petite/
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

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

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

toopeicgaming1999 (8 views)
2014-11-26 15:20:08

SHC (24 views)
2014-11-25 12:00:59

SHC (24 views)
2014-11-25 11:53:45

Norakomi (25 views)
2014-11-25 11:26:43

Gibbo3771 (23 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (75 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!