Metadata-Version: 2.4
Name: pyscratch_lobotomy2012
Version: 1.2.3
Summary: A Scratch-like game engine built with Pygame
Author-email: Lobotomy2012 <luongnaman0906.amongus@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Lobotomy2012
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "PyScratch"), to deal
        in PyScratch without restriction, including without limitation the rights
        to use, copy the Pyscratch, and to permit persons to whom PyScratch is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of PyScratch.
        
        PYSCRATCH IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/Lobotomy2012/PyScratch
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pygame>=2.6.0
Dynamic: license-file

# PyScratch
Scratch but python?

PyScratch bridges the gap between Scratch and Python, maybe. This module implements all code blocks in scratch, but not includes extentions.

# Uses
install PyScratch
```cmd
pip install pyscratch_lobotomy2012
```

# Demo
```python
from pyscratch import pyscratch

pyscratch.init()

class Sprite1(pyscratch.Sprite):
    def __init__(self, screen):
        super().__init__(screen, (100, 100), "costume1.png", 15)

    def run(self):
        self.core.go_to(100, 100)
        self.core.say("Hello, PyScratch!")
        self.core.say(str(self.core.current_date("year")))
        costume = ["costume1.png", "costume2.png"]
        i = 0

        while self.core.running:
            self.core.change_costume(costume[int(i%2)])
            self.core.move(5)
            self.core.bounce_if_on_edge()

            i += 0.25
            yield

code = pyscratch.Code((Sprite1,))
pyscratch.run(code)
```
<img width="1003" height="789" alt="image" src="https://github.com/user-attachments/assets/2500bd2a-c988-4d12-8848-5919438c4e81" />
