1

My first game! (Wave Survival 2 Alpha!)

SneakyLunatic69's Avatar SneakyLunatic697/31/15 4:58 pm
1 emeralds 3.9k 47
9/8/2015 4:49 am
Ivain's Avatar Ivain
Hey guys!

I've started reprogramming this game because my other computer all the code was on died. Also, the coding wasn't very organized and I'd like to try and make a game without relying on tutorials!

I'd love it if you guys would try it out, suggest new ideas and report and glitches or bugs!

Wave Survival 2 Alpha 0.0
-This version was made as a test to make sure anyone who downloads it can see the images!
-Has a working menu screen
-Player that moves around

Game Download:
http://www.mediafire.com/download/8kdhq ... rvival.zip

Old Versions: https://www.mediafire.com/folder/uaptn2 ... e_Survival
Posted by SneakyLunatic69's Avatar
SneakyLunatic69
Level 12 : Journeyman Birb
11

Create an account or sign in to comment.

47

1
09/07/2015 5:02 pm
Level 42 : Master Mage
Pixel
Pixel's Avatar
Why is it an exe? What about OS X, Linux and Solaris?
1
09/08/2015 4:49 am
Level 61 : High Grandmaster Terraformer
Ivain
Ivain's Avatar
I feel like you are expecting a bit much from a beginning programmer.
it is a .exe because that is the obvious choice in a community of mostly windows users. Maybe you should tell him more about how he can make it a program format that works on other OS as well. That would be very helpful for him, and you obviously have the knowledge to do that.
1
09/07/2015 5:37 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Sorry I'm really new at programming and haven't bothered to make this for any other OS.
1
09/07/2015 4:35 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Wave Survival 2's first alpha version is available.

This version doesn't contain any gameplay unfortunately, but rather I made it to make sure I've compiled it correctly, and that anyone who downloads it can see the images!
There is a working menu and a player that moves around with animations!
1
09/01/2015 5:49 am
Level 43 : Master Modder
weco
weco's Avatar
Hey, if you need help with your Tilebased Game or if you need a Level Loader add me on Skype: kroxx516
Have some old Code on my PC.
1
09/01/2015 4:48 am
Level 37 : Artisan Ranger
Caporal Dxl
Caporal Dxl's Avatar
Great job, man!
1
08/31/2015 10:09 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
I'm reprogramming this game!

Now that I've learned more about coding I'm going to attempt to remake this game and make it better than before
1
09/01/2015 3:56 am
Level 39 : Artisan Droid
Scott
Scott's Avatar
Cool!
1
08/29/2015 8:53 pm
Level 61 : High Grandmaster Terraformer
Ivain
Ivain's Avatar
You look like you have the dedication to make games from start to end, so good luck with that.
Big tip though: Get the Unity 5 engine. If you managed to learn Java, you can also learn C#, and Unity 5 will SERIOUSLY power up your abilities. You can finish this game in Java or start its code from scratch in Unity.
Trust me though, its worth it. The engine itself is free, so no buying things. The only situation where you HAVE to buy their pro edition is if you make more than $100.000 per year with as an individual or company.
There are also a bunch of resources on its market, including some free ones. It will really boost your ability to make games.
1
08/29/2015 10:25 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Thanks so much for this info! Unfortunately I won't be able to finish this game because the computer I was using died a few days ago -__- but I've started to work on a tile-based RPG coded in java instead!

Also, I'm taking all of the programming courses available in my school so I can further increase my knowledge in this kind of stuff
1
08/29/2015 5:33 am
Level 1 : New Miner
NealsCat
NealsCat's Avatar
How did you add a Pause option and pickable items? I was searching in your code but I didn't find nothing :/
1
08/29/2015 6:31 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
In the game tick method when the pause state is active only the hud is updated and nothing else causing the player and enemies to freeze in place.

To enable the pause state I've just made pressing the "p" key enable/disable it.
disabling it obviously just resets it to the game state.

