Commit e7f6be98 authored by Baptiste HEYRENDT's avatar Baptiste HEYRENDT
Browse files

Add basic life cycle

parent 939faf4a
{
"WindowTitle": "Default",
"WindowSizeX": 800,
"WindowSizeY": 600,
"ParticleImage": "assets/particle.png",
"Debug": true,
"InitNumParticles": 10,
"RandomSpawn": true,
"SpawnX": 400,
"SpawnY": 400,
"SpawnRate": 0,
"SpeedLimit": [0,0,0,0],
"Colors": [1,1,1,1,1,1],
"Gravity": false,
"GravityCenter": false,
"LifeCycle": 300
}
\ No newline at end of file
package lifeycycle
// import (
// ""
// )
func LifeCycle() int {
a := 1
return a
}
......@@ -4,11 +4,11 @@
"WindowSizeY": 600,
"ParticleImage": "assets/particle.png",
"Debug": true,
"InitNumParticles": 10,
"InitNumParticles": 100000,
"RandomSpawn": true,
"SpawnX": 400,
"SpawnY": 400,
"SpawnRate": 0,
"SpeedLimit": [0,20,0,0],
"Colors": [1,1,1,1,1,1]
"SpeedLimit": [0,0,0,0],
"Colors": [0,1,0,1,0,1]
}
......@@ -16,9 +16,10 @@ type Config struct {
RandomSpawn bool
SpawnX, SpawnY int
SpawnRate float64
SpeedLimit []float64
Colors []float64
Gravity,GravityCenter bool
SpeedLimit []float64
Colors []float64
Gravity, GravityCenter bool
LifeCycle int
}
var General Config
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment