crystal/crystal.h

50 lines
979 B
C

/**
* crystal.h
* Ⓒ 2023 konomo
* EUPL-1.2
**/
#ifndef __CRYSTAL_H__
#define __CRYSTAL_H__
/* for 4k */
/* #define WIDTH 3840 */
/* #define HEIGHT 2160 */
/* for fullhd */
#define WIDTH 1920
#define HEIGHT 1080
/* for 360p*/
/* #define WIDTH 480 */
/* #define HEIGHT 360 */
/* #define SPROUTS 50000 */
/* #define SPROUTS 5000 */
/* #define SPROUTS 500 */
#define SPROUTS 20
/* #define SPROUTS 1 */
/* length of simulation */
/* #define SIMLENGTH 10000 */
#define SIMLENGTH 500
/* #define SIMLENGTH 1 */
/* #define SIMLENGTH 20 */
struct SPROUT
{
char killswitch; /* if this is set, do not bother with the sprout */
unsigned int ID;
unsigned int v[4]; /* velocity in cardinal directions */
unsigned char c; /* color */
unsigned int x0; /* initial coordinates of the sprout */
unsigned int y0;
};
/* default velocity */
/* const int velocity[] = {1, 1, 1, 1}; */
const int velocity[] = {20, 20, 20, 20};
#endif