PyJ2D is a module designed with the intent to allow scripts coded in Python programming language and the Pygame module to run in the Java virtual machine (JVM). Python programs can run in the JVM using Jython, a Java-encoded Python interpreter that includes much of the standard library and can access the Java library. My projects are coded in Python and Pygame, and I hoped to be able to execute them online as an applet. However, since Pygame is a wrapper of the SDL multimedia library coded in C language, it cannot execute in the JVM. I wrote the PyJ2D module in Python code that essentially is a wrapper of several Java libraries including Java 2D graphics library, and modelled after the Pygame library to maintain Pygame statements. The following Java applet is a demo of Serpent Duel included in my Interphase Pack that is coded in Python/Pygame using the PyJ2D module:
Read More
-
Pages
-
Posts
- Biomorph Entity App
- Brownian Motion App
- Biomorph Evolve App
- Usage of Pyjsdl with Transcrypt
- Transcrypt Port of Pyjsdl
- Interphase: Cross-platform GUI Module
- Guide to Pyjs and Pyjsdl
- Pyjsdl Demo Apps
- Compile Apps with Pyjs and Pyjsdl
- Deploy JavaScript Application Using Pyjsdl
- Pyjsdl: Python-to-JavaScript Module
- Applet Deployment Using PyJ2D
- PyJ2D: Python-Java2D Applet
- Coding in Python
- Genetic Construct Program
Comments
- Jim on Pyjsdl Demo Apps
- Drew Ronsman on Pyjsdl Demo Apps
- Jim on Guide to Pyjs and Pyjsdl
- Will on Guide to Pyjs and Pyjsdl
- Jim on Guide to Pyjs and Pyjsdl
Links