Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (748)
Games in Android Showcase (226)
games submitted by our members
Games in WIP (834)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 5 6 [7] 8 9 10
 61 
 on: 2018-02-17 19:30:43 
Started by TGStudiosDE - Last post by KevinWorkman
I wanted to create Levels with my game Engine and load level files with it, but I don't know where to get started and what structure should I use for level loading or is there even a good level format to load into my Engine ?

Like most things with programming, there isn't a single best way to do this. You can use any format your want: json, xml, simple text, properties, some custom format, serialization, whatever. The best thing you can do is try out a few different approaches and see which one you like best.

And another question is how can I implement collision to my Engine because a simple AABB-Collision isn't enough Smiley

Again, there are a million different ways to do this. Start with something simple. Google something like "collision detection" for a ton of results. Put together some simple example programs that test things out.

 62 
 on: 2018-02-17 19:10:09 
Started by TGStudiosDE - Last post by Stampler
If you happen  to use LibGDX you can use the Tiled Mapeditor mapeditor.org with it. LibGDX has built-in support for it  Pointing

 63 
 on: 2018-02-17 19:05:30 
Started by ThatAshMaBob - Last post by ThatAshMaBob
Thank you so much! That did work! I never though of doing it that way. And in response to your questions. I knew what I was doing somewhat. I knew what I wanted to do. I was just having problem implementing it. But thank you both Smiley

 64 
 on: 2018-02-17 18:58:21 
Started by ThatAshMaBob - Last post by Stampler
Hi,

Sorry, I don't really get where your problem is or rather it looks like you don't do what you intend to at all  Huh
For example you do the same thing in your if and else block.

Anyways, I guess what you are trying to do can be achieved with something like this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
if (username != null) {
   
    switch(username) {
        case "superman":
            g.drawImage(supermanImage);
            break;
        case "batman":
            g.drawImage(batmanImage);
            break;
        default:
            g.drawImage(noCostumeImage)
    }

    g.setColor(Color.WHITE);
    g.setFont(Main.size8);
    g.drawString(username, (int)x - (int)Main.sX - username.length() * 3 / 2, (int)y - (int)Main.sY);

} else {
    System.out.println("null");
}

 65 
 on: 2018-02-17 18:53:50 
Started by ThatAshMaBob - Last post by A-Bomb
I'm curious. What exactly is the issue? Are you just trying to fish for some inspiration and think of ways to associate a name with a Sprite? Or is there actually something going wrong in those snippets?

 66 
 on: 2018-02-17 18:53:14 
Started by A-Bomb - Last post by KevinWorkman
Yeah... I thought that was a bit far fetched. BUT I still included them on the off chance they had Java installed (many of the positions to which I applied were Java positions so for those it was probably more likely) or they were just really interested. However, even if they didn't want to do that, they still had the option of watching the videos of my work in the link I provided.

Also the zip file was only if they wanted to test the demos. Otherwise, they could simply use DropBox's web file viewer (unless on mobile).

A couple things to consider: the recruiter is probably not a Java programmer, so they probably aren't going to install Java, download a jar, figure out how to run the jar, and then run it. Their job is to get people who might be a good fit through the door. So it's a numbers game: they can spend a half hour working through your portfolio, or they can spend that half hour copy-pasting the message to 15 other people. And the Java programmers who would eventually interview you want to spend as little time as possible on the interview, so they can get back to work. So they aren't going to download and run a jar file either.

Make it easy for people. If your portfolio is what you want to highlight, then put together a website. Showcase screenshots (just a few, not an album of hundreds of images) and videos of your work. People won't download a jar, but they might watch a .gif file.

But also keep in mind that even that is probably more work than most recruiters and interviewers are going to do. Most people are going to glance at your resume and make a snap decision based on that. So you can't just rely on a portfolio. Putting together a portfolio can be a great way to help organize a resume, but the resume is what gets you through the door.

I'm gonna take my grumpy arse and work on one of my projects right now!

That's some pretty solid advice.

 67 
 on: 2018-02-17 18:40:24 
Started by ThatAshMaBob - Last post by ThatAshMaBob
Hello there,

I'm currently working on a 2d sandbox survival type game and I'm trying to implement a system that changes the player sprite based on the name you input. I've tried messing around with many different methods to do this, but none of them seem to be working. The current;y code I have for getting the string input is this:

1  
2  
3  
4  
5  
6  
7  
public static String getUserName() {
       if (username.getText() != null) {
         return Main.player.username = username.getText();
       }
       return "";
       }
   }


And here is the part that displays the name above the player and displays the sprite:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
if (username != null) {
         if (Main.dir == movementSpeed) {
            g.drawImage(image);
         } else {
            g.drawImage(image);
         }
         g.setColor(Color.WHITE);
         g.setFont(Main.size8);
         g.drawString(username, (int)x - (int)Main.sX - username.length() * 3 / 2, (int)y - (int)Main.sY);

      } else {
         System.out.println("null");
      }


Thank you for any possible feedback and help Smiley
*Should be noted that I am not using any libraries 

 68 
 on: 2018-02-17 16:03:22 
Started by TGStudiosDE - Last post by VaTTeRGeR
I guess you want 2d algorithms, so triangle<->triangle and triangle<->ray for complex stuff plus good old AABB<->AABB and AABB<->ray for pre-check.

If It's just a top-down shooter use circles and rays.

All you need is already implemented in LibGDX:
https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/math/Intersector.java

If you want 3d stuff, just use the equivalent in 3d, like convex hulls and rays.

Just choose what represents your game objects best  Shocked

 69 
 on: 2018-02-17 15:47:57 
Started by A-Bomb - Last post by A-Bomb
Yeah, I figured I was still just a little hot headed from the whole experience. It's been a few years now and, while I believe I've come a long way, it seems like quite the opposite from a professional's point of view...

However, in my defense (I have to fire back right? Cheesy):
What is your experience?
I figured I covered my experience by including the WVSGC research grant acceptance letter I got for my ray casting engine, as well as the 3 demos I included for the other engines I've written (alternatively, I also had video links to my projects in my Resume). I thought I made that as easy as possible for the recruiter to find (evidently not, as my format of presentation was messy; I will work on creating a more coherent format)!
What classes have you taken?
Again, my related coursework was in the Resume I provided (which I will convert to PDF for next time, thank you to everyone who brought that to my attention!).
Nobody is going to download a jar file, let alone install Java and then run a jar file.
Yeah... I thought that was a bit far fetched. BUT I still included them on the off chance they had Java installed (many of the positions to which I applied were Java positions so for those it was probably more likely) or they were just really interested. However, even if they didn't want to do that, they still had the option of watching the videos of my work in the link I provided.
Using Java 8 isn't going to get you a job. Nobody is going to download a zip file. You have to make it as easy as possible for people to get this information.
I just specified the version because one of my demos makes use of the Java 8 Long class's unsigned operation methods (the other demos use an unsigned long comparison method I read about online and don't reference any Java 8 methods) and I didn't want them to have it crash for some unknown reason. Also the zip file was only if they wanted to test the demos. Otherwise, they could simply use DropBox's web file viewer (unless on mobile).
If I have to install Microsoft Word just to read your resume, I'm going to move on to the next resume.
Fair enough. PDF next time.

I really appreciate yours as well as philfrei's input. I am young, and I do have a lot to improve on (and learn!), but I don't think I'm gonna let it stress me out anymore. As long as I can eat, pay the bills, and still have time to program my passion projects on the side, I consider that a victory. Thank you all once again for your collective cents (there has to be at least a dollar here lol), civility, patience and poise. I'm gonna take my grumpy arse and work on one of my projects right now!

 70 
 on: 2018-02-17 14:45:13 
Started by wax_lyrical - Last post by wax_lyrical
Katt – Run on the Tide

is a story-driven, action-adventure game set amidst a world steeped in legend, gods and mortals. Currently in preliminary demo/conceptual stages, the game has hand drawn graphics, pets and a deep story.

An independent title (there are principally two of us) that we're poring all our creative energy into.

<a href="http://www.youtube.com/v/JqT63dAdr4k?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/JqT63dAdr4k?version=3&amp;hl=en_US&amp;start=</a>

This is a pure Java game, currently for PC, but which we hope to port to android and ios.

http://www.kattrunonthetide.com
Facebook: https://www.facebook.com/KattGame/
Twitter: @katt_game



Thanks for your interest!

Pages: 1 ... 5 6 [7] 8 9 10
 
xxMrPHDxx (325 views)
2017-12-31 17:17:51

xxMrPHDxx (106 views)
2017-12-31 17:15:51

xxMrPHDxx (156 views)
2017-12-28 18:11:33

Ecumene (336 views)
2017-09-30 02:57:34

theagentd (502 views)
2017-09-26 18:23:31

cybrmynd (540 views)
2017-08-02 12:28:51

cybrmynd (482 views)
2017-08-02 12:19:43

cybrmynd (458 views)
2017-08-02 12:18:09

Sralse (420 views)
2017-07-25 17:13:48

Archive (1333 views)
2017-04-27 17:45:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
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!