pyscroll | make scrolling games with animated maps in pygame | Game Engine library

 by   bitcraft Python Version: 2.31 License: LGPL-3.0

kandi X-RAY | pyscroll Summary

kandi X-RAY | pyscroll Summary

pyscroll is a Python library typically used in Gaming, Game Engine applications. pyscroll has no bugs, it has no vulnerabilities, it has build file available, it has a Weak Copyleft License and it has low support. You can install using 'pip install pyscroll' or download it from GitHub, PyPI.

pyscroll is a generic module for making a fast scrolling image with pygame. It uses a lot of magic to get great framerates out of pygame. It only exists to draw a map. It doesn’t load images or data, so you can use your own custom data structures, tile storage, ect. pyscroll is compatible with pytmx (so you can use your Tiled maps. It also has out-of-the-box support for pygame sprites.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pyscroll has a low active ecosystem.
              It has 153 star(s) with 23 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 38 have been closed. On average issues are closed in 153 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of pyscroll is 2.31

            kandi-Quality Quality

              pyscroll has 0 bugs and 0 code smells.

            kandi-Security Security

              pyscroll has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              pyscroll code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              pyscroll is licensed under the LGPL-3.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              pyscroll releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              pyscroll saves you 1192 person hours of effort in developing the same functionality from scratch.
              It has 2687 lines of code, 94 functions and 29 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pyscroll and discovered the below as its top functions. This is intended to give you an instant insight into pyscroll implemented functionality, and help decide if they suit your requirements.
            • Center the view on the screen
            • Queue edge tiles
            • Flit the tile queue
            • Convert a vector2 Vector2 to iso coordinates
            • Render the map
            • Process the animation queue
            • Advance the animation
            • Context manager to clip a surface
            • Create buffers
            • Convert images from parent image to parent image
            • Yield tile images from a rectangle
            • Return the image at the specified location
            • Return the tile image corresponding to the given coordinates
            • Get tile images from a rectangle
            • Run the game
            • Handle keyboard input event
            • Draws the surface
            • Draw the text overlays
            • Run the map
            • Translates a list of points
            • Translate a point
            • Returns the center of the view
            • Zoom zoom level
            • Return the tile image associated with the given coordinates
            Get all kandi verified functions for this library.

            pyscroll Key Features

            No Key Features are available at this moment for pyscroll.

            pyscroll Examples and Code Snippets

            Pygame : image.convert_alpha() won't work
            Pythondot img1Lines of Code : 13dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            self.image = pygame.Surface([12, 19]).convert_alpha()
            
            self.image = pygame.Surface([12, 19], pygame.SRCALPHA)
            
            class Player(pygame.sprite.Sprite):
                def __init__(self, x, y):
                    super(
            Sprite moving faster left than right pygame
            Pythondot img2Lines of Code : 33dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            self._position[0] = self.rect.topleft[0]
            self._position[1] = self.rect.topleft[1]
            
            >>> pos = 10
            >>> rect = pygame.Rect(10, 0, 5, 5)
            >>> pos -= 1.4  # Move left.
            >>> rect.x = pos
            &

            Community Discussions

            Trending Discussions on pyscroll

            QUESTION

            Sprite moving faster left than right pygame
            Asked 2018-Jan-01 at 06:51

            I think I'm having a rounding problem causing my sprite to move faster/jump farther while moving left.

            My sprites update method is calling move, which calls move_single_axis for each axis. Inside this I'm doing some collision detection where I rely on pygame's rect class to both detect the collision, and set the new position.

            I think this is the problem but I'm uncertain how to get around the rounding issue because pygame's rect uses integers under the hood.

            Here's the update code:

            ...

            ANSWER

            Answered 2018-Jan-01 at 06:51

            I ripped out everything except for the hero and the QuestGame class and could see the incorrect movement, so the problem was not caused by pyscroll (unless there are more issues).

            The reason for the movement problems is that you set the self._position in the update method of the hero to the topleft coords of the rect.

            Source https://stackoverflow.com/questions/48046883

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pyscroll

            You can install using 'pip install pyscroll' or download it from GitHub, PyPI.
            You can use pyscroll like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install pyscroll

          • CLONE
          • HTTPS

            https://github.com/bitcraft/pyscroll.git

          • CLI

            gh repo clone bitcraft/pyscroll

          • sshUrl

            git@github.com:bitcraft/pyscroll.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Game Engine Libraries

            godot

            by godotengine

            phaser

            by photonstorm

            libgdx

            by libgdx

            aseprite

            by aseprite

            Babylon.js

            by BabylonJS

            Try Top Libraries by bitcraft

            pytmx

            by bitcraftPython

            PyTMX

            by bitcraftPython

            mugen-tools

            by bitcraftPython

            pygoap

            by bitcraftPython

            tailor

            by bitcraftPython