Kaleido-8 variation of new Kaleidoscopic lens magic
This commit is contained in:
parent
1bfa5f7a49
commit
4ffae2aa24
2 changed files with 9 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ https://tuxpaint.org/
|
||||||
- need icons
|
- need icons
|
||||||
- need sound effects
|
- 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>
|
Bill Kendrick <bill@newbreedsoftware.com>
|
||||||
- need icons
|
- need icons
|
||||||
- need sound effects
|
- need sound effects
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
kaleidoscope.
|
kaleidoscope.
|
||||||
Bill Kendrick
|
Bill Kendrick
|
||||||
|
|
||||||
Last updated: February 28, 2023
|
Last updated: March 7, 2023
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -19,27 +19,32 @@
|
||||||
enum {
|
enum {
|
||||||
KAL_LENS_4,
|
KAL_LENS_4,
|
||||||
KAL_LENS_6,
|
KAL_LENS_6,
|
||||||
|
KAL_LENS_8,
|
||||||
NUM_TOOLS
|
NUM_TOOLS
|
||||||
};
|
};
|
||||||
|
|
||||||
static char * kaleidoscope_lens_snd_filenames[NUM_TOOLS] = {
|
static char * kaleidoscope_lens_snd_filenames[NUM_TOOLS] = {
|
||||||
"kaleidoscope_lens.ogg", // FIXME
|
"kaleidoscope_lens.ogg", // FIXME
|
||||||
"kaleidoscope_lens.ogg", // FIXME
|
"kaleidoscope_lens.ogg", // FIXME
|
||||||
|
"kaleidoscope_lens.ogg", // FIXME
|
||||||
};
|
};
|
||||||
|
|
||||||
static char * kaleidoscope_lens_icon_filenames[NUM_TOOLS] = {
|
static char * kaleidoscope_lens_icon_filenames[NUM_TOOLS] = {
|
||||||
"colorsep.png", // FIXME
|
"colorsep.png", // FIXME
|
||||||
"colorsep.png", // FIXME
|
"colorsep.png", // FIXME
|
||||||
|
"colorsep.png", // FIXME
|
||||||
};
|
};
|
||||||
|
|
||||||
char * kaleidoscope_lens_names[NUM_TOOLS] = {
|
char * kaleidoscope_lens_names[NUM_TOOLS] = {
|
||||||
gettext_noop("Kaleido-4"),
|
gettext_noop("Kaleido-4"),
|
||||||
gettext_noop("Kaleido-6"),
|
gettext_noop("Kaleido-6"),
|
||||||
|
gettext_noop("Kaleido-8"),
|
||||||
};
|
};
|
||||||
|
|
||||||
char * kaleidoscope_lens_descrs[NUM_TOOLS] = {
|
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!"),
|
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];
|
Mix_Chunk *snd_effects[NUM_TOOLS];
|
||||||
|
|
@ -215,6 +220,8 @@ void kaleidoscope_lens_render(magic_api * api, int which, SDL_Surface * canvas,
|
||||||
sides = 4;
|
sides = 4;
|
||||||
} else if (which == KAL_LENS_6) {
|
} else if (which == KAL_LENS_6) {
|
||||||
sides = 6;
|
sides = 6;
|
||||||
|
} else if (which == KAL_LENS_8) {
|
||||||
|
sides = 8;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue