Kategoriarkiv: haxx

starscroller

Here’s a little paralaxxed starscroller for you.
It’s based around a function that inputs an array with numbers which do.:

+ the arraylength divide up the bitmap in as many layers.
+ scrolls each layer in the speed specified in that array.
+ randomize colors and then juggles them around a bit using bitwise operations which tint it to cyan.
+ and of course the input array is also randomized. :)

And it’s all outputtet to a stretched out 320×180 bitmap.
Plan is to replace the starscroller in the back of Xnitzy&&Xnutzi to this one which hopefully wont eat up so much CPU. Backside is that it moves one huge pixel per frame, which make smooth movement impossible at this resolution.  Gonna try full 720p asap, just need to go buy some potatoes first before the store closes :)

Nope I did not. Full720 test here.

Publicerat i haxx | Lämna en kommentar

and cont…

almost a synth

Got some nice ADSR-Envelopes going on now. Only connected to the volume at the moment.
Added a keyboard function + some buttons to play with.

Try it out with the usual Q-P  .

Publicerat i haxx | Lämna en kommentar

sound generator cont…

Sound generator

I have now switched to a square wave.
And created a proper low pass filter thanks to the mighty Steffo!
Then I went on and made a sinus LFO that controls it.

Now we have an LFO that you control with UP && DOWN.
And as last time, change wavelengths with LEFT && RIGHT .

Publicerat i haxx | Lämna en kommentar

sound generator

Actionscript 3 has the ability to generate sound I’ve heard.
So I looked into it, tied a sinegenerator together with ma bitmap-scroller from sceneawards and Voila! Sinusgenerator + Oscilator.

Control by pressing
Left || Right for frequency acceleration/ deacceleration. It’s a bit chaotic at the moment for entertainment purpose since it sounds funnier.

Up || Down for LP-filter.
Q || A for HP-filter.

And the link is the little funny picture on top there :)

Publicerat i haxx | Lämna en kommentar

Constructor!

And finally it all made sense.
When programming with actual classes n stuff you start importing, extending and tying together these classes.

If you name a function inside that class to the same name as the class itself it will run when the class loads. And that function is then called Constructor. Cause it’s there people tend to fill all variable definitions n stuff needed for the class. Yeah, i’ve avoided real projects since forever but now I think it finally sunk in.

This whole ”actual way to code” is quite well thought out but cheats the whole time with handy shortcuts to everything everywhere. No need for any real skills, opposed to getting your hands dirty in custom code with alternative and personal ways to handle these things. But it’s the first step for apanbepan to go out exploring other languages than actionscript and basic I guess, since this way to code is more universal.

New xnitzy&&xnutzi episode built from scratch with totally reworked engine will be out in May.! :)

Publicerat i haxx | Lämna en kommentar