-
Notifications
You must be signed in to change notification settings - Fork 2
Installation and usage
All the current compiled and ready to run installers are found in this location where the latest version for both Windows and Linux are found. For Windows everything is included in a .zip file so no need to install additional libraries. For Linux see tar-files, Linux systems however, should install libsdl either by compiling the source code or by using package manager such as apt-get on Debian, Ubuntu etc., yum on Red Hat-based system or pacman on Arch. More info about installation of SDL can be found here.
Clone the repository to desired location and compile it with compiler of choosing. Do notice, that SDL development version is required and should be included in compilation setup. There are multiple ways of doing this so Googling around is best bet with this one.
Run the program by simply executing the executable inside the package. There are also two files for changing the way the program performs. First config.cfg file:
#This is the config file for the Particle Fire Simulation.
#Lines starting with #-symbol are ignored by the program.
#SCREEN_WIDTH, set the screen width in pixels:
SCREEN_WIDTH = 800
#SCREEN_HEIGH, set the screen height in pixels:
SCREEN_HEIGHT = 600
#TARGET_FPS, limit the frames per second(fps):
TARGET_FPS = 60
and also settings.cfg:
#This is the settings file for the Particle Fire Simulation.
#Lines starting with #-symbol are ignored by the program.
#SCREEN_WIDTH, set amount of particles that are drawn on the screen:
NPARTICLES = 6400
#redSpeed, changes the value how fast red color channel changes
redSpeed = 0.0009
#greenSpeed, changes the value how fast red color channel changes
greenSpeed = 0.00005
#blueSpeed, changes the value how fast red color channel changes
blueSpeed = 0.00002
Changing these values during runtime of the program are not applied instantly. The program needs to be shutdown and started again for changes to take effect. For closing the program esc-key can be also used!