Kaleido-8 variation of new Kaleidoscopic lens magic

This commit is contained in:
Bill Kendrick 2023-03-07 00:47:32 -08:00
parent 1bfa5f7a49
commit 4ffae2aa24
2 changed files with 9 additions and 2 deletions

View file

@ -72,7 +72,7 @@ https://tuxpaint.org/
- need icons
- need sound effects
* [WIP] "Kaleido-4" & "Kaleido-6" -- Kaleidoscopic lens effect.
* [WIP] "Kaleido-4", "-6", and "-8" -- Kaleidoscopic lens effects.
Bill Kendrick <bill@newbreedsoftware.com>
- need icons
- need sound effects

View file

@ -4,7 +4,7 @@
kaleidoscope.
Bill Kendrick
Last updated: February 28, 2023
Last updated: March 7, 2023
*/
#include <stdio.h>
@ -19,27 +19,32 @@
enum {
KAL_LENS_4,
KAL_LENS_6,
KAL_LENS_8,
NUM_TOOLS
};
static char * kaleidoscope_lens_snd_filenames[NUM_TOOLS] = {
"kaleidoscope_lens.ogg", // FIXME
"kaleidoscope_lens.ogg", // FIXME
"kaleidoscope_lens.ogg", // FIXME
};
static char * kaleidoscope_lens_icon_filenames[NUM_TOOLS] = {
"colorsep.png", // FIXME
"colorsep.png", // FIXME
"colorsep.png", // FIXME
};
char * kaleidoscope_lens_names[NUM_TOOLS] = {
gettext_noop("Kaleido-4"),
gettext_noop("Kaleido-6"),
gettext_noop("Kaleido-8"),
};
char * kaleidoscope_lens_descrs[NUM_TOOLS] = {
gettext_noop("Click and drag around your picture to look through it with a kaleidoscope!"),
gettext_noop("Click and drag around your picture to look through it with a kaleidoscope!"),
gettext_noop("Click and drag around your picture to look through it with a kaleidoscope!"),
};
Mix_Chunk *snd_effects[NUM_TOOLS];
@ -215,6 +220,8 @@ void kaleidoscope_lens_render(magic_api * api, int which, SDL_Surface * canvas,
sides = 4;
} else if (which == KAL_LENS_6) {
sides = 6;
} else if (which == KAL_LENS_8) {
sides = 8;
} else {
return;
}