From e6c3a278237137ed7317021d97e16693d21ad836 Mon Sep 17 00:00:00 2001 From: Mark B Date: Sat, 18 Sep 2021 11:22:16 -0400 Subject: [PATCH] added copyright and more game info --- Makefile | 2 +- README.md | 2 +- src/Copying.c | 14 ++++++++++++++ src/Copying.h | 3 +++ src/Main.c | 9 ++++++++- 5 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 src/Copying.c create mode 100644 src/Copying.h diff --git a/Makefile b/Makefile index da43ac8..0d4e600 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ #files to compile -OBJS = src/Main.c src/Controls.c src/Debug.c +OBJS = src/Main.c src/Controls.c src/Debug.c src/Copying.c #compiler to use diff --git a/README.md b/README.md index 44333f9..55be503 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A remake of the first game I made.

Sprites made my Jelly_poi.

Code and design by M-C-O-B.

-Make sure to read the LICENSE.md file +Make sure to read the LICENSE file # TO-DO diff --git a/src/Copying.c b/src/Copying.c new file mode 100644 index 0000000..b3a6b20 --- /dev/null +++ b/src/Copying.c @@ -0,0 +1,14 @@ +#include + + +void Func_License() +{ + // Outputs Copying info in the command line + printf + ( + "Tux Vs X Engine Copyright (C) 2021 Canneddonuts Team.\n" + "This program comes with ABSOLUTELY NO WARRANTY; \n" + "This is free software, and you are welcome to redistribute it\n" + "under certain conditions; for details read the LICENSE.\n" + ); +} diff --git a/src/Copying.h b/src/Copying.h new file mode 100644 index 0000000..633e427 --- /dev/null +++ b/src/Copying.h @@ -0,0 +1,3 @@ +#pragma once + +void Func_License(); diff --git a/src/Main.c b/src/Main.c index 1ac823b..728c71e 100644 --- a/src/Main.c +++ b/src/Main.c @@ -1,8 +1,10 @@ +#include #include "raylib.h" #include "Controls.h" #include "Debug.h" +#include "Copying.h" // Globles @@ -10,6 +12,8 @@ float EnemyPos_x = 482.0f, EnemyPos_y = 62.0f; float TuxPos_x = 32.0f, TuxPos_y = 62.0f; + + // Setup Code int Func_Setup() { @@ -39,10 +43,11 @@ int Func_MainGameLoop() BeginDrawing(); ClearBackground(RAYWHITE); - // Put the sprites on the screen + // Put the sprites and text on the screen DrawTexture(arctic, 50, 0, RAYWHITE); DrawTexture(tux, TuxPos_x, TuxPos_y, RAYWHITE); DrawTexture(enemy, EnemyPos_x, EnemyPos_y, RAYWHITE); + DrawText("Tux Vs X ENGINE PROTOTYPE please read the LINCENSE", 50, 18, 20, BLACK); EndDrawing(); } // Unload Textures @@ -59,5 +64,7 @@ int main() CloseWindow(); + Func_License(); + return 0; }