Creates a fire effect on the screen. Similar to my previous DOS fire effect, but for DirectX.
This program will draw a nifty looking fire-like effect on your screen. With a little more programming, you can change the color of the fire, make text burn, and other good stuff like that.
How it works
---------------
This program runs in 256 color mode. It creates a DirectX palette to hold a nifty fire palette of blue->orange->red->black.
black is color 0
blue is color 255
it places blocks of blue color at the bottom of the screen, then filters the entire screen, setting the color to the average of the 4 closest pixels to it
P
PCP
P
thus the color now at C would be (P+P+P+P)/4 then it moves all the colors up one pixel (-1 in the y direction) then it shows the screen
File List:
FireDX.dsp
4Kb
FireDX.dsw
1Kb
FireDX.ncb
209Kb
FireDX.opt
48Kb
FireDX.plg
1Kb
main.cpp
14Kb
main.h
3Kb
readme.txt
1Kb
Similar code
Force Feedback with DirectInput
(Popularity: ) : This is a code stub from a game I am working on. You will need to have DirectX 7.0 installed or higher. I will give you two sample effects when using a force-feedback joystick. The first one is an Explosion ... DirectInput Mouse class
(Popularity: ) : This is a class that reads mouse movement in DirectInput. DirectSound
(Popularity: ) : This program is able to play multiple wave files simultaneously. The code originally from Borland C++ Builder sample and I simplified according to my requirement to play 2 wave files at the same time. The code used DirectX components that ... DirectDraw Hardware Enumeration
(Popularity: ) : This program demonstrates the use of DirectDraw7 to enumerate graphics hardware. The code retrieves information about all graphics adapters installed on your computer. The information includes supported display modes (including refresh rates) and a ton of flags and other information ... Infinity2D DirectDraw Engine
(Popularity: ) : This is a complete 2D Game Engine, it has a DirectDraw, DirectSound, DirectInput wrapper, along with some other kewl stuff. DDUtility (DirectDraw Utility) Use this instead of Microsofts DDUtil. (UPDATE)
(Popularity: ) : I needed a utility for my new game and Microsofts didn't work the way I wanted so I made my own. This one is better in many ways. First, you don't have to create a window or window procedure every ... DirectDraw Game DirectX6
(Popularity: ) : I started this game and I noticed there wasn't much DirectDraw Stuff at this place. So I decided to upload my partially made game. It is a tile based game. It tiles out the bitmaps and makes a map. What ... Flight Simulator in Direct3D
(Popularity: ) : This is a simple Flight Simulator I made to demonstrate transforming the view in Direct3D. Use the W, A, S, and D keys to navigate, and press 'esc' to quit If you like it, please rate it ;) alDirectPlay Creation Class
(Popularity: ) : a nifty class to easily implement DirectPlay in your programs. With a little tweaking it could easily be used for a large scale multiplayer experience. the screenshot is from a game im working on using this code. c'mon feedback people ... Fly Game
(Popularity: ) : It uses DirectX7 DirectDraw and DirectInput to create a small game in which you must outrun a fly. Sounds basic, is basic, looks harder.