mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
examples: add fireworks example (#8358)
This commit is contained in:
parent
90ecbde712
commit
ba3342a034
6 changed files with 225 additions and 0 deletions
12
examples/fireworks/modules/objects/constants.v
Normal file
12
examples/fireworks/modules/objects/constants.v
Normal file
|
@ -0,0 +1,12 @@
|
|||
module objects
|
||||
|
||||
const (
|
||||
width = 800
|
||||
height = 800
|
||||
gravity = Vector{0, -0.03}
|
||||
age_rate = 1
|
||||
offspring_count = 100
|
||||
rocket_radius = 5
|
||||
particle_radius = 2.5
|
||||
drag = 0.98
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue