Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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 ... 8
1  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-07-19 03:26:27
Ermergerd! Shaders!

I followed a few text tutorials that got me more comfortable with GLSL, and then a few custom classes so using shaders is easy as one two three:

One: Create the code for the actual shader.
Two: Initialize ShaderProgram and pass 2 Shader classes, used for the source of the vert and frag shaders,
Three: Use shader.activate() and shader.deactivate()

and its that simple, ill probally make it easier for myself too and make methods for the uniforms or a way to access the GL20 methods using the shader program class.

Using multiple tutorials online, specifically the ones on the lwjgl website, I combined the color tutorials and the texture tutorials to make the same exact effect as the default, but to show they were working I inverted the colors, and the game looks pretty freaky!

Now that I realize how easy shaders are I probably wont have a problem implementing lighting.



Hope you find that atleast the slightest bit cool  Roll Eyes
2  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-07-18 19:13:35
Woooooooooooooooo! Weeeeeee!  Roll Eyes



Choppiness is due to gif.

The sky color does change, its just I made the day night cycle so fast it doesnt allow enough time for change.

I also added velocity, which allows acceleration, terminal velocity etc while jumping and falling, so its no longer static, and better yet its more efficent than how I was doing it before.  Pointing

But you can take my word for that.
3  Games Center / WIP games, tools & toy projects / Re: Galactic Warp - Vertical Scrolling Game on: 2014-07-17 21:12:14
I suggest you add a credits sort of thing, and nevertheless the music used I know is not allowed for personal or commercial use by anyone.

Juding by the game music, the main menu music is probally not made by you.

The game music is Science Blaster by Spelling Phailer, and seems to start specifically around this time, slowed down and it sounds like with some effects on it. The music is not really open for other use but what the heck; spellingphailer prob doesnt care. I suggest you add credits though.

EDIT: Never the less good choice of music.  Cheesy
4  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-07-15 23:14:23
Perhaps simply have the camera stop following the player once they reach an edge. Really nice project, by the way! One thing though, falling and jumping look very linear. I would suggest adding acceleration so the player jumps following a smooth parabola and gains velocity while falling down.

Velocity is long overdue, I will implement that in the next update.
5  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-07-15 20:26:31
Aaaand youu alll thought I was dead.

I have been hard at work doing behind the scene things on the game, Mostly network preparations. There is not much to be said about that but everything besides actual implementation between Client and Server is done. I literally peed my pants when I got the client and server to communicate though.

I have done tons of optimizations, FPS is now at a good 300+ w/ tons of entities and culling, and I sixteenthed the loading times.

Quote
HOW PLOX. HOW YOU MAKE IT SO MUCH FASTER?!

Well settle down and I will tell you, before I was loading 6 textures PER BLOCK. Before I had a 5x5x16x16 world, the first 2 being chunks, the 2nd set being blocks per chunk. You can imagine how laggy that would be; I decided to take those 6 textures per block, and assign one (the block texture) to the block ID so there is only one instance, and the other 5 (breaking textures) to a special enum, and then have the blocks call those.

Prior, I would crash my computer quite literally if I tried a 64x64 chunk world, now I can have those and it generates in a mere minute, (not good I understand, but its progress). In addition I can make a 32x32 world in practically the same time as a 5x5, thats a 640% increase in load time!

I then thought.
Quote
Well generation is much faster now, what else should I do?

And after long hours of searching for the right perlin algorithm, I got it. Caves. I have a video below. Its pretty self explanatory, and they need tweaking; but they are epic!

I also added a basic GUI, which is cool.

Oh and multiworld support. But I will talk about that in a future update.

As with all updates, changes are here on github.

Mind the lag, its due to the recorder. The game gets a full 60 FPS otherwise.

Here is your video:

