Metadata-Version: 2.1
Name: pylcanim
Version: 0.0.7
Summary: A simple library for loading animations made with SpriteFactory
Home-page: https://github.com/Lioncat2002/pylcanim
Author: lioncat2002
Author-email: gamedevcorp2002@gmail.com
License: UNKNOWN
Description: # pylcanim
        
        <br>pylcanim is a simple library for playing animations made with sprite factory</br>
        <br>(https://github.com/craftworkgames/SpriteFactory)</br>
        
        ## Installation of pylcanim library
        <br>To install from pypi with pip</br>
        ```
        pip install pylcanim
        ```
        ## Downloading SpriteFactory
        
        You can directly download the executable(note: At this point this is windows only)
        From: https://craftworkgames.itch.io/sprite-factory
        Or build it yourself
        From: https://github.com/craftworkgames/SpriteFactory
        
        ## Using SpriteFactory
        
        You can see this video https://youtu.be/mSakKpmBjrg (time stamp in description)
        
        
        ## Using the library
        
        import the pylcanim into your project with
        
        ```py
        from pylcanim import pylcanim
        ```
        Then initialize the library with
        ```py
        pylcanim.init('Path/To/Your/SpriteFactoryFile.sf')
        
        ```
        
        In your main loop write
        ```py
        image=pylcanim.lcAnim(fpscount,row)
        ```
        Where 
        ```
        fpscount is an integer which determines how fast your animation should run(0 is fastest and becomes slower increasingly)
        ```
        and
        ```
        row is the row number in which your sprite is situated(default=0 for single line spritesheets)
        ```
        ## An entire Example
        
        ```py
        import pygame
        from pylcanim import pylcanim as p
        
        (width,height)=(300,200)
        clock=pygame.time.Clock()
        screen=pygame.display.set_mode((width,height))
        pygame.display.flip()
        running=True
        p.init('run.sf')
        while running:
            image =p.lcAnim(3,0)
            for event in pygame.event.get():
                if event.type==pygame.QUIT:
        
                    running=False
            screen.fill((255, 255, 255))
            screen.blit(image, (0, 50))
            pygame.display.update()
        
            clock.tick(60)
        pygame.quit()
        
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
