diff --git a/fonts/1001fonts-fun-blob-eula.txt b/fonts/1001fonts-fun-blob-eula.txt new file mode 100644 index 0000000..2bd98e4 --- /dev/null +++ b/fonts/1001fonts-fun-blob-eula.txt @@ -0,0 +1,38 @@ +1001Fonts Free For Personal Use License (FFP) + +Preamble +In this license, 'Fun Blob' refers to the given .zip file, which may contain one or numerous fonts. These fonts can be of any type (.ttf, .otf, ...) and together they form a 'font family' or in short a 'typeface'. + +1. Copyright +Fun Blob is the intellectual property of its respective author, provided it is original, and is protected by copyright laws in many parts of the world. + +2. Personal Use +Fun Blob may be downloaded and used free of charge for personal use, as long as the usage is not racist or illegal. Personal use refers to all usage that does not generate financial income in a business manner, for instance: + + - personal scrapbooking for yourself + - recreational websites and blogs for friends and family + - prints such as flyers, posters, t-shirts for churches, charities, and non-profit organizations + +3. Commercial Use +Commercial use is not allowed without prior written permission from the respective author. Please contact the author to ask for commercial licensing. Commercial use refers to usage in a business environment, including: + + - business cards, logos, advertising, websites, mobile apps for companies + - t-shirts, books, apparel that will be sold for money + - flyers, posters for events that charge admission + - freelance graphic design work + - anything that will generate direct or indirect income + +4. Modification +Fun Blob may not be modified, altered, adapted or built upon without written permission by its respective author. This pertains all files within the downloadable font zip-file. + +5. Conversion +Fun Blob may be converted to other formats such as WOFF, SVG or EOT webfonts, as long as the font is not modified in any other way, such as changing names or altering individual glyphs. + +6. Distribution +While Fun Blob may freely be copied and passed along to other individuals for private use as its original downloadable zip-file, it may not be sold or published without written permission by its respective author. + +7. Embedding +Fun Blob may be embedded into an application such as a web- or mobile app, as long as the application is of personal use and does not distribute Fun Blob, such as offering it as a download. + +8. Disclaimer +Fun Blob is offered 'as is' without any warranty. 1001fonts.com and the respective author of Fun Blob shall not be liable for any damage derived from using this typeface. By using Fun Blob you agree to the terms of this license. \ No newline at end of file diff --git a/fonts/Chewy Noodles.otf b/fonts/Chewy Noodles.otf new file mode 100644 index 0000000..32a7d6a Binary files /dev/null and b/fonts/Chewy Noodles.otf differ diff --git a/fonts/FunBlob.otf b/fonts/FunBlob.otf new file mode 100644 index 0000000..2a5cd1a Binary files /dev/null and b/fonts/FunBlob.otf differ diff --git a/fonts/FunBlob.ttf b/fonts/FunBlob.ttf new file mode 100644 index 0000000..71ba6f5 Binary files /dev/null and b/fonts/FunBlob.ttf differ diff --git a/fonts/Ghostmeat Back.otf b/fonts/Ghostmeat Back.otf new file mode 100644 index 0000000..3fb3d7e Binary files /dev/null and b/fonts/Ghostmeat Back.otf differ diff --git a/fonts/Ghostmeat Front.otf b/fonts/Ghostmeat Front.otf new file mode 100644 index 0000000..dbd81ab Binary files /dev/null and b/fonts/Ghostmeat Front.otf differ diff --git a/fonts/Ghostmeat.otf b/fonts/Ghostmeat.otf new file mode 100644 index 0000000..a10d5e6 Binary files /dev/null and b/fonts/Ghostmeat.otf differ diff --git a/fonts/Read me!.txt b/fonts/Read me!.txt new file mode 100644 index 0000000..3abf3c2 --- /dev/null +++ b/fonts/Read me!.txt @@ -0,0 +1,34 @@ +This font is a DEMO version of the font and the characters in it contain the standard version. Read the description below for more details. + +By installing or using this font, you agree to the Product Use Agreement: + +1. This font is for PERSONAL USE. No commercial use allowed! +2. If you want to use it for commercial purposes, you can download it via the following link and you will get the full version and complete characters: + +https://teenagefoundry.com/product/teenage-popular/ + +3. If you don't mind, give me a cup of coffee to get even more excited! + +Donate click here + +paypal.me/teenagefoundry + +4. For inquiries, you can contact me at: teenagefoundry@gmail.com + +Thank you +Teenage Foundry + +INDONESIAN VERSION: + +1. Font demo ini hanya untuk penggunaan pribadi, tidak untuk komersial/yang menghasilkan profit +atau keuntungan dari hasil menggunakan font ini. Baik itu untuk Pribadi, Agensi Desain Grafis, Youtube, Tv, Percetakan, Perusahaan dll. +(APABILA ANDA MELANGGAR DAN MENGGUNAKAN TANPA MEMBELI LISENSI TERLEBIH DAHULU AKAN DIKENAKAN DENDA SEBESAR 10X LIPAT HARGA LISENSI SESUAI PENGGUNAAN). + +2. Jika ingin menggunakan secara komersial silahkan membeli lisensi melalui link di bawah ini: + +https://teenagefoundry.com/product/teenage-popular/ + +3. Untuk pertanyaan, Anda dapat menghubungi saya di: teenagefoundry@gmail.com + +Terimakasih +Teenage Foundry \ No newline at end of file diff --git a/fonts/Readme.txt b/fonts/Readme.txt new file mode 100644 index 0000000..5eb0408 --- /dev/null +++ b/fonts/Readme.txt @@ -0,0 +1,37 @@ +This font is a DEMO version of the font and the characters in it contain the standard version. Read the description below for more details. + +By installing or using this font, you agree to the Product Use Agreement: + +1. This font is for PERSONAL USE. No commercial use allowed! +2. If you want to use it for commercial purposes, you can download it via the following link and you will get the full version and complete characters: + +https://timurtype.com/product/chewy-noodles/ + +3. If you don't mind, give me a cup of coffee to get even more excited! + +Donate click here + +https://paypal.me/timurtypestd + +4. Please visit our store for more amazing fonts : + +https://timurtype.com + +5. For inquiries, you can contact me at: timurtype.studio@gmail.com + +Thank you +Timurtype Studio + +INDONESIAN VERSION: + +1. Font demo ini hanya untuk penggunaan pribadi, tidak untuk komersial/yang menghasilkan profit atau keuntungan dari hasil menggunakan font ini. Baik itu untuk Pribadi, Agensi Desain Grafis, Youtube, Tv, Percetakan, Perusahaan dll. +(APABILA ANDA MELANGGAR DAN MENGGUNAKAN TANPA MEMBELI LISENSI TERLEBIH DAHULU AKAN DIKENAKAN DENDA SEBESAR 10X LIPAT HARGA LISENSI SESUAI PENGGUNAAN). + +2. Jika ingin menggunakan secara komersial silahkan membeli lisensi melalui link di bawah ini: + +https://timurtype.com/product/chewy-noodles/ + +3. Untuk pertanyaan, Anda dapat menghubungi saya di: timurtype.studio@gmail.com + +Terimakasih +Timurtype Studio \ No newline at end of file diff --git a/fonts/Teenage Popular.otf b/fonts/Teenage Popular.otf new file mode 100644 index 0000000..04caf45 Binary files /dev/null and b/fonts/Teenage Popular.otf differ diff --git a/fonts/Teenage Popular.png b/fonts/Teenage Popular.png new file mode 100644 index 0000000..0fa4176 Binary files /dev/null and b/fonts/Teenage Popular.png differ diff --git a/fonts/license.txt b/fonts/license.txt new file mode 100644 index 0000000..08b9936 --- /dev/null +++ b/fonts/license.txt @@ -0,0 +1,5 @@ +The fonts included in this archive are released under a “no rights reserved” Creative Commons Zero license. Please do not ask permission to do anything with these fonts. Whatever you want to do with this font, the answer will be yes. Please read about the CC0 Public Domain license before contacting me. + +https://creativecommons.org/publicdomain/zero/1.0/ + +To the extent possible under law, Raymond Larabie has waived all copyright and related or neighboring rights to the fonts in this archive. This work is published from: Japan. \ No newline at end of file diff --git a/gfx/snake_banner.png b/gfx/snake_banner.png new file mode 100644 index 0000000..20b2a03 Binary files /dev/null and b/gfx/snake_banner.png differ diff --git a/gfx/snake_banner.webp b/gfx/snake_banner.webp new file mode 100644 index 0000000..4d0a5e3 Binary files /dev/null and b/gfx/snake_banner.webp differ diff --git a/gfx/snake_intro_1.webp b/gfx/snake_intro_1.webp new file mode 100644 index 0000000..eca050c Binary files /dev/null and b/gfx/snake_intro_1.webp differ diff --git a/gfx/snake_intro_2.webp b/gfx/snake_intro_2.webp new file mode 100644 index 0000000..a44bb4e Binary files /dev/null and b/gfx/snake_intro_2.webp differ diff --git a/main.py b/main.py index 074cd22..093d8d2 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,58 @@ import pygame +import time import controls from tilemap.playground import PlayGround -if __name__ == "__main__": - pg = PlayGround(geometry = (1, 3)) +class Snake: + def __init__(self): + self.running = True + self.numplayers: int = 1 + self.playground: PlayGround = None + self.controls = None + self.players: list = [] + self.windowed: bool = True + self.width: int = 800 + self.height: int =600 + self.icon = pygame.image.load("snake.webp") + pygame.display.set_icon(self.icon) + + self.set_windowed(self.width, self.height) + # self.set_fullscreen(self.width, self.height) + + self.mainloop() + + def mainloop(self): + while self.running: + self.screen.fill((100, 200, 200)) + pygame.display.flip() + time.sleep(5) + self.running = False + pygame.quit() + + def set_windowed(self, width:int, height: int) -> None: + self.screen = pygame.display.set_mode((width, height)) + self.windowed = True + pygame.display.set_caption("Snake") + + def set_fullscreen(self, width: int, height: int) -> None: + self.screen = pygame.display.set_mode((width, height), flags=pygame.FULLSCREEN) + self.windowed = False + + @property + def numplayers(self) -> int: + return self._numplayers + + @numplayers.setter + def numplayers(self, pl: int): + if pl <= 0 or pl >= 3: + raise ValueError("Numplayers must be a positive value of 1 or 2") + else: + self._numplayers = pl + +def main(): pygame.init() - pass \ No newline at end of file + snake = Snake() + +if __name__ == "__main__": + main() + \ No newline at end of file diff --git a/player/player.py b/player/player.py new file mode 100644 index 0000000..6a158db --- /dev/null +++ b/player/player.py @@ -0,0 +1,5 @@ +class Player: + def __init__(self): + self.controls = None + + \ No newline at end of file diff --git a/screens/gamescreen.py b/screens/gamescreen.py new file mode 100644 index 0000000..e69de29 diff --git a/screens/splitscreen.py b/screens/splitscreen.py new file mode 100644 index 0000000..e69de29 diff --git a/snake.webp b/snake.webp new file mode 100644 index 0000000..3e390fd Binary files /dev/null and b/snake.webp differ