Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 ... 19
1  Game Development / Newbie & Debugging Questions / Re: HasMap NullPointerException on: 2018-05-13 17:39:38
You're not ever putting anything into "map". It looks you are checking whether or not "map" has the id but then putting the new Array List into a separate HashMap called mouseEnterListeners. But then you continue using "map"
so to fix it change to:
if( !map.containsKey( id) ) {
   map.put( glfwWindowID,new ArrayList<MouseEnterListener>() );
2  Discussions / Miscellaneous Topics / Windows Defender blocks Kryo Download? on: 2018-05-09 23:47:06
I was recently reviving an old project which requires Kryo but while trying to install it, windows defender blocked the download.

It detected this file: Trojan:Java/Tisifi.C (link is to Microsoft information on the file)

I'm pretty sure this is some kind of freak error but does anybody know of any reason why Kryo would be blocked? Huh
3  Discussions / Miscellaneous Topics / Re: What I drew today on: 2018-04-27 18:02:14
Drew this cottage yesterday and am looking for some feedback. Particularly on the left side, something feels off to me but I'm not sure what.

4  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-04-12 03:28:34
Been really into machine learning lately. Cooked up a little library that works (mostly) but still needs a lot of work. Here are some of the results.

edit: also if anybody could suggest some other interesting projects I could do I would appreciate it because I'm kinda out of ideas

Classic classification problem. The network will separate the two blocks no matter their position.

A more complicated problem but the network handles it well I think.

Another complicated example. The network actually freaks out after a while on this one if left alone. Not quite sure why that happens.  Huh

And finally, a program that tells asks whether or not an image is of a "6" or a "g". An image that is a g has a value of -1 while an image of a 6 has a value of 1.

5  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3.1.5 on: 2018-01-06 17:41:16
There is a bit of a problem with the download website,

The LWJGL 3 custom download site refuses to download zip when JOML is selected. I tested

Chrome console outputs the following error:
Failed to load resource: the server responded with a status of 403

Deselecting JOML allows the package to download without any problem.
6  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-12-14 22:59:34
Did some more work on my game.
<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>
7  Game Development / Newbie & Debugging Questions / Re: shooting with mouse [Libgdx] [box2d] on: 2017-11-07 13:57:32
I'm not super familiar with box2D but I'm pretty sure the setLinearVelocity function is not dependant on the angle of the object. You have to set the parameters to the cos(angle) in the x, and  sin(angle) in the y. so try:
public void defineFireBall(){
        BodyDef bdef = new BodyDef();      
        bdef.position.set(getX(), getY());
        bdef.type = BodyDef.BodyType.DynamicBody;
        b2body = world.createBody(bdef);

        FixtureDef fdef = new FixtureDef();
        CircleShape shape = new CircleShape();
        shape.setRadius(3 / ExGame.PPM);      

        fdef.shape = shape;
        fdef.restitution = 1;
        fdef.friction = 0;

        float angle = screen.jogador.getRotation();//assuming the angle is in radians already
        float speed = 2.5f;
        b2body.setLinearVelocity(new Vector2( Math.cos(angle)*speed, Math.sin(angle)*speed);

and here's a link to the documentation: link
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-08-01 16:50:43
No it's just some music YouTube provides. I'm going to try and make my own music but that'll be much later.
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-30 15:11:29
<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

I made my game real time instead of turn-based and I updated the art  Smiley
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-20 04:21:59
Here's a quick and dirty look at the game I've been working on for the past month.
<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

Deep (working name) is a roguelike dungeon crawler with a robust and creative spell system (which I am still developing, I'll make a post here once the spell system is finalized).
11  Discussions / Miscellaneous Topics / Re: Silly Programming Mistakes on: 2017-06-04 22:01:41
I've recently been working with JavaScript specifically NodeJS and I wrote something like this:
app.get("/", new function(req, res){
//do something

took me longer that I'm willing to admit to find the mistake Stare

Answer in case you're as stuck as i was: removing the "new" in front of function fixes the code. The new makes the function run immediately as opposed to running when the user goes to the "/" route
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-05-19 12:29:34
I created a 3d Array of Voxels that have an x,y,z. Looped through using OpenSimplexNoise to get height. Set voxels under a certain height to visible. Rotated in 3d and projected to 2d coordinates.

To get the Z ordering right i just placed a pixel on a buffered image. Voxels with a higher z placed their pixel after and on top of voxels with lower z's. This is horribly slow but i wasn't going for performance so I used it.
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-05-10 23:17:58
Attempted to duplicate this tweet: link

Results were meh but it was a fun little day project.
Click to Play

(made in Java2D btw)
14  Games Center / Showcase / Re: Nintaco -- NES / Famicom emulator on: 2017-04-30 22:15:40
You should look at this Chip8 tutorial. I had no idea how to make emulators until I made a CHip8 one. If you have some experience in bit wise operations, it isn't super hard.
15  Games Center / Showcase / Re: Nintaco -- NES / Famicom emulator on: 2017-04-23 01:17:05
this is so cool. I recently coded a Chip8 emulator to moderate success (some games wouldnt work despite my best efforts :\) but the process was a lot fun. Good work! Pointing
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-03-01 17:17:34
So i revisited the idea of a gravity simulation using the bending of space. Im not sure if i ever posted about my past simulation but essentially I used a square grid to inherit gravity values from their neighbors. This time around, I'm using vector fields and the results are much better.

Stable Orbit:
Click to Play

Multiple Planets:
Click to Play

Satellite Orbits (Recorded late, moon crashes into planet at the end):
Click to Play
17  Games Center / WIP games, tools & toy projects / Re: Ot - 3D voxel engine on: 2017-01-09 22:26:58
Hes doing 3D math on the cpu. It's much slower than using OpenGL or DirectX because those use the graphics card for their calculations.
18  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-01-02 20:59:10
I've been mostly in C++ for school lately but I decided last night to finally dive into some machine learning. Got a simple NEAT-based neural network running on pong (in java).

Click to Play

The top paddle just has it's x set to the s of the ball so it cant miss. The bottom paddle is the AI controlled one. The blue squares are inputs (paddle x, paddlex-ballx, bally). The red squares are outputs (move left, move right).
19  Discussions / Miscellaneous Topics / Re: Humble monthly keys on: 2016-11-11 22:03:15
This is really cool, ill take pirate pop please. Maybe we should have a thread to share unused keys  Smiley
20  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-08-21 00:00:52
I've already met a bunch of other computer engineering majors.
I loathe meeting some computer engineer majors. They wear edgy tshirts to let people know they're into coding, and they have absolutely no coding experience. Some think they know java after just barely passing the required Java 1 and 2 classes.  Undecided
Probably because I go to Georgia Southern, instead of Georgia Tech Pointing

Thankfully the people I have met are like that.( I'm at Mercer)
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-08-20 13:01:24
I moved into my college dorm two days ago  Grin. I've already met a bunch of other computer engineering majors. I am so excited to start the year!
22  Discussions / Miscellaneous Topics / Re: Walking animation in Pokemon GO on: 2016-08-19 12:22:10
They probably just used a 3d modeling program like Blender or Maya and animated the walking by hand. Nothing special.
23  Game Development / Newbie & Debugging Questions / Re: Thread not starting on: 2016-08-12 02:14:07
@ndnwarrior15 the thread is starting, that code just makes the load time so long, it appears the thread does not start.
24  Discussions / General Discussions / Re: Eclipse Vs Android Studio on: 2016-08-11 20:23:50
I haven't tried this but to move a libgdx project to android studio I'm pretty sure you just import the libgdx project's build.gradle file and android studio should take care or the rest. What exactly are the problems you are facing?
25  Game Development / Newbie & Debugging Questions / Re: Thread not starting on: 2016-08-04 16:20:10
Can you give a bit more information like does anything render and what is being printed to the console? Because when I run it on my computer the thread seems to be starting which makes me think it has something to do with your drawing and updating methods.
26  Game Development / Newbie & Debugging Questions / Re: Thread not starting on: 2016-08-04 16:09:44
Check your delta value in your game loop. It won't be greater than one for a long time.

edit: never mind didnt see the "+=".
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-08 17:16:35
Just found out I passed all my ap exams    Grin. I got a 5 on my calculus exam and a 3 on my Macroeconomics exam. For those of you who don't know, AP exams are graded on a scale from 1-5. Most colleges regard a score of 3 as good enough for college credit.
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-24 23:06:23
Faux 3D rotation in 2D isometric game
<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

I couldn't find this anywhere else on the internet but if anyone knows of something similar, I would like to know.

Speeding up the rotation fixes most of those ugly artifacts to something that is pretty usable.

Edit 2:
Also, I dont know if it is super clear but this is a completely 2d game.
29  Games Center / Android Showcase / Re: Circlus [libgdx] on: 2016-06-12 20:26:03
play store says the app cant be installed in my country. I live in the United States.
30  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-05-29 11:40:02
I graduated high school yesterday  Cheesy
Pages: [1] 2 3 ... 19
EgonOlsen (77 views)
2018-06-10 19:43:48

EgonOlsen (57 views)
2018-06-10 19:43:44

EgonOlsen (77 views)
2018-06-10 19:43:20

DesertCoockie (259 views)
2018-05-13 18:23:11

nelsongames (157 views)
2018-04-24 18:15:36

nelsongames (156 views)
2018-04-24 18:14:32

ivj94 (897 views)
2018-03-24 14:47:39

ivj94 (161 views)
2018-03-24 14:46:31

ivj94 (810 views)
2018-03-24 14:43:53

Solater (174 views)
2018-03-17 05:04:08
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 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‑
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!