mirror of
https://github.com/Team4388/auto_planner.git
synced 2026-06-09 00:38:06 -06:00
Add files via upload
This commit is contained in:
Binary file not shown.
+1693
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
set files=main.c gfx\gfx.c game\motion.c game\planner.c game\math\bezier.c game\math\mathutils.c
|
||||||
|
set libs=-l./lib/x64/SDL2 -l./lib/x64/SDL2main -l./lib/x64/SDL2_image
|
||||||
|
clang %files% -o auto.exe %libs%
|
||||||
|
auto figure.txt
|
||||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
File diff suppressed because one or more lines are too long
@@ -0,0 +1,47 @@
|
|||||||
|
#include "game/motion.h"
|
||||||
|
#include "game/planner.h"
|
||||||
|
#include "include/SDL_events.h"
|
||||||
|
#include "gfx/gfx.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
// this fixes the magic windows bugs
|
||||||
|
#define SDL_main main
|
||||||
|
|
||||||
|
#define EGRESS() do { \
|
||||||
|
printf("what the fuck\n"); \
|
||||||
|
exit(-1); \
|
||||||
|
} while(0)
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
char buf[100];
|
||||||
|
scanf_s("%s", buf);
|
||||||
|
|
||||||
|
char team = buf[0];
|
||||||
|
char spawn = buf[1];
|
||||||
|
|
||||||
|
StartPos start;
|
||||||
|
if (team == 'r') {
|
||||||
|
if (spawn == '1') start = RED_ONE; else
|
||||||
|
if (spawn == '2') start = RED_TWO; else
|
||||||
|
if (spawn == '3') start = RED_THREE;
|
||||||
|
|
||||||
|
else EGRESS();
|
||||||
|
} else if (team == 'b') {
|
||||||
|
if (spawn == '1') start = BLUE_ONE; else
|
||||||
|
if (spawn == '2') start = BLUE_TWO; else
|
||||||
|
if (spawn == '3') start = BLUE_THREE;
|
||||||
|
|
||||||
|
else EGRESS();
|
||||||
|
} else EGRESS();
|
||||||
|
|
||||||
|
init_gfx(argc > 1 && strcmp(argv[1], "deeeen") == 0);
|
||||||
|
init_planner(start);
|
||||||
|
|
||||||
|
SDL_Event e;
|
||||||
|
while (1) {
|
||||||
|
planner_loop(&e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user