Adding Google Eyes sound effect
Updating credits & changelog, too.
This commit is contained in:
parent
105b6958c5
commit
866c5f6483
4 changed files with 17 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ Copyright (c) 2002-2022
|
||||||
Various contributors (see below, and CHANGES.txt)
|
Various contributors (see below, and CHANGES.txt)
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
June 17, 2002 - December 11, 2022
|
June 17, 2002 - December 24, 2022
|
||||||
|
|
||||||
* Design and Coding:
|
* Design and Coding:
|
||||||
|
|
||||||
|
|
@ -103,6 +103,12 @@ June 17, 2002 - December 11, 2022
|
||||||
https://github.com/lecram/gifenc,
|
https://github.com/lecram/gifenc,
|
||||||
by Marcel Rodrigues <http://lecram.github.io/>
|
by Marcel Rodrigues <http://lecram.github.io/>
|
||||||
|
|
||||||
|
Googly Eyes magic tool and artwork
|
||||||
|
by Bill Kendrick <bill@newbreedsoftware.com>
|
||||||
|
Googly Eyes sound effect: "SFX_STICKERRIPPER_docket_29.wav"
|
||||||
|
(https://freesound.org/people/MrFossy/sounds/590303/)
|
||||||
|
Creative Commons 0 license by "MrFossy"
|
||||||
|
|
||||||
Mouse accessibility code and keyboard access
|
Mouse accessibility code and keyboard access
|
||||||
Ankit Choudary <ankit.goaldecided@gmail.com>, as part of GSOC 2010,
|
Ankit Choudary <ankit.goaldecided@gmail.com>, as part of GSOC 2010,
|
||||||
with integration and fixes by Pere Pujal i Carabantes <pere@fornol.no-ip.org>
|
with integration and fixes by Pere Pujal i Carabantes <pere@fornol.no-ip.org>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Various contributors (see below, and AUTHORS.txt)
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
|
|
||||||
2022.December.23 (0.9.29)
|
2022.December.24 (0.9.29)
|
||||||
* Improvements to "Stamp" tool:
|
* Improvements to "Stamp" tool:
|
||||||
-----------------------------
|
-----------------------------
|
||||||
* Stamps may now be rotated.
|
* Stamps may now be rotated.
|
||||||
|
|
@ -16,8 +16,10 @@ https://tuxpaint.org/
|
||||||
|
|
||||||
* New Magic Tools:
|
* New Magic Tools:
|
||||||
----------------
|
----------------
|
||||||
* [WIP] "Googly Eyes"; place eyeballs in your drawing.`
|
* "Googly Eyes"; place eyeballs in your drawing.`
|
||||||
Bill Kendrick <bill@newbreedsoftware.com>
|
Bill Kendrick <bill@newbreedsoftware.com>
|
||||||
|
(Sound effect licensed as Creative Commons 0 by
|
||||||
|
https://freesound.org/people/MrFossy/)
|
||||||
|
|
||||||
* Improvements to Magic Tools:
|
* Improvements to Magic Tools:
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
|
||||||
BIN
magic/sounds/googlyeyes.ogg
Normal file
BIN
magic/sounds/googlyeyes.ogg
Normal file
Binary file not shown.
|
|
@ -69,10 +69,9 @@ int googlyeyes_init(magic_api * api)
|
||||||
char fname[1024];
|
char fname[1024];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// FIXME
|
snprintf(fname, sizeof(fname), "%ssounds/magic/googlyeyes.ogg",
|
||||||
// snprintf(fname, sizeof(fname), "%ssounds/magic/googlyeyes.ogg",
|
api->data_directory);
|
||||||
// api->data_directory);
|
snd_effect = Mix_LoadWAV(fname);
|
||||||
// snd_effect = Mix_LoadWAV(fname);
|
|
||||||
|
|
||||||
for (i = 0; i < NUM_SIZES; i++) {
|
for (i = 0; i < NUM_SIZES; i++) {
|
||||||
googlyeyes_img_bkgd[i] = NULL;
|
googlyeyes_img_bkgd[i] = NULL;
|
||||||
|
|
@ -227,6 +226,9 @@ googlyeyes_click(magic_api * api, int which, int mode ATTRIBUTE_UNUSED,
|
||||||
if (eye_y < googlyeyes_img_bkgd[which]->h / 2)
|
if (eye_y < googlyeyes_img_bkgd[which]->h / 2)
|
||||||
eye_y = googlyeyes_img_bkgd[which]->h / 2;
|
eye_y = googlyeyes_img_bkgd[which]->h / 2;
|
||||||
|
|
||||||
|
api->stopsound();
|
||||||
|
api->playsound(snd_effect, (x * 255) / canvas->w, 255);
|
||||||
|
|
||||||
googlyeyes_drag(api, which, canvas, snapshot, x, y, x, y, update_rect);
|
googlyeyes_drag(api, which, canvas, snapshot, x, y, x, y, update_rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue