Giter VIP home page Giter VIP logo

stuntcat's Introduction

pygame

AppVeyorBuild PyPiVersion PyPiLicense Python3 GithubCommits BlackFormatBadge

Pygame is a free and open-source cross-platform library for the development of multimedia applications like video games using Python. It uses the Simple DirectMedia Layer library and several other popular libraries to abstract the most common functions, making writing these programs a more intuitive task.

We need your help to make pygame the best it can be! New contributors are welcome.

Installation

Before installing pygame, you must check that Python is installed on your machine. To find out, open a command prompt (if you have Windows) or a terminal (if you have MacOS or Linux) and type this:

python --version

If a message such as "Python 3.8.10" appears, it means that Python is correctly installed. If an error message appears, it means that it is not installed yet. You must then go to the official website to download it.

Once Python is installed, you have to perform a final check: you have to see if pip is installed. Generally, pip is pre-installed with Python but we are never sure. Same as for Python, type the following command:

pip --version

If a message such as "pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)" appears, you are ready to install pygame! To install it, enter this command:

pip install pygame

Once pygame is installed, quickly test your library by entering the following command, which opens one of the many example games that comes pre-installed:

python3 -m pygame.examples.aliens

If this doesn’t work, the Getting Started section of the official website has more information for platform specific issues, such as adding python to your machine’s PATH settings

Help

If you are just getting started with pygame, you should be able to get started fairly quickly. Pygame comes with many tutorials and introductions. There is also full reference documentation for the entire library. Browse the documentation on the docs page. You can also browse the documentation locally by running python -m pygame.docs in your terminal. If the docs aren't found locally, it'll launch the online website instead.

The online documentation stays up to date with the development version of pygame on GitHub. This may be a bit newer than the version of pygame you are using. To upgrade to the latest full release, run pip install pygame --upgrade in your terminal.

Best of all, the examples directory has many playable small programs which can get you started playing with the code right away.

Features

Pygame is a powerful library for game development, offering a wide range of features to simplify your coding journey. Let's delve into what pygame has to offer:

Graphics - With pygame, creating dynamic and engaging graphics has never been easier. The library provides simple yet effective tools for 2D graphics and animation, including support for images, rectangles, and polygon shapes. Whether you're a seasoned game developer or just starting out, pygame has you covered.

Sound - Pygame also includes support for playing and manipulating sound and music, making it easy to add sound effects and background music to your games. With support for WAV, MP3, and OGG file formats, you have plenty of options to choose from.

Input - Pygame provides intuitive functions for handling keyboard, mouse, and joystick input, allowing you to quickly and easily implement player controls in your games. No more struggling with complex input code, pygame makes it simple.

Game Development - Lastly, pygame provides a comprehensive suite of tools and features specifically designed for game development. From collision detection to sprite management, pygame has everything you need to create exciting and engaging games. Whether you're building a platformer, puzzle game, or anything in between, pygame has you covered.

Building From Source

If you want to use features that are currently in development, or you want to contribute to pygame, you will need to build pygame locally from its source code, rather than pip installing it.

Installing from source is fairly automated. The most work will involve compiling and installing all the pygame dependencies. Once that is done, run the setup.py script which will attempt to auto-configure, build, and install pygame.

Much more information about installing and compiling is available on the Compilation wiki page.

Contribute

Credits

Thanks to everyone who has helped contribute to this library. Special thanks are also in order.

  • Marcus Von Appen: many changes, and fixes, 1.7.1+ freebsd maintainer
  • Lenard Lindstrom: the 1.8+ windows maintainer, many changes, and fixes
  • Brian Fisher for svn auto builder, bug tracker and many contributions
  • Rene Dudfield: many changes, and fixes, 1.7+ release manager/maintainer
  • Phil Hassey for his work on the pygame.org website
  • DR0ID for his work on the sprite module
  • Richard Goedeken for his smoothscale function
  • Ulf EkstrΓΆm for his pixel perfect collision detection code
  • Pete Shinners: original author
  • David Clark for filling the right-hand-man position
  • Ed Boraas and Francis Irving: Debian packages
  • Maxim Sobolev: FreeBSD packaging
  • Bob Ippolito: MacOS and OS X porting (much work!)
  • Jan Ekhol, Ray Kelm, and Peter Nicolai: putting up with early design ideas
  • Nat Pryce for starting our unit tests
  • Dan Richter for documentation work
  • TheCorruptor for his incredible logos and graphics
  • Nicholas Dudfield: many test improvements
  • Alex Folkner for pygame-ctypes

Thanks to those sending in patches and fixes: Niki Spahiev, Gordon Tyler, Nathaniel Pryce, Dave Wallace, John Popplewell, Michael Urman, Andrew Straw, Michael Hudson, Ole Martin Bjoerndalen, Herve Cauwelier, James Mazer, Lalo Martins, Timothy Stranex, Chad Lester, Matthias Spiller, Bo Jangeborg, Dmitry Borisov, Campbell Barton, Diego Essaya, Eyal Lotem, Regis Desgroppes, Emmanuel Hainry, Randy Kaelber Matthew L Daniel, Nirav Patel, Forrest Voight, Charlie Nolan, Frankie Robertson, John Krukoff, Lorenz Quack, Nick Irvine, Michael George, Saul Spatz, Thomas Ibbotson, Tom Rothamel, Evan Kroske, Cambell Barton.

And our bug hunters above and beyond: Angus, Guillaume Proux, Frank Raiser, Austin Henry, Kaweh Kazemi, Arturo Aldama, Mike Mulcheck, Michael Benfield, David Lau

There's many more folks out there who've submitted helpful ideas, kept this project going, and basically made our life easier. Thanks!

Many thank you's for people making documentation comments, and adding to the pygame.org wiki.

Also many thanks for people creating games and putting them on the pygame.org website for others to learn from and enjoy.

Lots of thanks to James Paige for hosting the pygame bugzilla.

Also a big thanks to Roger Dingledine and the crew at SEUL.ORG for our excellent hosting.

Dependencies

Pygame is obviously strongly dependent on SDL and Python. It also links to and embeds several other smaller libraries. The font module relies on SDL_ttf, which is dependent on freetype. The mixer (and mixer.music) modules depend on SDL_mixer. The image module depends on SDL_image, which also can use libjpeg and libpng. The transform module has an embedded version of SDL_rotozoom for its own rotozoom function. The surfarray module requires the Python NumPy package for its multidimensional numeric arrays. Dependency versions:

CPython >= 3.6 (Or use PyPy3)
SDL >= 2.0.8
SDL_mixer >= 2.0.0
SDL_image >= 2.0.2
SDL_ttf >= 2.0.11
SDL_gfx (Optional, vendored in)
NumPy >= 1.6.2 (Optional)

License

This library is distributed under GNU LGPL version 2.1, which can be found in the file docs/LGPL.txt. We reserve the right to place future versions of this library under a different license.

This basically means you can use pygame in any project you want, but if you make any changes or additions to pygame itself, those must be released with a compatible license (preferably submitted back to the pygame project). Closed source and commercial games are fine.

The programs in the examples subdirectory are in the public domain.

See docs/licenses for licenses of dependencies.

stuntcat's People

Contributors

aokiahishatsu avatar bitcraft avatar bottersnike avatar dirkk0 avatar illume avatar kleinesfilmroellchen avatar myremylar avatar nachomonkey avatar sammatzko avatar tjwhale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stuntcat's Issues

music sfx

There is music @dirkk0 we can ask to use: http://cloudriver.org/ict/ict.html
And also "Kuba | ThePolish" might be able to contribute music/sfx.

The files should go in:

  • suntcat/data/music/
  • suntcat/data/sounds

Music for these things.

  • intro
  • gameover
  • game play
  • ... (feel free to add music we need or descriptions of the music that would work)

Sfx for these things:

  • shark coming in from side of screen... (water, ominous music).
  • shark laser fire
  • elephant foot approaches.
  • elephant foot stamp.
  • wheel rolling.
  • jumping cat.
  • cat hit by lazer.
  • jumping cat lands.
  • eat sound, meow.
  • fish coming in.
  • fish landing on ground.
  • crowd/circus noises.
  • ... (feel free to add sounds we need or descriptions of the music that would work)

Crashes if you wait at the intro screen

Traceback (most recent call last):
  File "run_game.py", line 3, in <module>
    stuntcat.cli.main()
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\cli.py", line 57, in main
    main(sys.argv)
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\main.py", line 6, in main
    gamemain(args)
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\main.py", line 14, in gamemain
    Game().mainloop()
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\game.py", line 101, in mainloop
    self.render()
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\game.py", line 69, in render
    rects = ascene.render()
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\scenes\cat3.py", line 734, in render
    rects.extend(self.render_sprites())
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\scenes\cat3.py", line 725, in render_sprites
    self.allsprites.update()
  File "C:\Python37\lib\site-packages\pygame-1.9.5.dev0-py3.7-win-amd64.egg\pygame\sprite.py", line 463, in update
    s.update(*args)
  File "C:\Users\David\Documents\dev\pygame\stuntcat\stuntcat\scenes\cat3.py", line 446, in update
    location = self.cat_holder.cat_head_location
