Balanced Energy

Ah, that sounds nice :smiley: so there’s like basic tiles (idk stone or sth) for making walls etc. and there’s some more specific tiles like an oven or engineering table or sth?

Exactly! Except I actually am going to use different tile types than stone for the walls. I want to have the ability to have tile sets for easy random terrain generation. For instance, I could have a grassy and stone tile set, a water and mud tile set etc…that I can just throw into the terrain generator to make unique levels. So I can’t just use stone for the walls, I’ll have to make a crafting system to make walls.

Sounds nice to me :smiley:

Worked on it a little:
-added a spritestore class to sort my sprites and make tile creation easier
-started day night cycles
-redid player class
-started on the basics of the gui
-created a launcher for the game

Damn, I accidentally deleted the project. Fortunately I have a Jar file that has all the latest sources, I’m thinking I can just use a Java decompiler and just copy and paste all the files back into the project folder, but is there an easier way? I was trying to set up GitHub and I screwed it up… sigh

If you got no backups decompiling it is probably the only way :confused:

Maybe decompiling is not the best idea…
Do you remember the solutions for most of your problems?
If so, you could maybe recode it in a few days…

Ah well, that’s alright. It’s worth the 30 minutes it’ll take because I have a good feeling about my game! Not to sound cocky or anything, I just like my idea :slight_smile:

No, my game had around 20 classes and contained thousands of lines of code. I’d much rather just take a little time and copy and paste the code into a new project!

That’s a solution though the comments are gone now and you maybe need to understand something again :smiley:

I honestly don’t want to do that as I’ve had to rewrite my game twice so far, and I don’t feel like doing it again!

New(small update):
-added classes(seen below)
-started work on guns
-rewrote part of the level class to allow for easier updating and rendering of sprites

The little skull next to the player indicates what class it is. The player is a warrior class as indicated by the skull, and will have specific abilities as a warrior that other classes do not have.

Obviously, I was able to get my code back after I decompiled the jar and just copied and pasted everything into a new project!

Humongous update!

So first of all, let me start by saying that this update isn’t really about the actual game play, that’s coming later. This update focuses mainly on the underlying ā€œengineā€ that allows this game to function. I’ve had a lot of fun with this last update, creating GUIs and almost rage quitting a few times with lighting bugs, but for the most part, I’m very happy with whats happened! So, now lets get into the changelog!

+re-did lighting
+when lights are removed, the surrounding terrain ā€œunlightsā€ itself
+added day-night cycles
+fixed ā€œedge of mapā€ lighting bug
+added loading of image maps(still a work in progress, but its ok right now)
+added all player classes
+started working on shooting, getting all the algorithms working
+added main menu and singleplayer menu(still a little bugged and unfinished)
+added new tile types including water(Water still W.I.P., it doesn’t flow yet, neither does lava)
+added a edit mode(editing only works when the camera is fully unzoomed, may or may not keep this)
+let transparent tiles, such as water, render correctly so they now render with an alpha value
+many optimizations, need testing *
+ability to take screenshots. currently only one can be saved, but that’s easily fixable

+changed launcher around a little **

-removed old shooting code
-removed old moving code
-removed lots of bits and pieces

bug: when water is placed on a light, the light burns out. Thinking about keeping this ;D
bug: lots of bugs with the menus
bug: lighting is still a little weird looking in the day time, will fix next update
bug: bullets don’t render at all. Will get to this in the next update

(Sort of) Manual

Press 1 to zoom in when not in edit mode
Press 2 to zoom out when not in edit mode
Press E to enter/exit edit mode
Use scroll wheel to select tiles in the hot bar when in edit mode
Click to place tiles

(Very Alpha) Download launcher:
https://dl.dropboxusercontent.com/u/3755963/Balanced%20Energy%20Launcher.jar

Note: The launcher is a small download. The actual game is ~7.31 MB.

Screenshots!:

Random screenshot of new editor:

Main menu (going to change background):

Singeplayer set up menu(to change amount of players, click on the little numbers and change. Must be a valid number (I.E. not a string or it will crash, I have to handle that, and it can’t start with 0):

Messing around, this is the game rendering 5000 players with randomly generated positions. Still get ~10 fps!:

*I would love for people to test this on their own hardware, setting the amount of players up to as high as you can get them while still maintaining a reasonable FPS so I can decide if I still need to work on optimizing the engine. For me, I get 60 FPS. But for some reason, all the games I play have unexplainable little jumps in FPS. So I’ll be getting 60, and then 40 and then 60 again, and I have no idea why. That’s why I want others to test it out to see how it does. If you want to contribute, post:

-computer specs
-average FPS
-max amount of players it can handle on your computer

**Launcher isn’t necessary if you already have the game files, but the launcher is the only way you can download the game at the moment. When you click download, it will download the game in the directory that the launcher is currently in. When you want to play, make sure the launcher and the game files are in the same directory. When downloading the game, the launcher may crash. Don’t worry, as long as you have the jar file, it worked. You cannot use the launcher while its downloading!

Updated launcher to actually let you launch the game!

Clicking on ā€œUpdateā€ doesn’t work. In the console, the following is printed. I’ve also turned off my firewall.


localhost:DATA sriharshachilakapati$ java -jar /Volumes/DATA/Balanced\ Energy\ Launcher.jar 
An error occurred – /Users/sriharshachilakapati\Desktop\BalancedEnergy.jar (Permission denied)

I’m running Mac OS X Mountain Lion 10.8.5

Oh, sorry I have some OS dependent code in the launcher, use this link and directly download the game while I fix it:

It ran smoothly but where can I find the FPS?

Oops, forgot to un-comment the FPSLogger! Just run the file from the command line to see the fps print out. I just uploaded a new version, just download it in your launcher!

Alright, I haven’t worked on the game in a while as I’ve had other projects to work on. But I tried getting back into it, and I found I just can’t do it. So I was wondering if someone else wants to join up with me and we can finish the game off? I’m planning on releasing this game publicly on Desura and those other indie sites, and I want to make a couple bucks off of it. If you’re interested and you carry through with the game, I wouldn’t mind splitting the profits! If you want to, leave a comment or message me and I’ll lay out the game and the source code for you so this game can get finished!