mirror of
https://github.com/lov3b/Pong.git
synced 2025-01-18 12:40:12 +01:00
BSD-2-Clause
This commit is contained in:
parent
8ddcd197a3
commit
daf7a1e959
24
LICENSE
Normal file
24
LICENSE
Normal file
@ -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.
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
||||||
Game::Game(SDL_Point screenSize) : SdlWrapper("Pong", screenSize, 60),
|
Game::Game(SDL_Point screenSize) : SdlWrapper("Pong", screenSize, 60),
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-18.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma
|
#pragma
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "SdlWrapper.h"
|
#include "SdlWrapper.h"
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-18.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma
|
#pragma
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-19.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "Vec2d.h"
|
#include "Vec2d.h"
|
||||||
|
|
||||||
Vec2d::Vec2d(float_t hypotenuse) : hypotenuse(hypotenuse) {
|
Vec2d::Vec2d(float_t hypotenuse) : hypotenuse(hypotenuse) {
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-19.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "Ball.h"
|
#include "Ball.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-18.
|
|
||||||
//
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../Vec2d/Vec2d.h"
|
#include "../Vec2d/Vec2d.h"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "PlayerPaddle.h"
|
#include "PlayerPaddle.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL_rect.h>
|
#include <SDL_rect.h>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-19.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by Love on 2024-01-29.
|
|
||||||
//
|
|
||||||
|
|
||||||
#if defined(__LINUX__)
|
#if defined(__LINUX__)
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-24.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "OptionScreen.h"
|
#include "OptionScreen.h"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by Love on 2024-01-29.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include "Score.h"
|
#include "Score.h"
|
||||||
|
|
||||||
Score::Score(SDL_Point *screenSize, uint8_t max_score) : maxScore_(max_score), leftScore(0), rightScore(0),
|
Score::Score(SDL_Point *screenSize, uint8_t max_score) : maxScore_(max_score), leftScore(0), rightScore(0),
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by Love on 2024-01-29.
|
|
||||||
//
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by Love on 2024-01-29.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include "ScrollOptionScreen.h"
|
#include "ScrollOptionScreen.h"
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by Love on 2024-01-29.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
//
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
// Created by love on 2024-01-24.
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user