Quick post to help you start with pico-8 and haxe.
If you never heard of it:
PICO-8 is a fantasy console for making, sharing and playing tiny games and other computer programs. When you turn it on, the machine greets you with a shell for typing in Lua commands and provides simple built-in tools for creating your own cartridges.
For more info, please check the official website.
I’ve created an empty project (as a gist) which you can find below :
It took me a while but I finally did it.
I released a new version of my LD31 entry, coloring.
I had to rewrite it completely, because I used my HTML5 framework (AGE) and I wanted to deploy it on mobile. So thanks to haxe and OpenFl I did it without trashing all my old code.
So what’s new ?
For the first time, I did integrate unit tests in order to test all (or at least the most) game possibilities. For that I used munit which is really great.
For the leaderboard integration, I’ve used linden-google-play library which is a native extension for OpenFl.
Enjoy, and let me know what you think.
I have integrated a tutorial which is playable as a little party of Coloring.
##How is it working?
Each turn you play, you have to complete a small challenge, receiving explanations on how to:
Now I’ve this system working, I’m thinking: why not add achievements or in game challenges ? Stay tuned :)
It took me a while, but here is the new version of my last LD entry.
So what’s new so far:
For a better understanding, here are some screenshots :
Stay tuned for the more information :)
For the last Ludum Dare, I wanted to have a nice effect on the background of my puzzle game in order to change the color based on the action on the board.
First we have to get the initial color (color1) and the new one (color2). In order to change the color smoothly, we will do it with a Timer object.
Here is the RGB typedef:
The first step is the calculate the distance between those two colors (all methods are based on the RGB type):
Now that we have the difference, we have to calculate the value that will determine how the color will change between each step:
The INCREMENT_VALUE value allows use to determine how we want the effect to change. The higher the value is, the quicker the effect will be.
I've set it to 100.
Now we have to calculate the new color :
And same thing for each tone.
I'll now add this step to the Timer object.
I'm using the Timer class in order to have a cross platform method. But you can use any kind of listener or Signal.
In this loop, you'll have to change the property of your object.
Where rgb2hex transform the RGB object in hexa :
Here is an example :