PCEngineFans.com - The PC Engine and TurboGrafx-16 Community Forum

Tech and Homebrew => Turbo/PCE Game/Tool Development => Topic started by: touko on June 07, 2013, 11:40:34 PM

Title: fire effect source code
Post by: touko on June 07, 2013, 11:40:34 PM
Hi all .

I post the source code of this effect.
It's based on old tomaitheous's h-sync routine for huc.Even if i use my own h_sync routine now, the goal is the same.

You will see how simple this effect is  ..

http://rapidshare.com/files/493393077/fire_effect.zip
Title: Re: fire effect source code
Post by: Bonknuts on June 08, 2013, 01:31:08 PM
Hi all .

I post the source code of this effect.
It's based on old tomaitheous's h-sync routine for huc.Even if i use my hown h_sync routine now, the goal is the same.

You will see how simple this effect is  ..

http://rapidshare.com/files/493393077/fire_effect.zip


 Where did you get that sin table from? Great effect :D
Title: Re: fire effect source code
Post by: touko on June 08, 2013, 10:15:29 PM
at first I wanted to make a simple wavy effect, as in a level of Thunder force 3  .

And I forgot to initialize the sin table,the result was this effect,i just had to put some values on screen to see how kind of values are needed .

To summarize, is a wavy effect with chaotic values .

In fact this effect is due to chance lol ..
Title: Re: fire effect source code
Post by: Bonknuts on June 11, 2013, 02:18:37 PM
It's a great effect. Thanks for sharing the sine table :D
Title: Re: fire effect source code
Post by: touko on June 12, 2013, 01:03:05 AM
Thanks,this is my modest contribution ;-) .

You can see it in action in the menu of my ik like game :

Of course it's very smooth on real hardware,and may be add a blur effect make it more realistic, or less pixelated..
Title: Re: fire effect source code
Post by: roflmao on June 12, 2013, 03:35:45 AM
Nice!