basic pygame engine
Project description
This game engine is based on pygame. Our goal is to make it easy for people, even those who don't know python or coding, to create games.
If you want to get started with this game engine by creating a sample game,
How to Download
First, you need to download Python. You can do this by going to the Python official website and downloading it according to your operating system.
After downloading, to check, you can write this code in the terminal or CMD:
python --version
If the result is Python 3.11.5 or higher, you are ready to download the game engine. You can do this by typing the following code in the terminal or CMD:
pip install ogzoengine
Download a code editor of your choice. Recommended code editors are:
- Visual Studio: It has powerful debugging and code completion features but can be challenging for beginners and takes up a lot of space. Visual Studio Code Download Page
- PyCharm: Specifically made for the Python language, it provides a fast and efficient coding experience but the full version is not free. PyCharm Download Page
- Sublime Text: It's fast and lightweight, offering quick performance, but the full version is paid and updates are not frequent. Sublime Text Download Page
- Atom: It has good auto-completion and provides GitHub assistance with integrated Git support, but it may cause high memory usage for some users. Atom Download Page
- Notepad++: It's simple and takes up less storage space, but it has a poor interface and lacks features like code completion. Notepad++ Download Page
Coding
import BS.engine as bs
screen1 = bs.Screen()
# Variables
width, height = 1200, 600
# Drawwing
circle1 = bs.Circle(200,200,25,[255,255,255])
line1 = bs.Line(200,300,100,150,[255,255,255],3)
squ1 = bs.Square(500,500,45,45,[255,255,255])
text1 = bs.Text(350,350,"Hello",None,20,(255,255,255))
saved = None
# listener function
def listener():
if bs.inputs(screen1.return_keys(),'a').return_key():
print("a clicked")
# drawwing function
def draw():
circle1.draw(screen1)
line1.draw(screen1)
squ1.draw(screen1)
text1.draw(screen1)
# While function
def whiles():
pass
# Using function
screen1.use_drawing(draw)
screen1.use_while(whiles)
screen1.use_listener(listener)
screen1.set_screen(width,height,"Engine test")
screen1.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ogzoengine-2.0.tar.gz.
File metadata
- Download URL: ogzoengine-2.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d240d656ac2e13accbeb814def15041a7361b46118331e8d3ff1d63c9432898
|
|
| MD5 |
c0f986af3a4bebaa0e5694cec8df3212
|
|
| BLAKE2b-256 |
67f969854e831af87e37f2dc2961b23556d28a1c42f77a2ee3344492f206a9a9
|
File details
Details for the file ogzoengine-2.0-py3-none-any.whl.
File metadata
- Download URL: ogzoengine-2.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
206def1390e3f6f3269afa096476795cefc6e5216e915b5bdc4beeb215320823
|
|
| MD5 |
8cf4f50ee74e4ac15fdd975fd832739d
|
|
| BLAKE2b-256 |
814e94cdf86b00e3bffb006c1de341ff2021a6f87fd77d0d42238dd44ab6cbf2
|