<a href="http://www.youtube.com/v/4vVYkaNG-Bk?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/4vVYkaNG-Bk?version=3&amp;hl=en_US&amp;start=</a>
6  Games Center / WIP games, tools & toy projects / Re: BlockBasher - My first game in Java 2D. on: 2014-07-15 20:07:06
Oh man, this brings back nostalgia. My first game was a Brick Breaker just like this. Looks cool man! Roll Eyes
7  Games Center / WIP games, tools & toy projects / Re: Vox2D JGL - Easy AWT Game Wrapper on: 2014-07-15 20:03:43
Adding more info right here may attract more attention.
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-06-26 17:01:26
I was sad and depressed..

So I made sad music.

http://revereor.com/images/crush.mp3

Now I am not sad.

I also got basic menus on Project NAH done!
9  Game Development / Newbie & Debugging Questions / Re: Java is broken on my machine - What do? on: 2014-06-24 03:47:52
STOOOOOP!!  Pointing

for some instances you need to add things to your eclipse.ini regardless, for me I have to add this for it to work with the JDK, I am not sure about JRE but it should be simple, and google should have the answer.

1  
2  
-vm
PATHTOJAVAW.EXEHERE


As to jar files, that's could be a whole different problem (or near the same), you may have to follow one of the tutorials to add a system variable for java (may not be there for some reason)

Hope this helped.
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-06-23 18:27:22
I added aesthetic, vanity items to Project NAH, which can be implemented by accessories to make items with functions, and then you can make armor out of that, thus I made myself a gold crown which gives me two defence:



I also finished hunger, which is slowly depleted when idle, and moreso when moving. When it hits 0 you will lose one heart every ~5 seconds. I also fixed the fading of hearts and the biscuits, (which represents food), i.e. if your at 55/100 heath, the last 5 will be nearly invisible, the first 4 will be solid, and the 5th will be half opacity.

Heres the meter:



As you can see I am redoing the assets in DB's 32 color pallet.

I also did more work on multiplayer for my game, I have the internal server and client all ready for implementation, I have all my API and events done for such, and I have handshake packets and the packets for exchanging vital info done. Sorry, no screenshots for that!

EDIT: I also worked on my latest instrumental-song,  heres a snippet: http://revereor.com/images/song.mp3
11  Games Center / Archived Projects / Re: Legend Quest beta on: 2014-06-23 05:17:33
Congratulations. You forgot your assets and it doesn't work. I am truly in dismay. Stare

To resize something you do this:

1  
[image width=ANUMBERHERE]url[/image]


It maintains the aspect ratio, and I usually use 800.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
Exception in thread "main" java.lang.RuntimeException: Resource not found: res/U
I/Start.png
        at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoa
der.java:69)
        at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTex
tureLoader.java:185)
        at org.newdawn.slick.Image.<init>(Image.java:192)
        at org.newdawn.slick.Image.<init>(Image.java:166)
        at org.newdawn.slick.Image.<init>(Image.java:154)
        at org.newdawn.slick.Image.<init>(Image.java:132)
        at com.LegendQuest.States.MenuState.initImages(MenuState.java:61)
        at com.LegendQuest.States.MenuState.init(MenuState.java:43)
        at com.LegendQuest.Game.LegendQuest.init(LegendQuest.java:66)
        at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:393)
        at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:317)
        at com.LegendQuest.Game.LegendQuest.main(LegendQuest.java:182)
12  Game Development / Newbie & Debugging Questions / Re: How slow is drawing things on a Graphics2D object? on: 2014-06-23 03:48:06
Java2D is slow. Period. There is nothing you can do to really fix it, it will just always be slow. I'm not really sure if the majority here discourages it, but quite a few including I do. Its good for test projects and basic stuff and maybe toys, but you cant get by making huge game with java2D, for that I reccomend a opengl wrapper like LWJGL or a library with boilerplate already done for you like Slick2D or LibGDX
13  Games Center / WIP games, tools & toy projects / Re: "war"-cards game on: 2014-06-22 20:17:41
If you give information and pictures, you will get better feedback.  Pointing

