mirror of https://git.sr.ht/~kikoodx/momento
21 lines
358 B
C
21 lines
358 B
C
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
||
|
/* Copyright (C) 2021 KikooDX */
|
||
|
|
||
|
#include "particles.h"
|
||
|
|
||
|
struct Particle particles[MAX_PARTICLES];
|
||
|
|
||
|
void particles_init(void) {
|
||
|
int i = MAX_PARTICLES;
|
||
|
while (i --> 0) {
|
||
|
particles[i] = (struct Particle){
|
||
|
.x = 0,
|
||
|
.y = 0,
|
||
|
.texture = NULL,
|
||
|
.frame_width = 0,
|
||
|
.frame = 0,
|
||
|
.life = 0,
|
||
|
};
|
||
|
}
|
||
|
}
|