Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
games submitted by our members
Games in WIP (562)
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 ... 18
1  Game Development / Game Mechanics / Re: 2D side-scrolling water method on: 2014-09-20 12:18:11
Do you mean like terraria style water?
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-17 19:33:35
I (hackishly) changed the basic setup of Core's in Mercury (JGO Post Here).
Pretty good stuff.

Old boilerplate code would normally look like this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
public class MyClass extends Core {
    Runner runner = Runner.getInstance();

    public MyClass() {
        super("Example");

        runner.init(this, 800, 600, false);
        runner.run();
    }

    public void init()              {}
    public void update(float delta) {}
    public void render(Graphics g)  {}
    public void cleanup()           {}

    public static void main(String[] args) {
        new MyClass();
    }
}

Now it looks like this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
public class MyClass extends Core {
    public MyClass() {
        super("Example", 800, 600, false);
    }

    public void init()              {}
    public void update(float delta) {}
    public void render(Graphics g)  {}
    public void cleanup()           {}

    public static void main(String[] args) {
        new MyClass().run();
    }
}

You can read more about this here. Not the biggest change in the world, but still neat IMO.

I actually did this two days ago, but I figured I might as well post about it. Smiley

- Jev
With java about to implement lambda you could utilize this to make your widgets and function calling classes much cleaner (more of an internal upgrade , isntead of nested ifs),such as buttons or clickables , maybe even certain interactions from objects.
3  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-16 21:13:52
He has worked almost independently until he began making money off of it which is quite a feat especially as he then sacrificed his career to give this chance a go.
4  Game Development / Newbie & Debugging Questions / Re: Actively update a VBO on: 2014-09-16 21:10:19
Its ok ive realised I can do it through a shader
5  Game Development / Newbie & Debugging Questions / actively update a VBO on: 2014-09-16 19:58:32
How would I actively update a VBO that already bound.
6  Game Development / Newbie & Debugging Questions / Re: [LibGdx] Massive fps drop when loading more than 1 texture. on: 2014-09-16 19:38:24
mind if I see the batch code?
7  Game Development / Newbie & Debugging Questions / Re: [LibGdx] Massive fps drop when loading more than 1 texture. on: 2014-09-16 18:04:34
Tile and rendering code would be good.
8  Discussions / General Discussions / How does the JRE run a jar on: 2014-09-16 16:00:49
So currently ive been thinking , thinking about compilers and the actual RE. My question is how does the computer know that when I run my .jar to load it into the JRE and not to open it , and if I were to go about creating a similar RE how would this be done.
9  Game Development / Newbie & Debugging Questions / Re: [solved] Finding the distance between 2 rectangles on: 2014-09-15 21:05:56
Im guessing this was calculating the heuristic. Good to see you sorted it out.
10  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-14 21:20:56
Probably wouldnt be too difficult to implement , simple set it so that moving onto a road is a discounted cost from the original player location (so instead of 1 tile = 10 cost 1 road = 5 cost) then store this in an array for the entity , and make the entity move at a  certain pace depending on the current material that its on.
11  Games Center / WIP games, tools & toy projects / Re: SOLIS on: 2014-09-14 21:17:54
Bug update:

Fixed some minor bugs and have begun implemnting the interactions system for certain tiles such as doors , or computers that may have popup windows.
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-14 20:51:07
I just took a look at an old problem of mine, and realized a simple solution Smiley Anyways, I present to you RotatingRectangle collision in 98 lines (including some cropped parts in this code).

Quote from: CopyableCougar4
I may just have to put my "wonderful" rotating collision detection on hold, as I am unsure whether I have the brainpower to solve this problem...
The brainpower has returned to me Smiley

I know, not impressive, I just felt I should post it Smiley

(Let me know if I should make this a pastebin)


CopyableCougar4
Anything that is made with good intentions and done well is impressive. I found this useful the idea of rotating collision just makes me want to go nope . Same with skeletal joint movement.
13  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-14 19:37:02
would be a cool feature , you could have units that try to attack the railways             .
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-14 16:37:16
fixed some rather annoying bugs when using the buttons.
15  Games Center / Featured Games / Re: [Slick2d] Retro-Pixel Castles > Building Info! < on: 2014-09-14 08:56:59
I noticed in the derelict building you had a rail track, maybe that could have some further implementation into transportation?
16  Game Development / Newbie & Debugging Questions / Re: Draggable box issues on: 2014-09-13 21:26:40
So I divided the maximum offsets by two, and it "seems" to fix my problem?? I suppose that for now this is solved, but I still don't understand how cutting the offsets in half appears to fix it. Any ideas?

CopyableCougar4
As you are using opengl the screen goes from -1 to 1 , hence the difference between them is 2 so the position must be divided in order to keep it inline with the screen , well thats what ive been going on.
17  Games Center / WIP games, tools & toy projects / Re: Gunslugs 2 - 10th week of development on: 2014-09-13 18:01:08
Do you have a pre built framework for your games , not as in formulaic I mean do you have custom rendering stuff you have written to make it easier?
18  Games Center / WIP games, tools & toy projects / Re: SOLIS on: 2014-09-13 10:57:40


Update:
The main ship is now able to leave the dock which is the start of the adventure bit.
Major performance increase utilizing a single tile that renders static tiles instead of 256*256 individual tiles
Ship building almost complete , just need to fix a few bugs with it.
19  Discussions / General Discussions / Re: Knightlore type isometric view - questions. on: 2014-09-13 10:38:47
Hey thanxs for the reply there Icass - very much appreciated. In the absent's of advice, I have decided to code up a swing app, to aid in design. This map editor will save this out to an xml file. Then a custom map engine to display.
I can probably help a little if you need anything or want to go ahead , isometric can get a bit brain hurty at some points.
20  Discussions / General Discussions / Re: Nvidia Sues Samsung and Qualcomm on: 2014-09-13 10:37:35
patenting the entire chip is a bit much however copying the way to utilize it and the way it functions is fine , seeing as qualcomm may have done this without permission then .
21  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-13 10:33:21
Markus has a 40% stock share in mojang , if its sold he gets 40% so he would get about 1 billion USD from the deal if its at that price. I would personally take it. Weird to think that he first developed minecraft on here though.
22  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-12 17:35:30
so he sold it , I guess. I kind of feel a bit angry at his face , dont know why just do.
23  Games Center / Showcase / Re: Earth's defender on: 2014-09-10 19:51:59
Looks very cool , if only I had some device for google play Sad . What library does it use?
24  Games Center / WIP games, tools & toy projects / Re: SOLIS on: 2014-09-10 17:53:52
Not too much has happened however a large number of bugs have been removed and development has picked up again.
25  Game Development / Newbie & Debugging Questions / Re: Saving Game Data on: 2014-09-09 19:00:01
The simplest way to do this is to write it to a text file; I built this for my encryption programs,basic but it works.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
public static String readstring(String location) throws IOException {
      File file = new File(location);

      if (!file.exists()) {
         return null;
      }
      FileReader fr = new FileReader(file.getAbsoluteFile());
      BufferedReader br = new BufferedReader(fr);
      String filedata = br.readLine();
      return filedata;
   }

and for writing the value:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
public static void writestring(String content) throws IOException {
      File file = new File("unencrypted.txt");
      if (!file.exists()) {
         file.createNewFile();
      }

      FileWriter fw = new FileWriter(file.getAbsoluteFile());
      BufferedWriter bw = new BufferedWriter(fw);
      bw.write(content);
      bw.close();

   }
26  Game Development / Newbie & Debugging Questions / Re: Is it Possible to use Java and send sounds through the microphone? on: 2014-09-09 18:56:00
You could probably receive microphone input through an API. However to send it so the other person can here it they would need your software downloaded and have that actively recieveing through wifi and then converting that data into sound. Could be done if you can find the api for the microphone
27  Discussions / General Discussions / Re: Performance Test for the Voxel Thing on: 2014-09-07 19:54:37
max 412, av 370 . Nice but make the doors a tad larger

i7 4700HQ
GTX 770m 3 gigs
8 gb ram

28  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-07 19:38:07
Back from honeymoon in Rome, back to voxels!



Cheers,

Kev

Kev for god sake keep working on this , its naturally brilliant. Maybe a mars base simulator esq thing? retro dungeon explorer?


As for what ive been doing ...
Debugging the 200 line tick method in my main class trying to find an inverted flag.
29  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-07 19:26:46
That was just a small sampling of the names. As I said, there are 225 male first names and 150 female first names. Tongue

CopyableCougar4
Yet the question remains is there a steve?
30  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-07 19:20:36
WAAAAH , where is steve?
Pages: [1] 2 3 ... 18
 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (28 views)
2014-09-21 02:42:18

BurntPizza (18 views)
2014-09-21 01:30:30

moogie (19 views)
2014-09-21 00:26:15

UprightPath (27 views)
2014-09-20 20:14:06

BurntPizza (29 views)
2014-09-19 03:14:18

Dwinin (45 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (101 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56

mitcheeb (71 views)
2014-09-08 06:06:29
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!