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   
  Show Posts
Pages: [1] 2 3 4
1  Discussions / General Discussions / Re: is anybody using this system of redering to?! on: 2014-03-26 16:39:25
I'm pretty sure a majority of people would to save memory.   Cheesy
2  Games Center / Showcase / Re: Killer Santa on: 2013-12-30 18:47:32
Thanks for that. ill fix that easily enough
3  Game Development / Newbie & Debugging Questions / Re: Multiplayer Using Pure Java on: 2013-12-30 01:53:42
You know what i was thinking the same thing. I guess i probably should. Thanks
4  Game Development / Newbie & Debugging Questions / Multiplayer Using Pure Java on: 2013-12-29 20:05:40
Hello Everyone,

Right now i want to start getting into Networking in pure java. I'd like to be able to create a 2d platformer that can connects to a server and can be joined by multiple clients. The problem is. I don't know where to start. I can make the platformer no problem but when it comes to networking i'm stuck. Would anyone have any good material i could maybe look at or maybe some code i could try to read just to figure it all out. I can set up a basic enough server where it has a client connect to it and it sends a message back from the server. But i don't know where to go from there.

Maybe someone with some knowledge in this area could help. Id like to be able to do it with no 3rd party libraries also.

Thanks
-GlennBrann
5  Games Center / Showcase / Re: Killer Santa on: 2013-12-26 20:13:10
You know what. I think i might work on it some more haha. it will be fun.
6  Games Center / Showcase / Killer Santa on: 2013-12-25 21:36:26
Hey Everyone, So started work on a game about 3 days ago. its a game for the Christmas time. I didn't have time to add any extra features as its christmas today. so i ran out of time. haha. Anyway i thought id release it. Any comments are welcome.



Music i found from a random royalty free music website.

check it out, it runs in an applet: https://dl.dropboxusercontent.com/u/32497019/KillerSanta/applet.html

Thanks, and Merry Christmas.
- GlennBrann
7  Games Center / Showcase / Re: Marine Origins on: 2013-12-14 14:19:38
Thanks very much for the feedback
8  Games Center / Showcase / Re: Marine Origins on: 2013-12-14 13:13:18
Haha yeah good point
9  Games Center / Showcase / Marine Origins on: 2013-12-14 01:36:18
Hey Everyone,

This is a game that a few friends and myself have been working on for a competition here in Ireland. We thought we would share it with you guys. It still needs some finishing touches for the contest but here it is to play.

So the contest had a theme based around "Marine Science" and things of that nature. The three topic were Renewable Energy, Water Pollution, Climate Change.

The game story line goes like this. The main character, Thomson Montgomery lives on an island were he doesn't treat it to great. He is sent to another island using the kings teleporter. The island he is sent to is in need of some drastic help. So he roams the depths of the sea and fights off enemies but also has to do some tasks.

I wouldn't mind some feed back if possible. It's our first game we have actually finished. which is a plus Smiley

Player Controls:
         AD or Arrows to Move
         Space or Up Arrow to Jump
         Q to drink health potions
         mouse to shoot
         (Possible a few more)

Download Links:
          Marine Origins (Windows) : http://www.mediafire.com/download/cl5fq32a0b3maz2/MarineOrigins%20(WINDOWS)
          Marine Origins (Mac) : http://www.mediafire.com/download/sif9fchfnofi6y7/MarineOrigins(MAC)

Screen Shots:






Thanks Everyone,
- Glenn
10  Game Development / Newbie & Debugging Questions / Re: File Creating Problem. [need help] on: 2013-12-11 15:09:45
No he didn't use the Admin CMD.
11  Game Development / Newbie & Debugging Questions / Re: File Creating Problem. [need help] on: 2013-12-11 14:54:02
Ok so it seems i have fixed the problem. When he ran it using the CMD prompt it actually created the files. so now i have a .BAT file for windows users. Thanks a lot for your help everyone Smiley
12  Game Development / Newbie & Debugging Questions / Re: File Creating Problem. [need help] on: 2013-12-11 14:02:14
ok thanks. let me get him to do that and ill get back to you guys. Thanks for the help
13  Game Development / Newbie & Debugging Questions / Re: File Creating Problem. [need help] on: 2013-12-11 13:57:58
I didn't realise that i could find out what exception he is getting. how do i do this with out using eclipse or does he have to have eclipse ?
14  Game Development / Newbie & Debugging Questions / Re: File Creating Problem. [need help] on: 2013-12-11 13:52:22
It gives no errors in the console for me in eclipse. but when my friend runs it on his computer it doesn't create the folder with the save.txt in it. But when i run it on my mac and my windows 8 it works perfectly. He is using windows vista. does that effect it from creating the files ?
15  Game Development / Newbie & Debugging Questions / File Creating Problem. [need help] on: 2013-12-11 13:41:06
Hey Everyone,