AttributeError: 'CatUniScene' object has no attribute 'cat_head_location'

cx_freeze to be run on mac, linux, windows

We have CI set up on travis and appveyor.

Publish to github releases.

python setup.py bdist_dmg
python setup.py bdist_msi

Could also do a source release to pypi.

graphics (images)

The images we need.

960x540 is the resolution of our window (half of 1920x1080).

  • Elephant feet that stomp down from the top of screen (with long legs made from just a filled/repeated graphic).
  • cat on unicycle (perhaps animated along with the cat)
  • shark with a lazer in its head
  • background image of a circus tent. There should be a platform at the front which the player rides on top of and some water for the shark in front.
  • small fish the cat has to catch. The fish fly in.

Cat on Unicycle Animations

For the cat on unicycle, we probably need these frames:

  • cat cycling 2-5 frames.
  • cat jumping 2-3 frames.
  • Note we can flip, rotate inside pygame to do the going left/right animation.

Sketches.

Some sketches of what the whole scene could look like...

alt text

alt text

Game so far.

alt text

Game plays too fast

I love the title of this game and it makes me want to play it, but the fish and the rings move so fast that the game feels pointless to play, like the only way I'll grab any fish is by luck.

Windows install via pip broken

C:\Users\MYUSER>pip install stuntcat
Defaulting to user installation because normal site-packages is not writeable
Collecting stuntcat
  Using cached stuntcat-0.2.0-py2.py3-none-any.whl (5.5 MB)
