How to use Issgraph

How To Use!

Install pygame

pip install pygame

Initializing

from issgraph import *
import sys
Utils.init()

window = Graphics(800, 600)

Main Loop

while True:
    window.show()
    window.paint(0, 0, 0)
    window.update()

Sprites

while True:
    window.show()
    window.paint(0, 0, 0)
    window.image(Img.img("z.png"), x_pos, y_pos)
    window.update()

Keyboard Input

while True:
    window.show()
    window.paint(0, 0, 0)
    window.image(Img.img("z.png"), x_pos, y_pos)
    if Utils.keys(Utils.KEYS["right"]):
        print("right")
    window.update()

Scaling

scaled_image = Img.scale(Img.img("file.png"), width, height)

Mouse

Mouse.get_pos()
Mouse.get_pressed()

Collision

Utils.collide(x1, y1, x2, y2, width, height)

Sound

sound = Utils.sound()
sound.music.load("n.wav")
sound.music.play()