Sandbox-2D banner

Sandbox-2D

11 devlogs
15h 29m 15s

2D sandbox survival game that I’m working on solo. I’m using Raylib and C++ to create it.

Loading README...

acerx.amj

Did some small changes like limiting the mining and placing distance. I also added a mining animation. I’ll probably ship it tomorrow, but I can’t say for sure right now. Didn’t do a lot as I’m working on my website in parallel.

0
acerx.amj

Worked on the game quite a lot. Fixed a bunch of bugs regarding the inventory and most importantly added a way to break blocks. You can break blocks, walls and even furniture. Breaking each block drops the corresponding item and furniture can drop a bunch of different items at once. I still have a lot to do like making a block breaking and placing animation, add a cooldown on breaking blocks, as well as other small tweaks. Oh yeah, also adding tools that break blocks faster! But I’m planning to also clean up my code as it is really messy right now.

0
acerx.amj

I tried optimizing the map renderer, but failed. All that I managed to do was fix some minor issues and optimize the debri generation. I guess it wasn’t for nothing as you can save like 0.5 seconds on world generation?

0
acerx.amj

I made it so it’s easier to place blocks from the inventory and a new purely visual slot that activates when you select an item and close the inventory. It displays the item, amount and it’s index in the inventory. Also a lot of inventory-related bug fixes!

1

Comments

Martiny_16
Martiny_16 6 days ago

it s like terraria :)

acerx.amj

Now I’m going to be fully committed to developing survival mode. I just made my inventory actually usable and now you can place blocks and furniture from it. You can also pick elements with middle click if the element is in your inventory. Also did some other small QOL changes and bug fixes.

Attachment
Attachment
0
Neon

Tagged your project as well cooked!

🔥 Neon marked your project as well cooked! As a prize for your nicely cooked project, look out for a bonus prize in the mail :)

acerx.amj

Shipped this project!

Hours: 6.83
Cookies: 🍪 155
Multiplier: 22.65 cookies/hr

I added a heart system and some hazards to complement it. Turned out pretty great. I made Linux and MacOS builds available on Itch.io, might make a Windows build in the future.

acerx.amj

Just did some polish, like added a slight vignette effect, as well as interpolating between heart and breath values and adding some sine wave to them. Looks amazing! I’ll make sure to ship it some time later this evening.

0
acerx.amj

I’ve been working on adding indicators of damage and some effects on death. I added a particle manager and death particles. I don’t want the game to be really gory, so player leaves smoke particles on death. I also made the player flash red and a number showing the amount of damage done whenever damaged. I’ll play around with the heart and breath bars and I’ll ship it.

Attachment
Attachment
0
acerx.amj

I had a lot of hazards in the game, but not a death screen, so I added one. It’s super simple - it says that you’ve died and shows the time until re-spawn. It works great. Oh, I also added two fun blocks - bouncy slime platforms and bubble blocks, which player can pass, but liquids cannot. Last updates were pretty grim, I just had to add something fun!
The game is turning out great! I’ve been adding a whole lot of new things to it recently. I’ll probably work on some polish next, like adding some damage and health effects. I also love this cool test world I’ve made to test interactions.

Attachment
Attachment
Attachment
1

Comments

secretaditzu78
secretaditzu78 10 days ago

it looks like terraria ;3

acerx.amj

I added suffocation whenever tiles are on your head and fall damage. Might have to tweak fall damage params in the future, but I really like the current state of the game. Now I’ll work on dying next.

0
acerx.amj

Just added a breath and drowning system. Whenever the player’s head is below water, liquid honey or lava, the player will slowly run out of breath and when the player is out of breath, they slowly lose HP. Was trying out different UI layouts, but went up with the classic Terraria one, where the bubbles appear right on top of the player. This marks 2/4 hazards that I want to implement before shipping 0.1. The next two will be suffocation in blocks and fall damage. Will add sound effects in the future.

0
acerx.amj

I added a heart system and a regeneration system. Currently has no cool effects and looks kind of bland, but I’ll work on it right after adding more hazards, like fall damage, suffocation, drowning, etc. Right now only lava can hurt you and honey boosts regeneration. I’m pretty sure solid honey blocks also do that. Oh, and it is impossible to die right now, that’s why the character survived with no HP. That will also be addressed in the future.

0