Ok, so i have windows 8 and i have a mac also. When i play my game on the mac and windows 8 it creates the files perfectly without fail. But for some reason my friend who has windows vista home premium seems to be having a problem when he plays it. It's not creating the saves folder with a save.txt file it. Like it said it works on all my computers. Is this a problem with him using windows vista? his java is up to date and everything.

Here is the code i'm using to create the files. Maybe someone could help me fix the problem if it can be fixed

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
   public static void saveGame(String path){
      try{
         File theDir = new File("saves");
           if (!theDir.exists()) {
             boolean result = theDir.mkdir();  
              if(result) {    
                System.out.println("DIR created");  
              }
           }
         
         File file = new File(path);
         FileOutputStream fo = new FileOutputStream(file);
         ObjectOutputStream os = new ObjectOutputStream(fo);
         
         os.writeBoolean(lvl1Complete);
         os.writeBoolean(lvl2Complete);
         os.writeBoolean(lvl3Complete);
         
         System.out.println("Game Saved.");
         os.close();
      }catch(Exception e){
         System.out.println("Could Not Save Game!");
         throw new RuntimeException(e);
      }
   }


Thanks
- GlennBrann
16  Game Development / Newbie & Debugging Questions / Rotating Sprites [Solved] on: 2013-12-06 14:27:31
Hey Everyone,

I am using pure Java, no 3rd party libraries and I want to be able to rotate one of my sprites. My sprite is 16x16 pixels. Right now i know how to rotate with AffineTransformation but for some reason when it rotates the sprite looks very weird. This might be due to it being very small. but maybe someone could help me. Thanks

~GlennBrann
17  Game Development / Newbie & Debugging Questions / Respawning Spike after it dies [Need Help] on: 2013-11-24 00:23:33
Hey Everyone,

So basically i want to make my spike respawn at the same position it starts at after it hits the ground. I know how i can do it with 1 but i have an array list and i add multiple spikes using this arraylist at different positions. does anyone know how i could do this ?  

here is how i add them into the game just so you know

1  
2  
Controller.spikes.add(new Spike(tileMap, 5,1));
Controller.spikes.add(new Spike(tileMap, 10,5));


thanks
- GlennBrann
18  Game Development / Newbie & Debugging Questions / Re: Easiest way of playing sound and music? on: 2013-09-28 21:36:43
Well one thing I can't think of is make sure that your bounce sound doesn't have any silence at the end of the sound make sure it's just the bounce. Also if the ball is bouncing too fast it might cause a problem because basically the first sound bounce hasn't finished yet so that's why the next one won't play. I'm not to sure how to over lap the sounds

-GlennBrann
19  Game Development / Newbie & Debugging Questions / Re: Easiest way of playing sound and music? on: 2013-09-28 20:07:36
Well,

For quick relatively short sounds i use Clips and for Music i would either use EasyOGG(Sound Library made by kevglass) or Just regular applet sound loading/playing. The problem with applet sounds is that it doesn't read .ogg files without making your own sound engine. So easyogg is the best for music and really long sounds.

For clips here is some sample code showing you how:

first start off with a sound class holding all your sounds.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
public class Sounds {

   public static Clip shooting= loadClip("/sound/shooting.wav");

   private static Clip loadClip(String path){
      try{
         AudioInputStream sounds = AudioSystem.getAudioInputStream(Sounds.class.getResource(path));
         DataLine.Info info = new DataLine.Info(Clip.class, sounds.getFormat());
         Clip clip = (Clip) AudioSystem.getLine(info);
         clip.open(sounds);
         
         return clip;
      }catch(Exception e){
         e.printStackTrace();
         System.exit(1);
         return null;
      }
   }
   