no pics no clicks.
14  Game Development / Game Play & Game Design / Re: Looking for Free Level Designer on: 2014-06-22 15:57:44
Without good information, pictures of the current proggress, possibly a tech demo, and MOST of all, something worthy, something thats not going to fall flat. Before the people of JGO see that information, your not bound to get atleast half way decent people, let alone decent for free.
15  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-06-20 19:39:04
It now tells you the item you have selected, and I am now using DB 32 color palette, which looks nicer to me.

And I added hunger, which essentially depletes over time, and then once it hits zero will take a health point every 10 ticks;

but a video is worth a thousand words times the number of frames..

<a href="http://www.youtube.com/v/JRUzgG8hXTk?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/JRUzgG8hXTk?version=3&amp;hl=en_US&amp;start=</a>
16  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-06-19 03:53:56
I have done a lot of refactoring, and optimization recently, it turns out the key reason particles lagged was because it was performing unnecessary collision checks, and now works much better.

I also added machine guns. Wink

Here is an update video.

Sorry for bad quality, wasn't post rendered Tongue

<a href="http://www.youtube.com/v/AYXMXB2FRxo?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/AYXMXB2FRxo?version=3&amp;hl=en_US&amp;start=</a>
17  Discussions / Miscellaneous Topics / Re: Longest program you have written? on: 2014-06-17 21:01:56
As ray said, lines of code are only a hint of whats really going inside, and more or less shows just how many times you have pressed enter.

I had metrics on my eclipse, and my biggest project is Project NAH, which functions in a mere 6,044 lines of code.
18  Game Development / Newbie & Debugging Questions / Re: Teaching Java Game Programming to Children on: 2014-06-15 20:48:05
Dont underestimate these children, not "I may be, I may not", because children can be quite bright people. I am no puppy games or notch making $$$ off of indie games, but I sir, am I a child; and I have made a halfway decent, but still unfinished, prototype of a game called Project NAH. It may not be the coolest thing ever but it shows that kids can do a thing or two; [showoff] however- I scored 10% higher percentile on average than the average student that goes to one of the hardest prep schools in Illinois and my mommy was so proud Cheesy [/showoff]

As far as teaching them, I seriously think if its possible you should teach them more low level stuff, if they are really serious about it they will enjoy it, they will benefit more from it, and they will have a greater sense of "omg i made something" by the end of everything.
19  Game Development / Articles & tutorials / Re: Java and Game Development Tutorials on: 2014-06-14 03:22:35
Should've been clearer. Edited.  Roll Eyes
20  Game Development / Articles & tutorials / Re: Java and Game Development Tutorials on: 2014-06-14 03:16:37
In episode 3 I explain static and dynamic and how to break into dynamic from the main method, and proceed to make a simple game.
21  Discussions / Miscellaneous Topics / Re: Losing projects on: 2014-06-14 00:48:56
I just say to myself "Just keep swimmin, just keep swimmin".. although I usually get caught by a *metaphoric* shark and my project crashes. I've only ever finished one project, but I am proud of it.  Grin
22  Game Development / Newbie & Debugging Questions / Re: How does resolution work? on: 2014-06-13 22:57:46
*For LWJGL*

What I do for all my games is, is in my camera I have it execute glViewport after glOrtho to resize the view to the size of the screen, and then my relative mouse pos would be:
1  
new Point((int)((((double)FOVX/(double)SCREENWIDTH)*ABSMOUSEPOSX)+CAMERAPOSX),(int)((((double)FOVY/(double)SCREENHEIGHT)*ABSMOUSEPOSY)+CAMERAPOSY));

Ofc I have actual variables and things for that, thats just pseudo.

So no matter the size of monitor, resolution, aspect ratio etc. everyone gets the same playing field.
23  Games Center / WIP games, tools & toy projects / Re: Zombie Nauts [0.4.0] on: 2014-06-13 17:48:10
Quote

