diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5706042 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +BSD 2-Clause License + +Copyright (c) 2024, Love Billenius + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/src/Game.cpp b/src/Game.cpp index 44ac002..3ec715b 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include "Game.h" Game::Game(SDL_Point screenSize) : SdlWrapper("Pong", screenSize, 60), diff --git a/src/Game.h b/src/Game.h index 241507f..e87f6a1 100644 --- a/src/Game.h +++ b/src/Game.h @@ -1,6 +1,4 @@ -// -// Created by love on 2024-01-18. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma diff --git a/src/SdlWrapper.cpp b/src/SdlWrapper.cpp index 79b04f5..5d7e166 100644 --- a/src/SdlWrapper.cpp +++ b/src/SdlWrapper.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: BSD-2-Clause #include "SdlWrapper.h" diff --git a/src/SdlWrapper.h b/src/SdlWrapper.h index d6ba790..af8aedb 100644 --- a/src/SdlWrapper.h +++ b/src/SdlWrapper.h @@ -1,6 +1,4 @@ -// -// Created by love on 2024-01-18. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma diff --git a/src/Vec2d/Bump.h b/src/Vec2d/Bump.h index a7346a3..2be4c5d 100644 --- a/src/Vec2d/Bump.h +++ b/src/Vec2d/Bump.h @@ -1,6 +1,4 @@ -// -// Created by love on 2024-01-19. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma once diff --git a/src/Vec2d/Vec2d.cpp b/src/Vec2d/Vec2d.cpp index b3f2299..9e67577 100644 --- a/src/Vec2d/Vec2d.cpp +++ b/src/Vec2d/Vec2d.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include "Vec2d.h" Vec2d::Vec2d(float_t hypotenuse) : hypotenuse(hypotenuse) { diff --git a/src/Vec2d/Vec2d.h b/src/Vec2d/Vec2d.h index 07fe395..c437212 100644 --- a/src/Vec2d/Vec2d.h +++ b/src/Vec2d/Vec2d.h @@ -1,6 +1,4 @@ -// -// Created by love on 2024-01-19. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma once diff --git a/src/VisibleObjects/Ball.cpp b/src/VisibleObjects/Ball.cpp index 9a5d8b3..c327a6e 100644 --- a/src/VisibleObjects/Ball.cpp +++ b/src/VisibleObjects/Ball.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include "Ball.h" diff --git a/src/VisibleObjects/Ball.h b/src/VisibleObjects/Ball.h index 44b50d3..50047e3 100644 --- a/src/VisibleObjects/Ball.h +++ b/src/VisibleObjects/Ball.h @@ -1,6 +1,5 @@ -// -// Created by love on 2024-01-18. -// +// SPDX-License-Identifier: BSD-2-Clause + #pragma once #include "../Vec2d/Vec2d.h" diff --git a/src/VisibleObjects/PlayerPaddle.cpp b/src/VisibleObjects/PlayerPaddle.cpp index fcf6ed3..89f5246 100644 --- a/src/VisibleObjects/PlayerPaddle.cpp +++ b/src/VisibleObjects/PlayerPaddle.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include "PlayerPaddle.h" diff --git a/src/VisibleObjects/PlayerPaddle.h b/src/VisibleObjects/PlayerPaddle.h index e65ad85..9098d0d 100644 --- a/src/VisibleObjects/PlayerPaddle.h +++ b/src/VisibleObjects/PlayerPaddle.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #pragma once #include diff --git a/src/VisibleObjects/Side.h b/src/VisibleObjects/Side.h index eb4aa36..df50940 100644 --- a/src/VisibleObjects/Side.h +++ b/src/VisibleObjects/Side.h @@ -1,6 +1,4 @@ -// -// Created by love on 2024-01-19. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma once diff --git a/src/defaultfont.cpp b/src/defaultfont.cpp index 309486e..292e52b 100644 --- a/src/defaultfont.cpp +++ b/src/defaultfont.cpp @@ -1,6 +1,4 @@ -// -// Created by Love on 2024-01-29. -// +// SPDX-License-Identifier: BSD-2-Clause #if defined(__LINUX__) #include diff --git a/src/defaultfont.h b/src/defaultfont.h index a2a826a..a7fcbb8 100644 --- a/src/defaultfont.h +++ b/src/defaultfont.h @@ -1,6 +1,4 @@ -// -// Created by love on 2024-01-24. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma once diff --git a/src/main.cpp b/src/main.cpp index 07c0cf7..18022fa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include "Game.h" #include diff --git a/src/text/OptionScreen.cpp b/src/text/OptionScreen.cpp index 8e86793..66f9b27 100644 --- a/src/text/OptionScreen.cpp +++ b/src/text/OptionScreen.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include "OptionScreen.h" #include diff --git a/src/text/OptionScreen.h b/src/text/OptionScreen.h index 27d165d..5d9a270 100644 --- a/src/text/OptionScreen.h +++ b/src/text/OptionScreen.h @@ -1,6 +1,4 @@ -// -// Created by Love on 2024-01-29. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma once diff --git a/src/text/Score.cpp b/src/text/Score.cpp index ecb5cea..9e77504 100644 --- a/src/text/Score.cpp +++ b/src/text/Score.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include "Score.h" Score::Score(SDL_Point *screenSize, uint8_t max_score) : maxScore_(max_score), leftScore(0), rightScore(0), diff --git a/src/text/Score.h b/src/text/Score.h index 2ce2872..a07a30a 100644 --- a/src/text/Score.h +++ b/src/text/Score.h @@ -1,6 +1,5 @@ -// -// Created by Love on 2024-01-29. -// +// SPDX-License-Identifier: BSD-2-Clause + #pragma once diff --git a/src/text/ScrollOptionScreen.cpp b/src/text/ScrollOptionScreen.cpp index df390bf..9552ce3 100644 --- a/src/text/ScrollOptionScreen.cpp +++ b/src/text/ScrollOptionScreen.cpp @@ -1,6 +1,4 @@ -// -// Created by Love on 2024-01-29. -// +// SPDX-License-Identifier: BSD-2-Clause #include "ScrollOptionScreen.h" diff --git a/src/text/ScrollOptionScreen.h b/src/text/ScrollOptionScreen.h index ba7959f..045aef2 100644 --- a/src/text/ScrollOptionScreen.h +++ b/src/text/ScrollOptionScreen.h @@ -1,6 +1,4 @@ -// -// Created by Love on 2024-01-29. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma once diff --git a/src/text/TextScreen.cpp b/src/text/TextScreen.cpp index 5da13ee..3b67514 100644 --- a/src/text/TextScreen.cpp +++ b/src/text/TextScreen.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + #include #include #include diff --git a/src/text/TextScreen.h b/src/text/TextScreen.h index 041c710..71d8eee 100644 --- a/src/text/TextScreen.h +++ b/src/text/TextScreen.h @@ -1,6 +1,4 @@ -// -// Created by love on 2024-01-24. -// +// SPDX-License-Identifier: BSD-2-Clause #pragma once