Collecting pygame
  Downloading pygame-2.1.2.tar.gz (10.1 MB)
     ---------------------------------------- 10.1/10.1 MB 11.0 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  Γ— python setup.py egg_info did not run successfully.
  β”‚ exit code: 1
  ╰─> [77 lines of output]


      WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
      Using WINDOWS configuration...

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\MYUSER\AppData\Local\Temp\pip-install-fxysd_q1\pygame_b0b863fdbe5e48b297cd8cfe7796f68d\setup.py", line 359, in <module>
          buildconfig.config.main(AUTO_CONFIG)
        File "C:\Users\MYUSER\AppData\Local\Temp\pip-install-fxysd_q1\pygame_b0b863fdbe5e48b297cd8cfe7796f68d\buildconfig\config.py", line 225, in main
          deps = CFG.main(**kwds)
                 ^^^^^^^^^^^^^^^^
        File "C:\Users\MYUSER\AppData\Local\Temp\pip-install-fxysd_q1\pygame_b0b863fdbe5e48b297cd8cfe7796f68d\buildconfig\config_win.py", line 511, in main
          return setup_prebuilt_sdl2(prebuilt_dir)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\MYUSER\AppData\Local\Temp\pip-install-fxysd_q1\pygame_b0b863fdbe5e48b297cd8cfe7796f68d\buildconfig\config_win.py", line 471, in setup_prebuilt_sdl2
          DEPS.configure()
        File "C:\Users\MYUSER\AppData\Local\Temp\pip-install-fxysd_q1\pygame_b0b863fdbe5e48b297cd8cfe7796f68d\buildconfig\config_win.py", line 336, in configure
          from . import vstools
        File "C:\Users\MYUSER\AppData\Local\Temp\pip-install-fxysd_q1\pygame_b0b863fdbe5e48b297cd8cfe7796f68d\buildconfig\vstools.py", line 11, in <module>
          compiler.initialize()
        File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 403, in initialize
          vc_env = query_vcvarsall(VERSION, plat_spec)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 281, in query_vcvarsall
          raise DistutilsPlatformError("Unable to find vcvarsall.bat")
      distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
      Making dir :prebuilt_downloads:
      Downloading... https://www.libsdl.org/release/SDL2-devel-2.0.18-VC.zip ed561079ec622b0bab5a9e02976f5d540b0622da
      Unzipping :prebuilt_downloads\SDL2-devel-2.0.18-VC.zip:
      Downloading... https://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.5-VC.zip 137f86474691f4e12e76e07d58d5920c8d844d5b
      Unzipping :prebuilt_downloads\SDL2_image-devel-2.0.5-VC.zip:
      Downloading... https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-2.0.15-VC.zip 1436df41ebc47ac36e02ec9bda5699e80ff9bd27
      Unzipping :prebuilt_downloads\SDL2_ttf-devel-2.0.15-VC.zip:
      Downloading... https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.4-VC.zip 9097148f4529cf19f805ccd007618dec280f0ecc
      Unzipping :prebuilt_downloads\SDL2_mixer-devel-2.0.4-VC.zip:
      Downloading... https://www.pygame.org/ftp/jpegsr9d.zip ed10aa2b5a0fcfe74f8a6f7611aeb346b06a1f99
      Unzipping :prebuilt_downloads\jpegsr9d.zip:
      Downloading... https://pygame.org/ftp/prebuilt-x64-pygame-1.9.2-20150922.zip 3a5af3427b3aa13a0aaf5c4cb08daaed341613ed
      Unzipping :prebuilt_downloads\prebuilt-x64-pygame-1.9.2-20150922.zip:
      copying into .\prebuilt-x64
      Path for SDL: prebuilt-x64\SDL2-2.0.18
      ...Library directory for SDL: prebuilt-x64/SDL2-2.0.18/lib/x64
      ...Include directory for SDL: prebuilt-x64/SDL2-2.0.18/include
      Path for FONT: prebuilt-x64\SDL2_ttf-2.0.15
      ...Library directory for FONT: prebuilt-x64/SDL2_ttf-2.0.15/lib/x64
      ...Include directory for FONT: prebuilt-x64/SDL2_ttf-2.0.15/include
      Path for IMAGE: prebuilt-x64\SDL2_image-2.0.5
      ...Library directory for IMAGE: prebuilt-x64/SDL2_image-2.0.5/lib/x64
      ...Include directory for IMAGE: prebuilt-x64/SDL2_image-2.0.5/include
      Path for MIXER: prebuilt-x64\SDL2_mixer-2.0.4
      ...Library directory for MIXER: prebuilt-x64/SDL2_mixer-2.0.4/lib/x64
      ...Include directory for MIXER: prebuilt-x64/SDL2_mixer-2.0.4/include
      Path for PORTMIDI: prebuilt-x64
      ...Library directory for PORTMIDI: prebuilt-x64/lib
      ...Include directory for PORTMIDI: prebuilt-x64/include
      DLL for SDL2: prebuilt-x64/SDL2-2.0.18/lib/x64/SDL2.dll
      DLL for SDL2_ttf: prebuilt-x64/SDL2_ttf-2.0.15/lib/x64/SDL2_ttf.dll
      DLL for SDL2_image: prebuilt-x64/SDL2_image-2.0.5/lib/x64/SDL2_image.dll
      DLL for SDL2_mixer: prebuilt-x64/SDL2_mixer-2.0.4/lib/x64/SDL2_mixer.dll
      DLL for portmidi: prebuilt-x64/lib/portmidi.dll
      Path for FREETYPE not found.
      ...Found include dir but no library dir in prebuilt-x64.
      Path for PNG not found.
      ...Found include dir but no library dir in prebuilt-x64.
      Path for JPEG not found.
      ...Found include dir but no library dir in prebuilt-x64.
      DLL for freetype: prebuilt-x64/SDL2_ttf-2.0.15/lib/x64/libfreetype-6.dll

      ---
      For help with compilation see:
          https://www.pygame.org/wiki/CompileWindows
      To contribute to pygame development see:
          https://www.pygame.org/contribute.html
      ---

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Γ— Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

AttributeError: module 'pymunk' has no attribute 'inf