Click to reveal
private void tick(){

if(gameState == STATE.Game) {

handler.tick();
spawner.tick();
hud.tick();

}
else if (gameState == STATE.Pause) {
hud.tick();
}
else if(gameState == STATE.Menu) {
menu.tick();
handler.tick();
}
else if(gameState == STATE.Help) {
help.tick();
handler.tick();
}
else if(gameState == STATE.Shop) {
shop.tick();
handler.tick();
}
else if(gameState == STATE.PreMenu) {
hud.tick();
}
else if(gameState == STATE.Gameover) {
gameover.tick();
handler.tick();
}
}
1
08/20/2015 12:54 pm
Level 39 : Artisan Droid
Scott
Scott's Avatar
Looks really cool
1
08/20/2015 11:54 am
Level 1 : New Crafter
jamdyl4321
jamdyl4321's Avatar
Can you please update the source??? If so that would be great!!!!!!!
1
08/20/2015 12:15 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Yeah sorry I've been busy lately I'll update it soon
1
08/28/2015 10:04 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Hey, so the computer I've been using just died so I can't update the source code...

Anyways, those tutorials weren't great anyways because there was a lot of issues with crashing and stuff that hasn't been resolved yet. So instead I've moved on to a better tutorial series to make a 2D tile-based, turn-based RPG.

Links:
Wave Survival Playlist: https://www.youtube.com/playlist?list=P ... ZwEqnz2MHa

RPG Playlist: https://www.youtube.com/playlist?list=P ... shAc18XYQZ
1
08/03/2015 11:18 am
Level 24 : Expert Ranger
SuperSwoosh
SuperSwoosh's Avatar
Looks cool, good luck with future development.
1
08/03/2015 12:46 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Thanks man!
1
08/03/2015 10:03 am
Level 16 : Journeyman Network
Konrad
Konrad's Avatar
This is my new highscore:



Oh ya:

1
08/03/2015 10:38 am
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Nice!
1
08/02/2015 11:31 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Beta 1.3.0 has been released!!!

Changelog:
-Added Upgrades Shop
-Added Money Bonus Pickup
-Added Invincibility
-Added New Enemy: Fat Enemy - Moves really slow but is 2x the size of other enemies

The Upgrades Shop:


Also, I managed to fix the bug where the game would sometimes crash when pressing the start button. To do this I had to remove the Menu Particles which for some reason were causing the crash when they were being removed...
1
08/02/2015 9:02 am
Level 9 : Apprentice Network
WhoIsThis
WhoIsThis's Avatar
Looks cool for your first java game. Keep up the good work.
1
08/01/2015 9:19 pm
Level 16 : Journeyman Network
Konrad
Konrad's Avatar
Are the other dots not suppose to kill me? and my highest score was 10999 lol
1
08/01/2015 9:23 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Red, Blue and Brown dots are the enemies. Depending on what type they are, they will either bounce around the screen or follow your player. Coming into contact with them will drain your health slowly.

Yellow dots increase your score by 100

Green dots regenerate your health by 20%
1
08/01/2015 9:40 pm
Level 16 : Journeyman Network
Konrad
Konrad's Avatar
Ohhh i thought if they hit you, you die. You should add a hard mode so when the red blue or brown dots hit you, you get game over.
1
08/01/2015 10:18 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Yeah that's a good idea!
1
08/01/2015 8:18 pm
Level 4 : Apprentice Dolphin
Getoffmycat
Getoffmycat's Avatar
You should add a powerup that makes the player shrink and increase in speed for a certain amount of time
1
08/01/2015 8:34 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
I'll give it a try!
Also, I am planning on making an upgrade in the shop that increases speed.

Maybe instead I'll either make it upgrade the powerup, or the upgrade will increase the players speed and also decrease their size.
1
08/01/2015 7:11 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
I put the source code on pastebin!

Here it is: http://pastebin.com/Whr00fFN
1
08/01/2015 4:14 pm
Level 55 : Grandmaster Grump
MonarchOfMadness
MonarchOfMadness's Avatar
Doesn't work for me. Just says a java error has occurred. Also, can we get the source code?
1
08/01/2015 4:18 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
That's weird... Beta 1.2.0?

Also, I'm going to post the source code soon
1
08/01/2015 7:27 pm
Level 55 : Grandmaster Grump
MonarchOfMadness
MonarchOfMadness's Avatar
Yes, Beta 1.2.0, the latest update. There is also no stacktrace.
1
08/01/2015 9:02 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
EDIT: Didn't fix it

Still trying to figure out what is causing this error:
Click to reveal
Exception in thread "Thread-2" java.lang.NullPointerException
at java.util.LinkedList.node(Unknown Source)
at java.util.LinkedList.get(Unknown Source)
at com.wave.main.Handler.render(Handler.java:18)
at com.wave.main.Game.render(Game.java:167)
at com.wave.main.Game.run(Game.java:105)
at java.lang.Thread.run(Unknown Source)


Source code: http://pastebin.com/Whr00fFN

-----------------------------------------------------------------------------------------------------------

I'm not sure what the cause of this is... Sometimes it runs fine and other times it will crash.

Sometimes it will let me start a game, and then after dying and going back to the menu, trying to start a second game will crash it...

Console after crashing:
Click to reveal
Exception in thread "Thread-2" java.lang.NullPointerException
at java.util.LinkedList.node(Unknown Source)
at java.util.LinkedList.get(Unknown Source)
at com.wave.main.Handler.render(Handler.java:17)
at com.wave.main.Game.render(Game.java:165)
at com.wave.main.Game.run(Game.java:105)
at java.lang.Thread.run(Unknown Source)


Are you able to open the game, or does it not even open for you?

P.S this is only made for Windows, so if you're by chance on a Mac or running Linux, that's why it won't work.
1
08/02/2015 8:56 am
Level 55 : Grandmaster Grump
MonarchOfMadness
MonarchOfMadness's Avatar
I can't open it at all. Is this compiled with Java 8 or 7?
1
08/02/2015 11:25 am
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
My Java JRE and JDK are both version 1.8.0_45.
1
08/01/2015 4:26 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
I know sometimes after pressing the start button in the menu the game locks up and won't start (In Eclipse an error appears). Usually you just have to reopen it and it will work...

I'll post the source code later today and maybe someone who knows what they're doing can spot the issue that's causing this.
1
08/01/2015 3:48 pm
Level 9 : Apprentice Miner
anonpmc1279828
anonpmc1279828's Avatar
[deleted]
1
08/01/2015 3:50 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Thanks
1
08/01/2015 3:41 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Beta 1.2.0:

I've added a Gameover page that shows the player what their score was and the level they made it to. Also, I've added a money system. (With no use at the moment )

On the Gameover page it shows the player the money they earned that game session, and their money total.

Money will be used in the upgrades shop in Beta 1.3.0!

Gameover page:
Click to reveal
1
07/31/2015 10:06 pm
Level 4 : Apprentice Dolphin
Getoffmycat
Getoffmycat's Avatar
Looks really great
1
07/31/2015 9:56 pm
Level 15 : Journeyman Taco
Johnanater
Johnanater's Avatar
Looks good for your first Java game!
1
07/31/2015 10:07 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
GetoffmycatLooks really great


Thanks guys!
1
07/31/2015 7:27 pm
Level 21 : Expert Architect
Exail
Exail's Avatar
This sounds and looks really good, dude, keep up the good work!
1
07/31/2015 8:25 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
Thanks man!
1
07/31/2015 7:24 pm
Level 12 : Journeyman Birb
SneakyLunatic69
SneakyLunatic69's Avatar
I do plan on keeping this forum updated so always check to see if there is a new version of Wave Survival!

Upcoming features in Beta 1.1.0!
Click to reveal
Pausing:


Menu:
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome