Simple and fast 2D game engine based on pygame-ce and SDL2.
Project description
EN: Vertex2D is a 2D game engine built on pygame-ce and SDL2. It provides a simple and clean API for creating games — scenes, sprites, camera, input, text and UI elements out of the box. The engine handles all the boilerplate: window creation, rendering, input processing and scene management. Designed to be lightweight and easy to pick up, so a project can go from zero to a running game in minutes.
Install: pip install vertex2d Requires: pygame-ce >= 2.3.0, miniaudio >= 1.61
Quick Start: from Vertex import Build
vertex = Build("My Game", screen_size=(700, 700), size_window_standart=(700, 700), resize=True, ot_pos=False, SafeMode=True, logs=False, DeveLoperMode=False, vsync=True)
class MyGame: def init(self): self.api = vertex.GetFell() self.api.SetFPSValue(60) self.player = self.api.Square("Player", (255, 0, 0), 350, 350, 150, 150, 0, static=False, center=True)
def render(self):
self.api.NewCanvas((75, 75, 75, 255))
self.api.AllDraw()
self.api.ClockUse(stabilize_fps=True)
self.api.Draw()
def update(self):
dt = self.api.Get_DeltaTime()
self.api.Event( { "quit": self.api.End } )
self.api.UpdateButtonPressedHow()
self.player.MoveMent("w.a.s.d", 500 * dt)
""" or:
if self.api.ButtonPressed("left"): self.player.MoveX(-300 * dt)
if self.api.ButtonPressed("right"): self.player.MoveX(300 * dt)
if self.api.ButtonPressed("up"): self.player.MoveY(-300 * dt)
if self.api.ButtonPressed("down"): self.player.MoveY(300 * dt)
"""
self.api.AllUpdate()
def run(self):
self.update()
self.render()
vertex.NewScene("MyGame", MyGame) vertex.ChangeScene("MyGame") vertex.run() vertex.Destroy()
Telegram: @Teme20xx
RU: Vertex2D — это 2D игровой движок на базе pygame-ce и SDL2. Предоставляет простое и понятное API для создания игр — сцены, спрайты, камера, ввод, текст и UI элементы из коробки. Движок берёт на себя всю рутину: создание окна, рендеринг, обработку ввода и управление сценами. Создан лёгким и простым в освоении — от нуля до работающего проекта за считанные минуты.
Установка: pip install vertex2d Требования: pygame-ce >= 2.3.0, miniaudio>=1.61
Быстрый старт: from Vertex import Build
vertex = Build("My Game", screen_size=(700, 700), size_window_standart=(700, 700), resize=True, ot_pos=False, SafeMode=True, logs=False, DeveLoperMode=False, vsync=True)
class MyGame: def init(self): self.api = vertex.GetFell() self.api.SetFPSValue(60) self.player = self.api.Square("Player", (255, 0, 0), 350, 350, 150, 150, 0, static=False, center=True)
def render(self):
self.api.NewCanvas((75, 75, 75, 255))
self.api.AllDraw()
self.api.ClockUse(stabilize_fps=True)
self.api.Draw()
def update(self):
dt = self.api.Get_DeltaTime()
self.api.Event( { "quit": self.api.End } )
self.api.UpdateButtonPressedHow()
self.player.MoveMent("w.a.s.d", 500 * dt)
""" или:
if self.api.ButtonPressed("left"): self.player.MoveX(-300 * dt)
if self.api.ButtonPressed("right"): self.player.MoveX(300 * dt)
if self.api.ButtonPressed("up"): self.player.MoveY(-300 * dt)
if self.api.ButtonPressed("down"): self.player.MoveY(300 * dt)
"""
self.api.AllUpdate()
def run(self):
self.update()
self.render()
vertex.NewScene("MyGame", MyGame) vertex.ChangeScene("MyGame") vertex.run() vertex.Destroy()
Telegram: @Teme20xx
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 vertex2d-1.2.10.tar.gz.
File metadata
- Download URL: vertex2d-1.2.10.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e3720a2b905ab5d017e2781505bd4298e795c0a596930e170a162e9cbc6a4f3
|
|
| MD5 |
b110c4638d778aadaa39cb9fb7683836
|
|
| BLAKE2b-256 |
3f004efde8f1d500d83b8e2f746d4109f70c2a57d80685db34dcaa30ee108ed0
|
File details
Details for the file vertex2d-1.2.10-py3-none-any.whl.
File metadata
- Download URL: vertex2d-1.2.10-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b225fd504f287a0fdd5d4d9b961e3e9b01107db803b07c1debc967d001736b45
|
|
| MD5 |
07e43bab0c4338ed23a0795ffbadf351
|
|
| BLAKE2b-256 |
7bd771cb0094725601b8e08625b9353e86df69790b820ff6ef0453903ad58c1b
|