diff options
author | kdx <kikoodx@paranoici.org> | 2022-09-10 03:27:30 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2022-09-10 03:27:30 +0200 |
commit | 1e9864e62f699d5d720e67ecedbd1dc325db26fe (patch) | |
tree | ee54bb156f42932bd9a39878dbdc85517975a47a | |
parent | d6f17a30073a3a1f3f18f4dd00e0094fb2890118 (diff) | |
download | lzr-1e9864e62f699d5d720e67ecedbd1dc325db26fe.tar.gz |
LICENSE
-rw-r--r-- | LICENSE | 19 | ||||
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | lzr.c | 23 | ||||
-rw-r--r-- | lzr.h | 23 |
4 files changed, 81 insertions, 0 deletions
@@ -0,0 +1,19 @@ +Copyright (c) 2022 kdx + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..9b60b12 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# LZR +Simple C game framework based on SDL2. +LZR is meant to be used in my own games as a base, +while staying simple, flexible and easy to grasp at the core. + +## dependencies +LZR depends on SDL2, SDL2_gfx and [libdx](https://git.sr.ht/~kikoodx/libdx). + +## usage +Drop lzr.c and lzr.h in a project, add flags for the dependencies. + +Initialize LZR with `LZR_Init()`, quit and cleanup with `LZR_Quit()`. +Header is self documented, see `lzr.h`. + +## license +LZR is under the MIT license, see LICENSE for details. @@ -1,3 +1,4 @@ +/* Licensing information can be found at the end of the file. */ #include "lzr.h" #include <SDL2/SDL.h> #include <SDL2/SDL2_gfxPrimitives.h> @@ -541,3 +542,25 @@ int LZR_DrawTile(int id, int tile, int x, int y) } return 0; } + +/* +** Copyright (c) 2022 kdx +** +** Permission is hereby granted, free of charge, to any person obtaining a copy +** of this software and associated documentation files (the "Software"), to +** deal in the Software without restriction, including without limitation the +** rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +** sell copies of the Software, and to permit persons to whom the Software is +** furnished to do so, subject to the following conditions: +** +** The above copyright notice and this permission notice shall be included in +** all copies or substantial portions of the Software. +** +** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +** FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +** IN THE SOFTWARE. +*/ @@ -1,3 +1,4 @@ +/* Licensing informations can be found at the end of the file. */ #ifndef LZR_H_ #define LZR_H_ #include <stdbool.h> @@ -62,3 +63,25 @@ int LZR_DrawImageEx(int id, int x, int y, LZR_ImageDrawSettings stg); int LZR_DrawTile(int id, int tile, int x, int y); #endif + +/* +** Copyright (c) 2022 kdx +** +** Permission is hereby granted, free of charge, to any person obtaining a copy +** of this software and associated documentation files (the "Software"), to +** deal in the Software without restriction, including without limitation the +** rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +** sell copies of the Software, and to permit persons to whom the Software is +** furnished to do so, subject to the following conditions: +** +** The above copyright notice and this permission notice shall be included in +** all copies or substantial portions of the Software. +** +** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +** FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +** IN THE SOFTWARE. +*/ |