Version 1.2
Newer releases of AppGameKit have a DrawText command and even though this project is built on an older version of the AppGameKit library, it seemed prudent to rename the draw_text method to print_value to eliminate any confusion. The name "print" is being avoid since "from appgamekit import *" would redefine the builtin print command.
The set_draw_text_color, set_draw_text_font, set_draw_text_size, and set_draw_text_spacing were also renamed to set_print_color, set_print_font, set_print_size, and set_print_spacing respectively making their names match the corresponding AppGameKit commands more directly.
An Application class has been added that handles the creation and destruction of the AppGameKit window. It is recommended that developers instantiate an Application object using a with block and place game code inside the with block. The create_window and destroy_window methods are still there, but using them is not recommended as they may become private methods in a later release.
The example have been updated to use this class.
Old code:
import appgamekit as agk try: create_window() while True: agk.print_value("Hello, World!") agk.sync() if agk.get_raw_key_pressed(27): break finally: destroy_window()
New code:
import appgamekit as agk with agk.Application(): while True: agk.print_value("Hello, World!") agk.sync() if agk.get_raw_key_pressed(27): break
Files
Get AppGameKit for Python
AppGameKit for Python
Create games using AppGameKit and Python!
Status | Released |
Category | Tool |
Author | Fascimania |
Tags | gamedev, Game engine, python |
More posts
- Version 2022.09.28Oct 27, 2022
- Version 2022.06.27Jul 21, 2022
- Version 2021.06.14Jun 21, 2021
- Version 2021.02.10 rev 1Mar 15, 2021
- Version 2021.02.10Mar 10, 2021
- Version 2020.11.16Dec 10, 2020
- Version 2020.04.30 rev 1Aug 03, 2020
- Version 2020.04.30May 08, 2020
- Version 2019.12.16 rev 1Feb 14, 2020
- Version 2019.12.16Jan 31, 2020
Leave a comment
Log in with itch.io to leave a comment.