Mike Daily posted an amazing blog on depth based mouse collision. Had to share it! This is something that I believe everyone will need to know in one of their games, eventually. So check it out HERE!
If you’d like to join our alpha testing phase of the game and receive a free alpha serial key, let us know by joining our mailing list!
All who join will receive a free serial key to play the game once our alpha is released.
Sign-Up For a FREE Alpha Key
Current Version: v0.4
Let there be LIGHT!
First thing I worked on this week was a good lighting system.
I love lighting, because it can change the whole mood and feel of the game.
Day / Night Cycles
I’ve added day and night cycles to the game. Each last about 2 minutes right now for testing purposes.
I want the game to be primarily made in 64×64. Up until this point, it’s been 32×32.
This demanded bigger character models as the old character models were under 32×32.
Sigh, I’ll miss those little guys.
This makes the game look a lot better when completely zoomed out.
Soon, I’ll begin the process of separating the hands from the body sprite, make a state-machine and then make it look more like the character is holding onto items as well as using them (swinging, holding, harvesting, attacking)
As I’ve been saying, the graphics aren’t set in stone.
Eventually, I’d like to raise money and have all the graphics redesigned! 🙂
There are now several eye colors in the game, rather than just blue. When a player joins a server his skin color, hair and face, and eye color are all randomly generated. The player can change all of this way later into the game.
You can now place certain items on the ground, and they will stay in the world even after a server restart / server save. Unlike items you throw on the ground from your inventory which disappear after the server restarts or after a short period of time. So basically the server now saves placeable items on the ground onto the harddrive.
What this also means is I can now add items like beds, work benches, anvils, campfires, etc… So this paves the way so that I can start working on base building. This also allowed me to make working storage boxes (containers)!
I am PLEASED to announce that Containers are now in the game! These are items that you can place in the game world, and store your items (Storage Boxes, Chests, etc…). What’s cool is the server will assign it a unique ID, and save the items you put it in. When you shut the server down (or do a server save) it will save the items onto the hard drive. When you reload the server, it loads all the containers and their contents! Woohoo!
I think I faced the Final Boss of Debugging with these things only to find out my issue was that two variables in two separate scripts were named the same. That sounds like an easy catch, but when there are about 60 other possible reasons why it’s not working, and you have to debug EACH of those possible reasons, it’s not very simple.
Death and Respawn
Started work on death and respawning. You used to just instantly respawn upon death. Now there’s a death screen, and your character will be removed from the game world (besides your corpse) until you respawn!
In the future, this screen will show stats about your player while he was alive as well as possible respawn points.
Ground Items Fix
The server has a ds grid of every item in the game, and another ds grid for the items thrown on the ground.
Whenever the server is shut down or the server is saved it removes the items on the ground.
Fixed a huge glitch that wasn’t removing the items from the ds_grid that were deleted from the ground during server saves.
This meant there were phantom items that would stay in the servers item ds_grid even though they weren’t accessible.
So basically whenever you restarted the game the items that were on the ground before were still technically in the game, just no where to be found.
This was fixed!
Current Version: v0.2.2a
Graphics and Sound
Shaders & Skin Color
At the start of the project I was tediously respriting and recoloring each skin color. There were three skin colors: White, Tan and Black. I’ve now utilized the power of Shaders! This means I can handle skin color a lot more efficiently, as well as add interesting effects in the game (such as your face turning green when you’re sick, custom item colors, etc). This also means that instead of 3 skin colors, I can add a whole range of skin ‘tones’. This is huge, and I’m sure I’ll find more uses for it than just skin color such as custom colors to items.
I went ahead and added 8 Skin Tones to the game.
I will also be releasing an example of the method I used in an upcoming devblog!
Some new camera effects were added to the game!
Camera Follows Mouse
Procedural Map Generation
Most of my weekend was spent working on the game world. The system works by first generating a large image of what the map should look like. I’d like to thank “Puhloo” for his example on this.
The system will then create 64×64 chunks of every pixel. Each pixel then represents a 32×32 tile. It will then put those chunks into a buffer and save it on a hard drive. Later, when the player is in the game it will load up the chunks from the hard drive around the player.
This has still got a long way to go, and probably won’t be finished until next week.
I’ve started working on the lore for the game. Humans will no longer start on Earth, but on a terraformed Mars 45,000 years into the future. Earth is uninhabitable after a mixture of nuclear fallout and natural disasters devastated much of the planet. Mars is also devastated and barely inhabitable as well after an alien invasion that was provoked by Human meddling on alien planets. Basically, humans have a reason to hate Alien races, and Aliens have a reason to hate Humans. I can provide more lore in future dev blogs, if you’d like.
TL;DR – This game is a survival game on a terraformed Mars. Weeeeeeee…
~ GUI now re-positioned for the new 720p resolution
~ Head were being clipped by armor/shirts. Heads now draw above armor/shirts.
+ Added a new facial expression
+ Screen shakes when you hit a node
+ Particle effect added when you hit a node
+ Added meat item, currently no way to eat it.
Procedural Square World Generation Example
Sprite real-time multi-recoloring using shaders
WizNet v1.1 – Networking Example
FatalSheep’s Tutorial – http://gmc.yoyogames.com/index.php?showtopic=604116