فهرست منبع

License texts added

Zero! Studio 1 سال پیش
والد
کامیت
61dacc24ef

+ 20 - 0
jogai/__init__.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import pygame
 
 from jogai import settings

+ 20 - 0
jogai/_globals.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import pygame
 
 from jogai import settings

+ 21 - 0
jogai/character.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import os
 from time import sleep
 from typing import Type
@@ -774,6 +794,7 @@ class Character(pygame.sprite.Sprite):
 
         Parameters:
             key: Optional key to perform the action
+            delay: Delay between key repeats to show and hide inventory
 
         Examples:
             >>> protagonist = Character('protagonist.png')

+ 20 - 1
jogai/exceptions.py

@@ -1,4 +1,23 @@
-# Temporary import
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 from jogai.translations import gettext as _
 
 

+ 20 - 0
jogai/group.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 from random import randint
 from typing import Type
 

+ 20 - 0
jogai/logger.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import logging
 
 logger = logging.getLogger('jogai')

+ 20 - 0
jogai/scene.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import os
 from typing import Tuple
 

+ 20 - 4
jogai/translations.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import gettext as gettext_module
 import os
 import sys
@@ -20,10 +40,6 @@ def to_locale(language):
     lang, _, country = language.lower().partition('-')
     if not country:
         return language[:3].lower() + language[3:]
-    # A language with > 2 characters after the dash only has its first
-    # character after the dash capitalized; e.g. sr-latn becomes sr_Latn.
-    # A language with 2 characters after the dash has both characters
-    # capitalized; e.g. en-us becomes en_US.
     country, _, tail = country.partition('-')
     country = country.title() if len(country) > 2 else country.upper()
     if tail:

+ 20 - 0
jogai/utils.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import gettext as gettext_module
 import os
 import sys

+ 20 - 0
jogai/videogame.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import builtins
 import os
 import time

+ 20 - 0
jogai/widgets.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 from os.path import join
 
 import pygame

+ 20 - 4
scripts/basics.py

@@ -1,13 +1,29 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 from jogai import *
 from jogai.utils import _get_keys, eval_key
 
 
 def test_example01():
     prepare('02.yaml')
-    sq = StairsGroup(brick, 5)
-    add_group(sq)
 
     while is_running():
         update()
-        if protagonist.touch(secondary):
-            print('a')

+ 20 - 0
tests/conftest.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 from pytest import fixture
 
 from jogai import videogame as vg

+ 20 - 0
tests/test_character.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import pygame
 import pytest
 

+ 20 - 0
tests/test_group.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import pytest
 
 from jogai import *

+ 20 - 0
tests/test_scene.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import os
 
 import pytest

+ 19 - 0
tests/test_translations.py

@@ -0,0 +1,19 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal

+ 20 - 0
tests/test_utils.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import pytest
 from pytest import mark
 

+ 20 - 0
tests/test_videogame.py

@@ -1,3 +1,23 @@
+# jogai - Python Game Library
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+# Ramón Palleiro Rodríguez
+# Zero! Factorial Studio
+# info@zero.gal
+
 import pygame
 import pytest
 from pytest import fixture, mark