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   
  Show Posts
Pages: [1] 2 3 ... 11
1  Game Development / Game Play & Game Design / Destructible/deformable terrain help on: 2013-04-22 02:46:10
Hi,

I just want to try to create a very simple demo/tutorial on how to create a game with destructible/deformable terrain like the good old lemmings or worms.

The problem is that I have no idea where to start. Are there any physics involved? I's like to write a simple level in plain java 2d. I tried to find some examples, but I couldn't.

Any help?

Thanks
2  Games Center / 4K Game Competition - 2013 / Re: Judging panel results. on: 2013-03-24 20:52:19
then the final grade is (judge's score 1 + judge's score 2 + judge's score 3)/3 ?
3  Games Center / 4K Game Competition - 2013 / Re: Judging panel results. on: 2013-03-24 20:07:37


How do judges determine the score given?
[/quote]

yep.
4  Games Center / 4K Game Competition - 2013 / Re: Judging panel results. on: 2013-03-24 18:44:17
What is the formula behind the grade score?
5  Games Center / 4K Game Competition - 2013 / Re: Judging panel results. on: 2013-03-24 02:14:57
Great results, thanks for everyone. Special thanks to the judges. Really liked the reviews! Although we beat the number of games this year we did not reach 2012 number of game developers that submitted games. This year we were 34 game developers while in 2012 we had 42.

year    game devs
2013 - 34
2012 - 42
2011 - 28
2010 - 28
2009 - 41
2008 - 17
2007 - 39
2006 - 37
2005 - 27
6  Games Center / 4K Game Competition - 2013 / Re: Community voting results on: 2013-03-22 13:14:37
I really like the games created by zeroone, and what is really great is that he always publish its source code so we can try to learn from it. Although the code is optimized for 4k games but he definitely has a style.
7  Games Center / 4K Game Competition - 2013 / Re: Community Voting Has Started! on: 2013-03-19 13:45:52
I also think that the number of downloads is a nice number to evaluate the popularity of game. Mine is around 100 downloads only so I don't expect too much. Anyway I did not advertise it anywhere nor to anybody...
8  Games Center / 4K Game Competition - 2013 / Re: Community Voting Has Started! on: 2013-03-19 13:40:15
I think ctomni231 makes a fair point. This gets my vote. Smiley
Mine too.
9  Games Center / 4K Game Competition - 2013 / Re: Dord on: 2013-03-11 18:20:33
I have played this game before.

I liked the gameplay. But I think I have played a similar game long time ago, just can't remember the name or plataform...

@zeroone did you take the idea from what games? You said this is an original one but I'm almost sure I played a game where the player code traverse the screen like Dord.
10  Games Center / 4K Game Competition - 2013 / Re: Dord on: 2013-03-11 18:17:16
In my opinion, this is the best game of Java4k 2013.

Agreed! 5 points!
11  Games Center / 4K Game Competition - 2013 / Source code problem in Java4k site on: 2013-03-03 22:01:50
Hi appel,

I've noticed that some games have the link "source code available" but when clicking it no source code is displayed. An example is http://java4k.com/index.php?action=games&method=view&gid=406#source

I think some other games have this problem. Do you know if the authors really submitted their code?
12  Games Center / 4K Game Competition - 2013 / Re: Rogue 4k on: 2013-03-03 22:00:01
Hey Groboclown, trying to compile the source code provided in java4k but it giving me errors below:

R.java:1740: unclosed character literal
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                 ^
R.java:1740: illegal start of type
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                   ^
R.java:1740: unclosed character literal
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                       ^
R.java:1740: ';' expected
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                         ^
R.java:1744: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                             ^
R.java:1744: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                               ^
R.java:1744: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                                   ^
R.java:1744: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                                     ^
R.java:1745: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                            ^
R.java:1745: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                              ^
R.java:1745: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                                  ^
R.java:1745: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                                    ^
R.java:1746: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                          ^
R.java:1746: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                            ^
R.java:1746: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                                ^
R.java:1746: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                                  ^
R.java:1747: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                          ^
R.java:1747: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                            ^
R.java:1747: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                                ^
R.java:1747: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                                  ^
R.java:1748: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SW = 'u255a';
                                                          ^
R.java:1748: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SW = 'u255a';
                                                            ^
R.java:1748: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SW = 'u255a';
                                                                ^
R.java:1749: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                          ^
R.java:1749: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                            ^
R.java:1749: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                                ^
R.java:1749: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                                  ^
27 errors
13  Games Center / 4K Game Competition - 2013 / Re: Rainbow Road on: 2013-03-03 21:57:03
Hey zeroone trying to compile the source code provided in java4k.com site but getting this at run time:

Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 707
   at a.run(a.java:244)
   at java.lang.Thread.run(Thread.java:662)

14  Games Center / 4K Game Competition - 2013 / Re: ApoBeam4k on: 2013-03-03 20:10:03
Trying it right now and it's working for me under Ubuntu Linux and Chrome browser. I press the number "1" and keep it pressed, the number highlights and nothing else happens. Am I missing something?
15  Games Center / WIP games, tools & toy projects / Re: [WIP] Izalys World - 2d side scroller (run and jump game) on: 2013-03-03 02:52:24
Liked the pics, but cannot test it. What about a linux version also?

Also getting an error while trying the link in the main page: The requested URL /files/Izalys%20World%20Installer.exe was not found on this server.

16  Games Center / 4K Game Competition - 2013 / Re: [WIP] Frog Solitaire on: 2013-02-28 02:28:16
Thanks for the feedback. Unfortunately I think I won't have enough space for animations unless I find a good way of compressing my sprites.
17  Games Center / 4K Game Competition - 2013 / [WIP] Frog Solitaire on: 2013-02-27 20:26:07
Game like peg solitaire. Almost finished but submitted right now to avoid losing deadline. Only 12 levels but I have room for at least 100 but I wont have time to add all.

http://java4k.com/index.php?action=games&method=view&gid=472
18  Java Game APIs & Engines / Java 2D / Crop transparent image on: 2013-02-23 16:51:25
Hello,

I have a method for cropping images. But it only works for non-transparent. If I submit a transparent image using my method, the returned images does not preserve the transparent color.

How can I preserve transparency automatically? Or should I manually set transparency for subimages? How can I do that?

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  
   private static Image[] cropImage(Image pImage, int pCropWidth,
         int pCropHeight) {
      int i = 0;
      int j = 0;
      Vector<Image> imgs = new Vector<Image>();
      boolean finished = false;

      while (!finished) {
         if ((i + pCropWidth) > pImage.getWidth(null)) {
            i = 0;
            j += pCropHeight;
         }

         if ((j + pCropHeight) <= pImage.getHeight(null)) {
            Image image1;
            CropImageFilter cropimagefilter = new CropImageFilter(i, j,
                  pCropWidth, pCropHeight);
            FilteredImageSource filteredimagesource = new FilteredImageSource(
                  pImage.getSource(), cropimagefilter);
            image1 = Toolkit.getDefaultToolkit().createImage(
                  filteredimagesource);
            imgs.add(image1);
            i += pCropWidth;
         } else {
            pImage.flush();
            finished = true;
         }
      }

      Image[] tmp = new Image[imgs.size()];

      for (int e = 0; e < tmp.length; e++) {
         tmp[e] = imgs.get(e);
      }

      return tmp;
   }
19  Games Center / 4K Game Competition - 2013 / Re: Rainbow Road on: 2013-01-28 19:49:49
Really great game, i liked it a lot. But for some reason I was not able to get any item while running in the road. I run over it and I just didn't get it, like a collision detection not working. it's just for me? I'm running on chrome ubuntu 12.

When you drive into an item box (the box with the questionmark on it), the item roulette (randomizer display) doesn't start to spin?   

No it does not start to spin, the car just pass throught it like if it isn't there. I will try in a different machine/os/browser.
20  Games Center / 4K Game Competition - 2013 / Re: Rainbow Road on: 2013-01-27 23:56:09
Really great game, i liked it a lot. But for some reason I was not able to get any item while running in the road. I run over it and I just didn't get it, like a collision detection not working. it's just for me? I'm running on chrome ubuntu 12.
21  Discussions / Miscellaneous Topics / Re: Is programming as a job boring? on: 2013-01-09 12:28:30
I do have a lot of free time, at the point that let's say, 50% of my games I've written, I did it here (at work).
Ha, catch you! You're fired! Just kidding  Grin

I want your job! Since you're also from Brazil, I just got curious where do you work?
22  Discussions / Miscellaneous Topics / Re: Is programming as a job boring? on: 2013-01-07 19:01:38
Quote
Request a room with a window or more 'open' or look for another software related job in the area??

I think it'd be easier to paint a window with beatifull apple trees outside and a shinny sun and fix it in my cube  Tongue
23  Discussions / Miscellaneous Topics / Re: Is programming as a job boring? on: 2013-01-07 18:49:14
Definitively boring! Now I'm an Software Automation Engineer (showy title, isn't it?). I work with java and Selenium (Webdriver) to automate web application for testing purposes. As everything else first time is great (well maybe not everything...  persecutioncomplex) but after a year or 2 doing the same job everyday is really really boring. New applications appear to be automated but the task is always the same. Find that damm fields put data on it and make the application work. Write positive tests, write false tests, blah blah.

Work 9 hours a day closed in a room with artificial light 5 day a week, yes it's boring! But since I don't know anything else to earn money I have to lower my head and code code code and code.  Angry
24  Game Development / Newbie & Debugging Questions / Re: Game loop eating 100% cpu on: 2013-01-04 12:56:12
Thanks, I took this game loop from an older entry of the 4k competition but maybe I have modified it and removed the sleep statement. Thanks for pointing it out. Now my cpu rate is ok and my game still smooth.
25  Game Development / Newbie & Debugging Questions / Game loop eating 100% cpu on: 2013-01-04 03:21:31
This is the base game loop I'm using for a game for J4K 2013. But it is eating 100% of my CPU. I'm running on Ubuntu 32 bit and Java 6. Any tips how can I avoid eating 100% of CPU? Thanks!


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  
      int FPS = 60;
      int MILI_FRAME_LENGTH = 1000 / FPS;
      int frameCount = 0;

      while (true) {
         long startTime = System.currentTimeMillis();

         long lastLoopTime = System.currentTimeMillis();
         long lastFpsTime = 0;
         long fps = 0;
         while (true) {
            long delta = System.currentTimeMillis() - lastLoopTime;
            lastLoopTime = System.currentTimeMillis();
            lastFpsTime += delta;
            fps++;

            // If more than 1000ms (1s) has passed reset the fps count.
           if (lastFpsTime >= 1000) {
               lastFpsTime = 0;
               fps = 0;
            }

            logic(delta);
            render(g);

            frameCount++;
            while ((System.currentTimeMillis() - startTime)
                  / MILI_FRAME_LENGTH < frameCount) {
               Thread.yield();
            }

            // Ensures that the display is up-to-date. This keeps the
           // animation smoother for the Linux OS.
           Toolkit.getDefaultToolkit().sync();
         }
      }
26  Discussions / General Discussions / Where are you from? on: 2012-12-06 17:34:02
As a previous thread I was reading about the age of our forum's users I noticed that most of them does not fill in their location.

So my question is where are you from? Or where you are currently Living.

I'm from Brazil and still living here.
27  Discussions / Miscellaneous Topics / Re: What music do you listen to while you code? on: 2012-12-06 17:29:35
yeah I guess you're right. I'm at 37. Anyway with kids around is almost impossible to have silence. And when they go to bed I'm tired and can't even program a line...
28  Discussions / Miscellaneous Topics / Re: What music do you listen to while you code? on: 2012-12-06 17:23:20
I need complete silence to code or at least a not so loud mantra... and even so I can't finish all my projects!
29  Discussions / General Discussions / Re: 2D Game Engine Development [Youtube Tutorials] on: 2012-12-06 17:21:57
This is really great! Even better than reading a book...
30  Discussions / Miscellaneous Topics / Re: Old Video Games on: 2012-12-06 17:20:14
H.E.R.O
River Raid
Pitfall

Best ever!
Pages: [1] 2 3 ... 11
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 (84 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (187 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.197 seconds with 20 queries.