migrat a SDL3

This commit is contained in:
2025-03-24 12:48:32 +01:00
parent 111cbb2217
commit 4a2e5c27e2
13 changed files with 366 additions and 309 deletions

View File

@@ -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;
};