Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (683)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (751)
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  Discussions / General Discussions / Re: Robot Farm Game: Looking for testers on: 2016-06-29 01:55:23
Screenshots?
2  Game Development / Game Play & Game Design / Re: request: receipe/materials approach? and/or design pattern? on: 2016-06-20 13:25:13
1  
2  
3  
public enum Material {
 ItemA, ItemB, ItemC, ItemD
}


1  
2  
3  
public enum Item {
  MagicSword
}


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  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
import java.util.HashMap;

public class CraftCheck {
  private HashMap materials = new HashMap();
  private HashMap items = new HashMap();

  public CraftCheck() {
    inv();
    sizes();
    check();
  }


  private void sizes() {
    System.out.println("materials.size(" + materials.size() + ")");
    System.out.println("items.size(" + items.size() + ")");
  }

  // add inventory here
  private void inv() {
    addMaterials(Material.ItemA, 10);
    addMaterials(Material.ItemB, 8);
    addMaterials(Material.ItemC, 15);
  }

  // util method to load hashmap
  private void addMaterials(Material material, int amount) {
    materials.put(material, amount);
  }


  private void check() {
    isCraftable(Item.MagicSword);
  }

  private void isCraftable(Item item) {
    if(Item.MagicSword.equals(item)) {
      tryMagicSword();
    }
  }

  private void tryMagicSword() {
    if((Integer)materials.get(Material.ItemA) > 5) {
      if((Integer)materials.get(Material.ItemB) > 3) {
        System.out.println("You can make a magic sword!");
      }
    }

  }


  public static void main(String[] args) {
    new CraftCheck();
  }
}
3  Game Development / Game Play & Game Design / Re: request: receipe/materials approach? and/or design pattern? on: 2016-06-20 12:21:13
Just one.

I'm starting to think that a plain HashMap object might be all I that need..
4  Game Development / Game Play & Game Design / request: receipe/materials approach? and/or design pattern? on: 2016-06-20 08:42:42
I have the annoying game on my mobile that I hate but strangely keep playing to pass the time.. (it's called brave frontier)

A part of it involves the collecting of materials as part of a crafting mini-game.

I've been thinking about writing a small app where I simply enter the materials I have and the app calculates what items I can craft (via recipies)

The problem thought is that these items can then become materials for other items and so forth, so there is an element of recursion going on.

I initially thought that I could used Java's TreeNode's but  I'm not so sure anymore.

Any ideas/comments/suggestions on how to tackle this?
5  Java Game APIs & Engines / Tools Discussion / Re: imgui on: 2016-06-01 10:33:03
I'm missing something here. So this is an alternative java front-end to an existing dev framework/engine right? (...that already had a front-end?). What was the benefit of re-making this in Java? I'm guessing that, in doing so, you have introduced new functionality?
6  Games Center / WIP games, tools & toy projects / Re: Mercenary Of Destiny - 2D Java MMORPG on: 2016-05-18 14:30:04
...using pure java.

I tip my cap to you.
7  Game Development / Newbie & Debugging Questions / Re: Design pattern for RPG skills (good, bad, horrible?) on: 2016-04-13 10:11:25
I would start by doing some reading around the composite pattern.
8  Game Development / Game Mechanics / Re: Loot tables on: 2016-03-29 09:32:45
Excellent!

<rubs hands with glee>

I'll try some of those after work. Thanks guys!

*big grin*
9  Game Development / Game Mechanics / Loot tables on: 2016-03-29 05:13:44
Anyone have any sample code or pseudo-code on how to implement these (nicely?) in Java.

I currently roll a rand(10)  that feeds a 10 case switch statement to test stuff, but now I need concept of rarity...

I've googled a bit but found nothing that resembled a lookup table structure (which is what I thought loot-tables were supposed to be based on??)
10  Discussions / General Discussions / Re: Forum is quiet on: 2016-03-13 15:10:10
I actually like the pace here.




11  Discussions / General Discussions / Re: Grass Texture on: 2016-02-25 07:04:03

I just chucked your grass texture into my game, it looks beautiful. Heres a screenshot:

[snip]

Here's an end-level boss asset for you to use in your lovely looking game NegativeZero!
12  Discussions / General Discussions / Re: Unity3D/2D on: 2016-02-25 06:44:56
Has anyone tried Project Rider? It's basically ReSharper in IntelliJ, I don't know how anything else could compete with that.

Thanks for the heads-up Spasi.
I thought this link was their CLion project but it wasn't.

Cheers!
13  Discussions / General Discussions / Re: Android moving to Java 8? on: 2016-01-04 09:38:55
IntelliJ are moving entirely to Java8 as well!

http://blog.jetbrains.com/idea/2015/12/intellij-idea-16-eap-144-2608-is-out/
14  Games Center / WIP games, tools & toy projects / Re: Vangard on: 2015-11-18 09:17:41
ags1, just out of curiousity, have you seen or played the game 'Banished' ?
15  Discussions / General Discussions / Re: JGO IDE Survey on: 2015-11-03 05:23:13
IntelliJ masterrace reporting in...
16  Games Center / WIP games, tools & toy projects / Re: Vangard on: 2015-10-26 06:24:49
Sometimes building a game *is* the game.
17  Discussions / Miscellaneous Topics / Re: Programming Laptops on: 2015-10-21 06:52:15
*shudder*

I just can't code on a laptop (for any length of time).

Need my multiple screens, my mechanical keyboard & super sensitive gaming mouse to get into the 'zone'...
18  Discussions / General Discussions / Re: Making Games for Nobody on: 2015-10-19 06:49:40
Which horrible behaviour from backers have you seen? Please can you explain to me what you meant?

Let me give you an example:

Dev: "Hello everybody, my vision for this project is to be a fun car game."

BackerA: "I backed you at god tier. I demand you add boats."

Dev: "Update: The project will now be a fun car-game with boats too."

BackerB: "This game needs dinosaurs. Who's with me?" Creates poll on project's forum. Thread hits 1000 pages.

Dev: "Update: The game will now be a fun car game with boats and dinosaurs.."

BackerC: "All the big AAA games have zombies. We have to have zombies too or your game cannot compete!" Another huge thread on project forum that spans many weeks.

Dev: "Update:The game will now be a fun car-game with boats and dinosaurs and zombies."

At no point did any of the "loudest" backers respect the original vision of the dev for this project.

(You know... the thing we all initially backed)
19  Discussions / General Discussions / Re: Making Games for Nobody on: 2015-10-16 05:50:40
I try to make games for myself, but always get side-tracked on some very specific game mechanic side project (the current one is yet another combat mechanic.. hehe).

I would never create a game for other people because I don't like people. I've seen some horrible behaviour from backers of certain kickstarters lately. The vision of game devs are just not respected, and backers treat the devs as voodoo dolls. No way would I willing walk into that kinda of furball.
20  Games Center / WIP games, tools & toy projects / Re: Vangard on: 2015-10-16 05:31:47
Ha ha, I'm considerably older Smiley

I'm probably one of the oldest people on the forum

I doubt that very much young ags1...
Wink
21  Discussions / Miscellaneous Topics / Re: Social Stigma of Game Dev and Peer Pressure on: 2015-10-06 04:18:13
The fact that you mention 'clubbing' in your list of activities suggests to me that your quite young. The pressure that you feel is totally normal. It's almost a rite-of-passage, it will perplex you for a good 10 years or more. Then it will settle and you will find peace with your interests/hobbies and your circle of friends (which will no doubt look very different to the circle you mix with now).

tl;dr Don't worry about it. Keep doing what your doing. It will all come out in the wash... Wink
22  Game Development / Game Play & Game Design / Re: Leveling up and balance on: 2015-09-24 08:39:39
I'd vote that it's too non-random...

I kinda like the idea that a Level 0 has a chance of taking down a Level 5.
23  Games Center / WIP games, tools & toy projects / Re: Vangard on: 2015-08-31 09:05:33
Woah. This little project interests me greatly. I totally understand if your not intending to release the source (ie: you're making it into a game?), but can you provide some insight as to how you:

a) generate/track/control the entities? (and how they interact with each other?)

b) your behaviour implementation? Are they given out to each entity at random? Or do entities learn/grow them over time?
24  Game Development / Game Play & Game Design / Re: Octalysis gamification framework on: 2015-08-26 09:28:27
Wow! That's Junglist! He was the main reason I watched Good Game on the ABC.

Will watch the rest (if any) when I get home.
25  Games Center / Showcase / Re: Z25d - a javafx 2.5d rpg game on: 2015-07-06 09:36:54
Oh my....

The artwork looks fantastic!
26  Game Development / Game Play & Game Design / Re: RPG game skeleton design on: 2015-07-06 09:04:18
My first suggestion would be:
- Uninstall Eclipse.
- Install IntelliJ Community Edition.

You can thank me later.  Grin
27  Games Center / WIP games, tools & toy projects / Re: Cosmic Menace on: 2015-07-06 09:00:12
Looks great!
28  Discussions / Miscellaneous Topics / Re: What are your habits while you're programming? on: 2015-06-19 08:51:09
IntelliJ + Night-time + Coffee + Silence (apart from the click/clack from a mechanical keyboard)
29  Discussions / Miscellaneous Topics / Re: What's your favorite OS and why? on: 2015-06-19 08:47:57
I hate them all. I use Windows 7 Ultimate N 64 bit otherwise.

Cas Smiley

I'm with this guy, except that I hate iOS slightly more than the others.
30  Discussions / Miscellaneous Topics / Re: What are your current personal projects? on: 2015-06-19 07:37:43
The code is so clean its actually sterile, and im loving it.

Ok, now I'm intrigued. Please do tell us more about the libs you're using.
Pages: [1] 2 3 ... 11
 
orrenravid (227 views)
2016-07-16 03:57:23

theagentd (295 views)
2016-07-11 14:28:54

Hydroque (382 views)
2016-07-06 05:56:57

Hydroque (533 views)
2016-07-03 08:52:54

GrandCastle (403 views)
2016-07-01 09:13:47

GrandCastle (396 views)
2016-07-01 09:09:45

CopyableCougar4 (449 views)
2016-06-25 16:56:52

Hydroque (422 views)
2016-06-22 02:17:53

SwampChicken (387 views)
2016-06-20 13:22:57

SwampChicken (306 views)
2016-06-20 13:22:49
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17
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!