aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-01-19 13:20:45 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-01-19 13:20:45 -0500
commitc1774c591f7897c1cfa28e05fdb7c72e07890933 (patch)
treeec37af95646fbaeaeea291ee1ecb0e3dec5915cf /main.cpp
parentfbd4ddbab2cc3a713430483b24642cbbc7050f0c (diff)
Color Index can be used to color anything with a solid color
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index c10faee..fb13b5a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -959,7 +959,15 @@ void logic(){
switch(b->bsubtype){
case FOUNTAIN:
for(int r = 0; r < (rand()%25)+10;r++){
- currentWorld->addParticle(rand()%HLINE*3 + b->loc.x + b->width/2,b->loc.y + b->height, HLINE,HLINE, rand()%2 == 0?-(rand()%7)*.01:(rand()%7)*.01,((4+rand()%6)*.05), {0,0,255}, 2500);
+ currentWorld->addParticle( rand()%HLINE*3 + b->loc.x + b->width/2,
+ b->loc.y + b->height,
+ HLINE*1.25,
+ HLINE*1.25,
+ rand()%2 == 0?-(rand()%7)*.01:(rand()%7)*.01,
+ ((4+rand()%6)*.05),
+ {0.0f,0.0f,255.0f},
+ 2500);
+
currentWorld->particles.back()->fountain = true;
}
break;