pygame 2.1.2 (SDL 2.0.18, Python 3.10.7)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "c:\Users\my\Desktop\Uygulamalar\Dinozor.py", line 11, in
dino.start_physics(stable=True , bounciness= 0)
File "C:\Users\my\AppData\Local\Programs\Python\Python310\lib\site-packages\play\play.py", line 718, in start_physics
self.physics = _Physics(
File "C:\Users\my\AppData\Local\Programs\Python\Python310\lib\site-packages\play\play.py", line 768, in init
self._make_pymunk()
File "C:\Users\my\AppData\Local\Programs\Python\Python310\lib\site-packages\play\play.py", line 779, in _make_pymunk
moment = _pymunk.inf
AttributeError: module 'pymunk' has no attribute 'inf

AttributeError: module 'pymunk' has no attribute 'inf'

Microsoft Windows [Version 10.0.19042.685]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\xeno>python -m stuntcat
C:\Program Files\Python38\python.exe: No module named stuntcat

C:\Users\xeno>python -V
Python 3.8.5

C:\Users\xeno>pip install stuntcat
Defaulting to user installation because normal site-packages is not writeable
Collecting stuntcat
  Downloading stuntcat-0.2.0-py2.py3-none-any.whl (5.5 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5.5 MB 819 kB/s
Collecting pytmx
  Downloading PyTMX-3.24-py3-none-any.whl (21 kB)
Collecting pyscroll
  Using cached pyscroll-2.19.2.tar.gz (17 kB)
Collecting pymunk>=5.4.2
  Downloading pymunk-6.0.0-cp38-cp38-win_amd64.whl (280 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 280 kB 1.6 MB/s
Collecting pygame
  Downloading pygame-2.0.1-cp38-cp38-win_amd64.whl (5.2 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5.2 MB 939 kB/s
Collecting thorpy
  Downloading thorpy-1.7-py2.py3-none-any.whl (422 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 422 kB 3.3 MB/s
Collecting cffi>1.14.0
  Downloading cffi-1.14.4-cp38-cp38-win_amd64.whl (179 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 179 kB 6.8 MB/s
Collecting pycparser
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 112 kB 2.2 MB/s
Using legacy 'setup.py install' for pyscroll, since package 'wheel' is not installed.
Installing collected packages: pytmx, pygame, pyscroll, pycparser, cffi, pymunk, thorpy, stuntcat
    Running setup.py install for pyscroll ... done
  WARNING: The script stuntcat.exe is installed in 'C:\Users\xeno\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed cffi-1.14.4 pycparser-2.20 pygame-2.0.1 pymunk-6.0.0 pyscroll-2.19.2 pytmx-3.24 stuntcat-0.2.0 thorpy-1.7
WARNING: You are using pip version 20.2.2; however, version 20.3.3 is available.
You should consider upgrading via the 'c:\program files\python38\python.exe -m pip install --upgrade pip' command.

C:\Users\xeno>python -m stuntcat
pygame 2.0.1 (SDL 2.0.14, Python 3.8.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Program Files\Python38\lib\runpy.py", line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Program Files\Python38\lib\runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "C:\Users\xeno\AppData\Roaming\Python\Python38\site-packages\stuntcat\__init__.py", line 6, in <module>
    from stuntcat import game
  File "C:\Users\xeno\AppData\Roaming\Python\Python38\site-packages\stuntcat\game.py", line 16, in <module>
    from stuntcat.scenes import Scene
  File "C:\Users\xeno\AppData\Roaming\Python\Python38\site-packages\stuntcat\scenes\__init__.py", line 11, in <module>
    from .platformer.platformer import PlatformerScene
  File "C:\Users\xeno\AppData\Roaming\Python\Python38\site-packages\stuntcat\scenes\platformer\platformer.py", line 19, in <module>
    from . import unicyclecat
  File "C:\Users\xeno\AppData\Roaming\Python\Python38\site-packages\stuntcat\scenes\platformer\unicyclecat.py", line 56, in <module>
    def make_body(rect, moment=pymunk.inf):
AttributeError: module 'pymunk' has no attribute 'inf'

Tried install on GhostBSD

xeno@xeno-ghostbsd-pc /u/h/x/Desktop [1]> sudo pip install stuntcat
Collecting stuntcat
  Downloading stuntcat-0.2.4-py2.py3-none-any.whl.metadata (5.7 kB)
Collecting pygame (from stuntcat)
  Downloading pygame-2.5.2.tar.gz (15.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 28.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  Γ— Getting requirements to build wheel did not run successfully.
  β”‚ exit code: 1
  ╰─> [43 lines of output]
      Skipping Cython compilation
      
      
      WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
      Using UNIX configuration...
      
      dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation)
      /bin/sh: sdl2-config: not found
      /bin/sh: sdl2-config: not found
      /bin/sh: sdl2-config: not found
      
      Hunting dependencies...
      
      ---
      For help with compilation see:
          https://www.pygame.org/wiki/Compilation
      To contribute to pygame development see:
          https://www.pygame.org/contribute.html
      ---
      
      Traceback (most recent call last):
        File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-qf43r5xh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-qf43r5xh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-qf43r5xh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 480, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-qf43r5xh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 409, in <module>
        File "/tmp/pip-install-ah6kqbra/pygame_89e285dfb7b14cbaafc1365acce75e4f/buildconfig/config.py", line 231, in main
          deps = CFG.main(**kwds, auto_config=auto)
        File "/tmp/pip-install-ah6kqbra/pygame_89e285dfb7b14cbaafc1365acce75e4f/buildconfig/config_unix.py", line 218, in main
          DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),
        File "/tmp/pip-install-ah6kqbra/pygame_89e285dfb7b14cbaafc1365acce75e4f/buildconfig/config_unix.py", line 43, in __init__
          self.ver = config[0].strip()
      IndexError: list index out of range
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Γ— Getting requirements to build wheel did not run successfully.
β”‚ exit code: 1
╰─> See above for output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.