#include "mxvk/argz.hpp"
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_exception.hpp"
#include <SDL3/SDL.h>
#include <algorithm>
#include <climits>
#include <cmath>
#include <compare>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <random>
#include <sstream>
#include <string>
#include <vector>
Go to the source code of this file.
|
| enum | {
BLOCK_BLACK = 0
, BLOCK_YELLOW
, BLOCK_ORANGE
, BLOCK_LTBLUE
,
BLOCK_DBLUE
, BLOCK_PURPLE
, BLOCK_PINK
, BLOCK_GRAY
,
BLOCK_RED
, BLOCK_GREEN
, BLOCK_CLEAR
, BLOCK_COUNT
} |
| enum | ScreenState {
SCREEN_INTRO
, SCREEN_START
, SCREEN_GAME
, SCREEN_GAMEOVER
,
SCREEN_OPTIONS
, SCREEN_CREDITS
, SCREEN_SCORES
} |
|
| int | main (int argc, char **argv) |
◆ puzzle_ASSET_DIR
| #define puzzle_ASSET_DIR "." |
◆ anonymous enum
| Enumerator |
|---|
| BLOCK_BLACK | |
| BLOCK_YELLOW | |
| BLOCK_ORANGE | |
| BLOCK_LTBLUE | |
| BLOCK_DBLUE | |
| BLOCK_PURPLE | |
| BLOCK_PINK | |
| BLOCK_GRAY | |
| BLOCK_RED | |
| BLOCK_GREEN | |
| BLOCK_CLEAR | |
| BLOCK_COUNT | |
Definition at line 36 of file acid.drop.cpp.
◆ ScreenState
| Enumerator |
|---|
| SCREEN_INTRO | |
| SCREEN_START | |
| SCREEN_GAME | |
| SCREEN_GAMEOVER | |
| SCREEN_OPTIONS | |
| SCREEN_CREDITS | |
| SCREEN_SCORES | |
Definition at line 51 of file acid.drop.cpp.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 1426 of file acid.drop.cpp.
1426 {
1428 try {
1430 window.loop();
1432 SDL_Log(
"mxvk: Exception: %s\n", e.
text().c_str());
1433 return EXIT_FAILURE;
1435 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", e.
text());
1436 return EXIT_FAILURE;
1437 }
1438 return EXIT_SUCCESS;
1439}
Arguments proc_args(int &argc, char **argv)
Parse standard libmx2 command-line options from main()'s argv.
Exception thrown by Argz::proc() on unrecognised or malformed options.
Plain data structure returned by proc_args() with all common libmx2 CLI options.
bool fullscreen
Whether fullscreen mode was requested.
bool enable_vsync
Enable FIFO present mode / v-sync (--enable-vsync).
int height
Viewport height in pixels (default: 720).
std::string path
Asset root; proc_args() defaults it to the executable directory.
int width
Viewport width in pixels (default: 1280).
◆ BLOCK_HEIGHT
◆ BLOCK_SIZE
◆ BLOCK_SPACING
◆ FLASH_DURATION
◆ GRID_HEIGHT
◆ GRID_WIDTH
◆ NEXT_PANEL_X
◆ NEXT_PANEL_Y
◆ SHADER_LEVEL_COUNT
| int SHADER_LEVEL_COUNT = 4 |
|
constexpr |
◆ SHADER_LEVEL_LINES
| int SHADER_LEVEL_LINES = 10 |
|
constexpr |
◆ STARTX
◆ STARTY