migrat a SDL3
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#define WINDOW_CAPTION "demo_pelotas2"
|
||||
#define SCREEN_WIDTH 320
|
||||
#define SCREEN_HEIGHT 240
|
||||
#define WINDOW_SIZE 3
|
||||
#define BALL_SIZE 8
|
||||
#define GRAVITY 0.2f
|
||||
#define TEXT_TIME 100
|
||||
constexpr char WINDOW_CAPTION[] = "demo5_sprites_bouncing";
|
||||
|
||||
struct color_t
|
||||
constexpr int SCREEN_WIDTH = 320;
|
||||
constexpr int SCREEN_HEIGHT = 240;
|
||||
constexpr int WINDOW_SIZE = 3;
|
||||
constexpr int BALL_SIZE = 8;
|
||||
constexpr float GRAVITY_FORCE = 0.2f;
|
||||
|
||||
constexpr Uint64 DEMO_SPEED = 1000 / 60;
|
||||
constexpr Uint64 TEXT_DURATION = 2000;
|
||||
|
||||
struct Color
|
||||
{
|
||||
int r,g,b;
|
||||
int r, g, b;
|
||||
};
|
||||
Reference in New Issue
Block a user