Also, I am running out of zombie ideas! Does anyone got any?

SwordsMiner  Roll Eyes
24  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-06-13 17:02:55
And this thread relates to Java Gaming... how?

Its in misc, and will probably end up in chitchat monster Tongue
25  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-06-13 03:26:08
New found love is always much better than some programming Wink

Is there a double appreciate?  Pointing
26  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-06-09 18:35:05
Seeing its rare now that girls program, my friend (oh whom is a girl) is pretty dang good at web development  Pointing
27  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-06-09 03:07:17
People tend to debate my gender, at this point I am not even sure myself.
28  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-05-31 03:10:33
Today marks the release of 0.2.2, This is the first release with work from Spacebeans and Death Angel, newly recruited people to the project. Changes are, and is not limited to:

  • TONS of bug fixes (that would take up twice the size of this list)
  • Quadrupled size of everything for technical reasons, however it makes no difference ingame or to FPS.
  • Fixed FPS limiter.
  • Added Fighter Enemies/AI, they are dumb.
  • Added Swords
  • Added Metadata saving
  • Added Math Helper, which allows us to do complex expressions that are used often using a static function
  • Got mad at slick.
  • Added and KEPT multiple random error messages.
  • Added guns.
  • Added gun type Shotgun
  • Added gun type Pistol
  • Optimized EntityManager
  • Added Particles, Projectiles.
  • Entity Item is now a particle.
  • Added bows.
  • Added bullets.
  • Added arrows.
  • Optimized Player Inventory Manager
  • Added Player Manager
  • Added PlayerGUIManager
  • Added GUI for health
  • Added configurable, dynamic melee damage
  • Made Player Inventory Manager and item's interfacing more dynamic
  • Added Aztec ~Angel
  • Added Grass
  • Rearranged textures ~Spacebeans
  • Optimizations to GL and things in general ~Spacebeans
  • Added interfacable ticking and rendering
  • Added Raycasting
  • Added Mouse Orientated items
  • Added non-swingable items
  • Fixed jumping and made it more dynamic ~Angel
And much more, (if we excluded something, its probably on github Pointing)..

I hope you guys enjoy what we have gotten done, and I am sorry in advance since its still not 100% optimized and it doesn't run a full 60 fps on some enviroments.

Inventory Controls
Use 1-9 and 0 for selecting respective inv slots.
You can use the scroll wheel for scrolling.
To independently scroll click on the left/right mouse button and scroll respectively.

To place/break click the respective button on the mouse wheel.

To open the backpack press TAB



And here is your download and the source (Game under MIT licence, modding allowed but all credit for game is due to the Revereor Team.):

Public Github - Wiki, Issues, Source code
Latest download.

IF THE GAME DOESN'T BOOT, PROGRAM A LITTLE SHELL/BATCH SCRIPT AND MAKE IT BOOT THE JAR.


If something is screwed up. That sucks, and notify me and ill have to make a new post. This is because I cannot change my posts, because of the padded room's limitations.
29  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-05-30 21:41:09
Ive been working on many bugfixed and small, background features, like metadata saving, but I bring you: Hearts!



Heres how it works:

If health is at max, draw all hearts,

otherwise, if the current heart is less than the heart percentage, which is the percentage of the players health to max health, draw the opacity at solid, otherwise, if it is equal to the integer of the heart percentage, draw the opacity at the heart percentage minus the integer of heart percentage, otherwise, draw it at 0.1f opacity.

If the heart percentage is below a certain point, currently 20%, the hearts shake, getting more violent as the health goes lower.



I also used metadata saving to make it so you can only use tools a certain amount of times based on their tier.

30  Games Center / Showcase / Re: [Android][Libgdx] Undetected on: 2014-05-30 18:57:33
You may want to set the width to 800 so it fits on the standard browser.
Pages: [1] 2 3 ... 8
 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (25 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!