Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 998 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 998 Bytes

Python 🐍 ConGL 🔮

pip: pip install -U ConGL

Why?

This python package is intended for people who don't know C++ and just want to build a console program using python's simple syntax

Python ConGL containcs basically everything you need to create something cool using its API

Usage

Everything is same as C++ version, except few things:

  • Static eng2D::Layout methods collides and onCollision were renamed to collides_S and onCollision_S

Performance

Python ConGL is using precompiled binaries which means lack of any serious performance hits. Actually Python ConGL is just a wrapper for the C++ version.

Simple Example

from ConGL import *

screen = Screen()  
screen.toggleAutosize(True)

main = eng2D.Layout(screen)
rect = eng2D.shapes.Rectangle((30, 30))
main.addFigure(rect)

while True:
	# terminate when escape is pressed
	if keys.released(chr(0x1b)): 
		break
		
	main.draw(True)