MODULE: glittery cursor

Started by Monsieur OUXX, Tue 03/12/2013 13:54:11

Previous topic - Next topic

Monsieur OUXX

Do you like glitter? Don't lie, I know you do. And unicorns too.

I made this little module. Well, it's not a module, really. It's more of several code snippets, but clearly split into re-usable functions. It's based on Jerakeen's particles and Edmundito's tweening. ...And it's pretty.
- Use this to create a particles generator that projects particles in the opposite direction from the mouse movement.
- Use this to create a neat little credits system (see video).
- Use this to create a background that is continuously scrolling (and looping).


Video here:




Download (source and demo)



 

monkey0506

#1
I don't see from the video what the module has to do with a looping background. The increasing gravity is a nice effect, but other than that this module looks kind of familiar. ;-D

Are you able to use partially transparent particles? IIRC the latest 3.3.0 betas should allow drawing alpha channels properly onto a transparent background, but otherwise I'm curious how you're drawing the particles.

Monsieur OUXX

#2
Quote from: monkey_05_06 on Tue 03/12/2013 14:07:59
I don't see from the video what the module has to do with a looping background.
It's not looping frames (animated background), it's looping scrolling: when it reaches the far left, it starts appearing continuously on the far right. Was that your question? EDIT: oh, I see what you mean, the video is slightly too short to see a full loop.

Quote from: monkey_05_06 on Tue 03/12/2013 14:07:59
this module looks kind of familiar. ;-D
Yes, but mine is much cuter. I hate you. I love you.

Quote from: monkey_05_06 on Tue 03/12/2013 14:07:59
Are you able to use partially transparent particles?
Nope -- Jarakeen's module has anticipated the feature, knowing that at creation time it wouldn't work (alpha channel appears all pink). and it still doesn't work on 3.2.1, as expected (I tried). But it would be interesting to try again on 3.3.0.  At the moment I'm using regular sprites with either fully opaque pixels or pink pixels. I had issues with 3.3.0 which made me allergic to it. I'll try again when they're fixed.
 

selmiak

Now that is sweet! ;-D
But where ARE the unicorns?

Monsieur OUXX

Quote from: selmiak on Tue 03/12/2013 16:34:11
But where ARE the unicorns?

up your ass.

Monkey and selmiak, since you're here: could you donwload the demo game, run it (without recompiling it) and check if the sound is terrible? It's not working properly on my PC (terrible, terrible stutter) and I don't know why. I tried both DX9 and DD5. It's not the sound file, it plays fine in VLC. I don't think it's a performance issue (the stutter is really erratic while the FPS are rather stable).

 

Crimson Wizard

Quote from: Monsieur OUXX on Tue 03/12/2013 16:36:39
Monkey and selmiak, since you're here: could you donwload the demo game, run it (without recompiling it) and check if the sound is terrible? It's not working properly on my PC (terrible, terrible stutter) and I don't know why. I tried both DX9 and DD5. It's not the sound file, it plays fine in VLC. I don't think it's a performance issue (the stutter is really erratic while the FPS are rather stable).

This is because you have a "Default WaveOut device" set in the game setup.
Changed to "DirectSound", music plays nicely.

selmiak

Quote from: Monsieur OUXX on Tue 03/12/2013 16:36:39
up your ass.

Now that explains why I was pooping rainbows over the last few months. As there were many related cases reported I was already considering consulting a doctor but I like the look and especially the smell of it. Unicornpooprainbows smell so refreshingly nice, like a mixture between kerosine, oranges and vanilla. And it looks so funny when you flush it down finally. I still wonder how they got in there and didn't poke me with their horns in these dangerzones of my body's sensual reaction. These sneaky but fabulous creatures never cease to amaze me.
aaaaaaanyways, when playing the demo straight out of the editor it crackles and scratches a lot. When playing the audiofile from the audiotree in the AGS editor it sounds perfectly normal. So I suppose AGS spends more ressources on correct rendering of the images you see onscreen than on the sound you hear. Maybe you should optimize your code to not waste ressources there. But this is just my uneducated opinion as I didn't examine your codemagic as I wouldn't understand it anyways. And anyways, gotta go, gotta poop rainbows again, wheeeee!

monkey0506

Quote from: Monsieur OUXX on Tue 03/12/2013 16:26:13
Quote from: monkey_05_06 on Tue 03/12/2013 14:07:59I don't see from the video what the module has to do with a looping background.

It's not looping frames (animated background), it's looping scrolling: when it reaches the far left, it starts appearing continuously on the far right. Was that your question? EDIT: oh, I see what you mean, the video is slightly too short to see a full loop.

Looping backgrounds in AGS isn't really that difficult. I was just saying I don't see what a cursor module has anything to do with controlling the background looping. It seems like the code handling that should definitely not be part of this module.

Ghost

#8
Nice work overall, Monsieur, thanks for sharing (nod) It seems a bit rough around the edges but, well, that can always be ironed out (the above mentioned scratching).

And I found the unicorns.
Spoiler

SO! Glittery!!
[close]

Dualnames

This module is so gay I want to dance around naked russians.
More on topic, good job making a module that ALREADY EXISTED.

#needsunicorns
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk