I recently made a little 3D thing and after it took off on twitter I was asked to write up how it was done.
Please note though, that this was basically my first 3d-thing, so I'm likely not using all the right words. :) I started by jamming around with Zep's 3d dot party template and ended up with the above.
Anyway, as most things - it is not as complicated as it looks. It grew quite organically, but it boils down to these steps.
First I made sure I had a working grid.
I wanted to have a height map, so I used the sprite sheet to draw a very simple repeatable map.
Every tick I look at a slightly different position in the map, giving a nice scrolling feeling.
But it looks a bit dull, so I wanted to add some movement. This was done by applying a cos and sine function over time.
As it still was a bit static I also added a slight sway to the camera.
Adding it all together ended up with this very living scrolling thing. Since the sine and cos waves doesn't have anything to do with the terrain and run on a different frequency it looks very alive and smooth.
I'm pretty sure the whole thing can be done faster and better, but hey - if it looks right on the screen... ;)
Happy to answer any questions if needed.
Curse of the Lich King
The evil Lich King, Raq'zul, has cast a life draining spell on the world - in hopes to become immortal. Many heroes try to find him deep in his lair, but all have fallen to his army of monsters and devious traps. Now it is your turn!
Curse of the Lich King gives you tactical grid based combat in a roguelike dungeon crawling setting. A cast of monsters will try to stop you, all in their own way as you descend towards the Lich King's crypt. Loot everything you see to make sure you find food and weapons to help you on your journey. But beware, not everything is what it seems...
Are you ready to solve the tricky battles and master the Lich King's lair? Can you save the world? Good luck!
Use the arrow keys to move and navigate menus.
X opens your backpack and select items.
C closes the current window.
As it is not possible to skip turns, make sure you use the environment to get monsters near so you get the first strike! Spend a turn by hitting pots/shelves/doors or other interactive things, and monsters will move while you stand still.
There is a lot of stuff to discover, have fun!
Special thanks to the good people at my discord for testing the game!
Why not join? https://discord.gg/pF76upS
- Your health decreases slowly but steadily so be sure to grab as much gold as you can before you die.
- Hitting monsters makes you lose a lot of health, but you also get a lot of gold.
- Make sure to grab the food to increase your health.
It is made of only 421 tokens and sprites.
Inspired by an idea from JW of Vlambeer, I built this dungeon generator.
In short it adds a bunch of rooms on top of each other and then moves them randomly around until they don't fit any longer. Usually this makes for some very nice and organic looking scenes. This version also has a bunch of other parameters like wider door ways, interconnectedness, and decoration among others. The example in this thread randomises these parameters but in the code it is fairly easy to set them up to whatever.
I've tried to document it to a degree, so hopefully it can help out if someone wants to dive into my implementation. It should be said though that I primarily wanted to visualise the process and to look nice, not necessarily be the most efficient data structure. ;)
Have fun and let me know if there are any questions!
Created for the Pico-8 Advent Calendar 2018.
Hit the slopes and score as many gates as you can. Use your cards to steer and build your deck as you go!
arrow keys - choose card
x/z - use card
That's all there is to it really! Every third gate you pass you can add cards to your deck with various effects. Maybe speed up and get more points? Or even dare to use the jump card? Experiment with cards and obstacles to get the most points.
Feedback is appreciated, let me know in the comments. And post your scores too! :D
About Pico-8 Advent Calender
During December, each day will be filled with new and exciting PICO-8 games! We have gathered 25 great developers from the PICO-8 community and we have worked hard to make some new games. Each day leading up to Christmas, there will be a new surprise for you!
Find out more at: https://pico8-advent.tumblr.com/
And check out the Pico-8 Advent Calendar each day for a new surprise: https://www.lexaloffle.com/bbs/?tid=32388
I finally had the time to do some final tweaks and fixes and upload my demake 2018 entry DELUNKY to the bbs!
Enter the caves and try to find as much gold as you can before you perish to the dangers of the depth. Use your trusty whip in combination with bombs, ropes, and whatever you scavenge to get as far as you can.
Arrows - move
Down arrow - pickup item
Up arrow - jump
X - use current item (throw/drop/whip)
Z - switch current item
Derek Yu (@mossmouth) for creating Spelunky
Matt Hughson (@matthughson) for Platformer Starter Kit
Darius Kazemi (@tinysubversions) for great info on map generation
Frederic Souchu (@FSouchu) for pico-8 token optimisation help
I finally managed to tie all the loose ends together in my Outrun-esque racer. There's only one route, but the controls have some nuance which should make for healthy competition.
I know very little about 3D and projection and stuff, so most of the tech is from this excellent article:
Have fun! And what's your best time?
Here's a remake of an old project of mine in PICO-8. Was a lot of fun to do!
Thanks to the amazing Gruber this version also have great music and sfx!
But all in all, CAN YOU GET OUT?
Share your thoughts!