python 3.x - Any tips on creating a Pygame Developer Console? -


i've been getting feet wet python , pygame, , after few bugs in basic game have been making, i've thought myself having sort of console can deal string input (from developer) handy.

here's example:

i notice player disappears after double jumping. so, in console create, type in:

>> report_bug("player disappears after double jumping") 

where report_bug(string) user-defined function following things:

report_bug(string):     # check if debug file exists; create new file if none exists     # append string file, along other info 

could point me in right direction? have create scratch, , if so, how go doing that? i've attempted modify source code from: http://www.pygame.org/project-pygame-console-287-.html, 9 years-old , made python 2.x, when i'm using python 3.4. appreciated.

i've managed 2.x pygameconsole version 0.7 working, stick that!

edit: attempt port pyconsole python 3.x , add more features newcomers can understand going on.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -