Ah, that sounds nice 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
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
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
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
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!