Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (500)
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 ... 38
1  Discussions / Miscellaneous Topics / Re: Can anyone give me 10 words all related to one thing in common? on: 2014-04-14 17:03:15
List of lists of lists of lists: just kidding... I think.
It's been deleted three times...
2  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-14 00:00:02
I'm still with the same hosting service I was with the last time this question was asked: http://www.java-gaming.org/index.php/topic,26592
3  Game Development / Game Mechanics / Re: Mathematical curves. on: 2014-04-13 23:56:31
I think what you wanted to say is: They tend towards zero, but never approach it (and therefore the Cubic Root is never going to be flat at some point).
I blame a lack of coffee for my ability to read that more than once without mentally processing the word "root". You are quite correct.
4  Game Development / Game Mechanics / Re: Mathematical curves. on: 2014-04-12 12:22:05
The key word is "easing". Armed with that I easily found these links:

5  Game Development / Newbie & Debugging Questions / Re: Advice on a faster way to check every pixel in an image. on: 2014-04-12 10:24:34
The problem isn't so much loading the sheet as it is using .getColor() 1024 times on a 32x32 sprite that's located on a 1024x512 sheet. Basically I'm not working with a 32x32 image, I'm working with a 1024x512 one and java really doesn't like that. :/
Java per se has no problem with handling 0.5 megapixel images.

Lets take a step back here. You're loading images with LWJGL and then extracting their contents to process them. I'm going to guess two things: firstly, that these images serve only for collision testing, and secondly that LWJGL loads them into texture memory on the graphics card.

If I'm right then the solution is to skip the graphics card. If you load the images using javax.imageio.ImageIO then you get java.awt.image.BufferedImage instances and you can call getRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) to extract your sprite from the image.

For completeness, there may also be a way in LWJGL to create a new 32x32 texture, paint the appropriate segment of your sprite sheet onto it, and then fetch just that back from the graphics card; but I can't see any good reason to do that.
6  Game Development / Newbie & Debugging Questions / Re: Advice on a faster way to check every pixel in an image. on: 2014-04-08 18:33:13
I'm seeing Image.getTexture().getTextureData() in the Slick docs, could be useful, but most likely slower than Image.getColor() method if you can't batch the texture downloads from the card.

Look at the Image source, linked above.

1  
2  
3  
4  
   public Color getColor(int x, int y) {
      if (pixelData == null) {
         pixelData = texture.getTextureData();
      }

So getTextureData() is definitely the way to go.
7  Game Development / Game Play & Game Design / Re: Text based strategy game examples? on: 2014-04-04 14:59:13
Pocket Kingdom 4K from the 2012 Java4k contest isn't quite what you describe, but it's in the ballpark.
8  Discussions / General Discussions / Re: JGO Kickstarter on: 2014-04-01 21:41:31
Now the most important question is... do you guys like the new JGO logo?
To be perfectly frank, it took me a long time to see that it's Duke upside-down. I thought it was some kind of Lovecraftian horror.
9  Discussions / General Discussions / Re: JDK 8 is released on: 2014-03-26 13:58:27
Failing that, Java, with structs/value types/mapped objects, ascii operator definition, and multidimensional arrays. Those three things will complete the language for me.
Reified types would be nice, but I don't think they're going to happen. Too many problems with backwards compatibility.
10  Games Center / 4K Game Competition - 2014 / Re: Community voting on: 2014-03-21 13:04:43
Not many entries this year, but some good ones. I was disappointed with DicePuzzle: IMO it's one thing to spot a game whose mechanics can work in 4k, and something completely different to copy all of its levels identically. I'd have given it a point if there had been some originality.
11  Discussions / General Discussions / Re: Programmer jokes on: 2014-03-18 09:14:32
How do you keep a programmer in the shower all day?
Give him a bottle of shampoo which says "lather, rinse, repeat."

The boy is smoking and leaving smoke rings into the air. The girl gets irritated with the smoke and says to her lover: "Can't you see the warning written on the cigarette packet: smoking is injurious to health!" The boy replies: "Darling, I am a programmer. We don't worry about warnings, we only worry about errors."
12  Discussions / General Discussions / Re: I just found out that a few letters of recommendation may be written by you on: 2014-03-18 09:10:44
That being said, if the school in question doesn't follow up with a phone call to the professor and just accepts the letter on its own then they deserve what they get.
My guess, from the title, is that someone at the school in question noticed that they had received word-for-word identical letters from several people, and that they are therefore somewhat suspicious.
13  Games Center / Contests / Re: Sudoku solver on: 2014-03-15 13:44:02
As for how hard it is to solve... I'm not sure I have a solution for that yet.
My approach to that is to solve it using human-like reasoning rules (this is only value which isn't prohibited from being in this cell, this is the only cell in this group of 9 which isn't prohibited from having this value, etc), assigning a difficulty weight to each one, and then calculating the minimal total weight to solve the grid.

A better way of calculating the difficulty would be to define it inductively over the entire graph of partial solutions whose edges are defined by these reasoning rules, using something like a harmonic mean to take into account that it's easier to solve if the number of possible next steps is consistently high, but that becomes very computationally expensive.
14  Discussions / Miscellaneous Topics / Re: Math problem on: 2014-03-06 00:31:54
You have z = 8 (mod 37) and z = 11 (mod 43). Apply the Chinese remainder theorem to find z mod 37*43.
15  Discussions / General Discussions / Re: Do internet Game Dev Teams Actually work? on: 2014-03-02 09:51:49
So, we inexperienced programmers need to learn how to lead a team? Precisely, how to engage in a team of programmers and provide a set of reasonable goals so that each team member knows what to do, when to finish, and where to go to?
It's either that or find someone who can be the project coordinator so that you can delegate that to them. But even in that case you'll need some leadership skills, because you'll need to lead the project coordinator. If you don't give them a clear vision, they can't lead other people towards it.

Quote
How do we learn this?
Read about effective leadership. You don't have to do an MBA, but you need some understanding of the psychology of leadership and following; and you need to be able to think about which leadership styles will work in your context.

Then find someone who's good at it and willing to mentor and ask to work on their team for a while. Watch how they do it; ask questions about why they do something a certain way; and make sure you pull your weight as a team member.
16  Games Center / WIP games, tools & toy projects / Re: Airships, a ship design & fight game on: 2014-02-28 13:06:30
The game also features somewhat overly realistic heraldry
No quarters?  Sad
17  Game Development / Game Play & Game Design / Re: How does one make such perfect 8x8 font? on: 2014-02-14 10:35:02
Looks quite similar to the font from the Amstrad 8-bit range, so I wouldn't discount the possibility that the font is older than Notch.
18  Games Center / 4K Game Competition - 2014 / Re: Raid On Java 4K on: 2014-02-11 10:29:48
I've also tested few quick modifications with the radar version (pastebin):
- renaming the class, but with "A" Wink
It's even better to rename it after a method from the standard library which you need to invoke. That way they share an entry in the constant pool.
19  Discussions / General Discussions / Re: Someone brought up an interesting topic regarding the new JDK8 default methods. on: 2014-02-09 17:16:45
Assuming this is the example you're referring to:

1  
2  
3  
4  
myDeck.sort(
    Comparator
        .comparing(Card::getRank)
        .thenComparing(Comparator.comparing(Card::getSuit)));

These are not default methods, they are normal static methods which can now be added to interfaces with Java 8. A default implementation is not provided; the implementation is being passed in via a method handle (it could also be a lambda expression).
You're half-right. comparing is a normal static method, but thenComparing is a default method.
20  Game Development / Newbie & Debugging Questions / Re: Text renders upside down on: 2014-02-07 18:24:40
Hello all i have litle problem when i render text its upside down but when i use Ortho to fix it everthing else flips upside down.
Is there anyway to fix that?
Push a suitable matrix before rendering the text and pop it afterwards?

and one quick question how can i draw something above everything else?i tryed some things but they didnt work.
Disable the z-buffer before you draw it?
21  Games Center / 4K Game Competition - 2014 / Re: GameInceptionGames on: 2014-01-20 23:59:47
Ticception is a work of genius.
Original idea, or a clone of someone else's invention?
I don't know whether Apo came up with it independently, but I saw it described several months ago at http://mathwithbaddrawings.com/2013/06/16/ultimate-tic-tac-toe/
22  Game Development / Game Mechanics / Re: Loading and storing card images on: 2014-01-13 17:20:39
What's SVG support like on your platform? If you can use that then it would solve the scaling problem and probably use less memory than bitmaps.
23  Games Center / 4K Game Competition - 2014 / Re: Java4k Launcher (Final) on: 2014-01-13 10:24:44
This is the same issue that some applets encountered when running on a Mac - the applet container wasn't ready when the graphics context was requested. Some applets will loop at the start, waiting for the isAvailable() call to return true.

I don't know the right fix for this one. Should the launcher be made to match of one specific JVM behavior (Windows) or another?
This has been the source of much controversy in the past, specifically in the 2009 competition when an update released near the end of the submission period introduced a bug in the applet lifecycle. Unfortunately I can never find the detailed analysis that I wrote up back then.
24  Games Center / 4K Game Competition - 2014 / Re: Bianc4Kastafiore on: 2014-01-12 21:16:12
But I wonder if I can assume that player has a microphone ?
There was a submission about 3 years ago which took microphone input. Two of the four judges were unable to play it.
25  Games Center / 4K Game Competition - 2014 / Re: Hero Band Revolution 4k on: 2014-01-12 18:11:33
Please let me know how it plays on your machines.  I'm interested to know if this really is Windows only at this point.
The sound seems to work fine on my Mint Maya (based on Ubuntu Precise) desktop, although I'm not certain about the graphics: there's a very weird glyph in the bottom-left which seems to be caused by overlaying strings which should be separate. http://imgur.com/j7f2GsP
26  Games Center / 4K Game Competition - 2014 / Re: Treasure Hunt 4k on: 2014-01-08 17:44:41
I'm curious what people think.
Sloooooow. It's an interesting concept, but it ends up being snail racing with only one snail.
27  Discussions / Miscellaneous Topics / Re: Throw me with programming ideas! on: 2014-01-02 18:59:39
Quadriletteral ( http://www.java-gaming.org/index.php?topic=21703.0 ) was originally designed as a head-to-head game where clues would be given on a time schedule or when both players requested one. Drop me a PM if you want a copy of the dictionary and the code.
28  Game Development / Newbie & Debugging Questions / Re: Should i Worry About Copyright ( Font, AngelCode/BMFont Program) on: 2013-12-30 09:30:45
This varies considerably from country to country. In many countries the TTF is subject to copyright protection, but bitmaps created with the font have no protection. In Germany, where the printing press was invented, they have unusually strong typeface protection, so if you're planning to distribute your game there you should investigate that. It is never worth asking for legal advice from anyone (whether qualified to give it or not) without specifying the jurisdictions which might be applicable.
29  Game Development / Shared Code / Re: Calculating PI on: 2013-12-17 13:57:23
I assert that I assume that Pi is between 3.1 and 2.9,
My bad, I misread it as checking that pi was simultaneously smaller than 2.9 and greater than 3.1.

There was no luck involved in my answer, though. 99 = 3 (mod 4).

A further improvement, which eliminates the potential loss of significance, is to make the loop body quarterPI -= 2./(i*i+2*i);. This requires i to be a double (or long) to avoid overflow.
30  Game Development / Shared Code / Re: Calculating PI on: 2013-12-17 12:43:18
No, worse. You're now asserting a statement which is going to be false whatever the value of quarterPI. I haven't tested this, but I think I've got the loop rework correct.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
      double quarterPI = 0;
      for (int i = 9999999; i >= 3; i -= 4)
      {
         quarterPI += 1./(i+2) - 1./i;
      }
      quarterPI += 1;
      System.out.println("pi: "+(quarterPI*4));

      try
      {
         double epsilon = 0.1;
         assert (Math.abs(quarterPI*4 - 3) <= epsilon);
      }
      catch(java.lang.AssertionError ass)
      {
         System.out.println("pi is not 3!");
      }
Pages: [1] 2 3 ... 38
 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (35 views)
2014-04-15 18:08:23

BurntPizza (31 views)
2014-04-15 03:46:01

UprightPath (46 views)
2014-04-14 17:39:50

UprightPath (29 views)
2014-04-14 17:35:47

Porlus (46 views)
2014-04-14 15:48:38

tom_mai78101 (67 views)
2014-04-10 04:04:31

BurntPizza (127 views)
2014-04-08 23:06:04

tom_mai78101 (227 views)
2014-04-05 13:34:39

trollwarrior1 (192 views)
2014-04-04 12:06:45

CJLetsGame (199 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!