   public static void play(Clip clip){
      if(clip != null){
         try{
            clip.stop();
            clip.setFramePosition(0);
            clip.start();
           
         }catch(Exception e){
            e.printStackTrace();
         }
      }
   }
   
   public static void stop(Clip clip){
      if(clip != null){
         clip.stop();
      }
   }
}


Then to play your sound with this basically use something like this:
1  
2  
3  
4  
5  
//some thing like this

if(player.isShooting){
      Sounds.play(Sounds.shooting);
}


Something like this. i hope this helps with your short sounds.
This is the way i do it anyway.

- GlennBrann
20  Game Development / Newbie & Debugging Questions / Re: Game Font Problem [need help] on: 2013-09-25 13:33:00
Thank you for the advice.
21  Game Development / Newbie & Debugging Questions / Game Font Problem [need help] on: 2013-09-24 23:35:20
Hey guys,

I have a problem with my font in my game. basically the font i have in the game is a font in which i installed on my computer. It shows perfectly on my PC but when one of my friends plays the games on his computer its not working properly, It's like its not the right font. Does anyone know how i could fix this ? thanks

- Glenn
22  Game Development / Newbie & Debugging Questions / Re: How do i pause my game? on: 2013-09-06 19:10:56
one way i would do the key inputs for pausing a game would be

 
1  
2  
3  
if(keycode == KeyEvent.VK_P){
     current_Level.isPaused = !current_Level.isPaused;
}


This is so you can toggle it on and off.
Just a little something i thought id share. If your happy with the way you do it. Its perfect.

- Glenn
23  Games Center / WIP games, tools & toy projects / Re: Bitieval Archas on: 2013-08-31 18:03:53
Recently i have been working on the player quite a bit lately. I have been working on some spells also. I have also been re-designing some tiles:
24  Game Development / Newbie & Debugging Questions / Re: Saving Game to Program Files. on: 2013-08-19 22:10:35
Ok guys, Thanks for the advice. Ill just stick to keeping it in the same folder.

- GlennBrann
25  Game Development / Newbie & Debugging Questions / Re: Saving Game to Program Files. on: 2013-08-19 20:11:49
I want to
Quote
want to create some _:\Program Files\someFolderForSavesOrWhatever\  whenever you run your java game(regardless of where its located?)
How would i do this ?
26  Game Development / Newbie & Debugging Questions / Saving Game to Program Files. on: 2013-08-19 19:49:02
Hey Everyone,

Maybe someone could help me. How would i go about creating a new folder in my program files in java ? does anyone know the best way to do this ?

Thanks

- GlennBrann
27  Game Development / Newbie & Debugging Questions / Re: Best Way To Do Mini-Map? on: 2013-08-16 23:27:11
Yes they are the x and y variables of the minimaps tiles offsets. if i don't want the hole map rendered in the map. i can scroll through the map
28  Game Development / Newbie & Debugging Questions / Re: Best Way To Do Mini-Map? [SOLVED] on: 2013-08-16 22:48:27
Hey man, Thanks so much for the help, I now know how to do basic enough mini maps.

I used this code to get it to work for the player. I used what you did but tweaked it to my code a little.

1  
g.fillRect(x + player.getX() / 32 * 2 , y + player.getY() / 32 * 2, 2, 2);


Thanks alot

- GlennBrann
29  Game Development / Newbie & Debugging Questions / Re: Best Way To Do Mini-Map? on: 2013-08-16 22:21:26
Ok i get what you mean, But maybe you could help me again, My regular tilemap as x and y cordinants. and my minimap has its own cordinants. Lets say i want to render a white square at the tile on my mini map where my player is. how could i do this. using your method

This is how i render
1  
g.fillRect(miniMap.getX() + 32 / 4, miniMap.getY() + 32 / 4, 2, 2,)


the 32 is the size of my regular tiles. I'm not to sure if i should be putting in the x & y for my player or the x & y for my regular tilemap. could you help. Thanks

- GLennBrann
30  Game Development / Newbie & Debugging Questions / Re: Best Way To Do Mini-Map? on: 2013-08-16 21:59:53
Ok well i created a new class called MiniMap and i basically load the same text file that the map is stored in and i set each tile to 1 pixel. Is this a good way of doing it ? How would i check where the player is on the map ?
Pages: [1] 2 3 4
 

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 (114 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!