Python Based Game Engine

Then the must-use-python PyWeek challenge 'Invites entrants to write a game in one week from scratch either as an individual or in a team. Is intended to be challenging and fun. Will hopefully increase the public body of python game tools, code and expertise. May 10, 2017  Not many people know but python is also quite good and easy language for game development. The best game engine that i recommend is Panda3D. The other engine widley used is PyGame(not recommended for high level games.) links - https://www.pygame.

Latest Version: 1.5.0

Pylash is a game engine for python. We develop pylash in python3 and the GUI engine of pylash is PyQt4. With pylash engine, you could create games in a simple way.

License: MIT License

We use MIT License, which is a kind of free and friendly license. Also of note, you should follow the license of PyQt4 as well, because pylash is based on it.

Why Pylash

Pylash is intended for creating games in a simple way. Some leading benefits making pylash outstand are listed below:

  1. Cross-platform. No matter which computer OS you choose, if python3 and PyQt4 are both available on it, pylash is available as well.
  2. Powerful. Pylash provides plenty of useful classes which almost come from ActionScript 3, a script language for flash. As we all know, flash is a good tool for creating games and animations. Therefore, Pylash takes in some of its advantages aiming to make creating game in pylash as easy as flash.
  3. Easy-to-get. It's really easy to install and configure pylash because you don't need to follow many complex steps if you want to install it. Just install python3 and PyQt4 in advance and all preparations are done. Without any configurations but only to download source files and copy them into your project directory, it's already available to use pylash in your project. (P.S. You may have trouble installing and configuring PyQt4. However, don't be worried, for there are many tutorials on the Internet to tell you how to get it done.)

Web Based Python Game Engines

With every plus there must be a minus, pylash remains improved and enhanced. Pylash is not designed for creating commercial products because it is not run by a team or a company. But pylash will be a good helper for those who are freshmen in developing game and who dream of creating their own games.

Get Pylash

With Git:

Input this command in Git Bash to clone pylash:

Without Git:

The url to download the engine is here:

Before Using Pylash

For pylash is based on Python3 and PyQt4, you need to install them in advance.

Python3 will be found here:

PyQt4 will be found here:

Support

If you find that certain bugs exist in pylash or that you have any questions or advice, please let us know: Corel draw download for windows 7.

My email:wangyuehao1999@gmail.com

My twitter:https://twitter.com/yuehaowang

Bugs can be submitted into Github Issues as well.

Demo Screenshots

  • Find Character
  • Get Fruits
  • Tower Defense

Get Started

Documentation

Photoshop art brushes free. Documentation comes soon..

Changelog for 1.5.0

  1. Added Sprite.hitTestObject method to test collision with other objects.
  2. Added Sprite.addShape method to add a shape to Sprite objects for testing collision.
  3. Added 'run.py', which is tool to run demo and examples. Try command python run.py examples.example_name to run an example while try command python run.py demo.demo_name to run a demo.
  4. Added more demo. Check them in 'demo/' directory.
Active3 years, 8 months ago
$begingroup$

@Annonomus Penguin, @QPaysTaxes, and I are building an engine for easy creation of text-based adventure games, like Zork. The engine is still in its early stages of development, and the following code is my prototype. Here's the library code.

cactus.py

Before I show the example file, here's a small 'tutorial' on how to create a small game.

  • First off, create a GameMap instance. This instance will hold MapPosition instances stored in an list.
  • Next, fill the list inside GameMap with MapPosition instances. A MapPosition instance contains the following data.
    • A name for the position. (Note, any MapPosition with the name 'start' will be the starting position for the game).
    • A description of the position.
    • Other possible MapPosition instances that the player can choose.
    • An optional function to be run.
  • Finally, an instance of MainGame is created with the following data.
    • The name of the game.
    • A description of the game.
    • The prompt to be used in the game.
    • The game map, and instance of GameMap.
  • Finally, after all that has been done, call GAME.play_game(), and play your game.

For those who also want a concrete example of a simple game, the following program demonstrates that.

Finally, for those who are interested, here's the Official Cactus Discussion Chat Room, and here's the link to the official project on Github.

Python Game Engine 3d

Community
Ethan Bierlein

Game Engines For Python

Ethan Bierlein
12.9k2 gold badges47 silver badges138 bronze badges
$endgroup$

1 Answer

$begingroup$

Does nothing: remove it.

lower or not lower: you must decide

I suggest you decide: either all input is lowercased or it is kept as the original, the following is not a clean solution (you can understand it is not clean because you spelled it out in the docs).

Best Python Game Engines

CaridorcCaridorc
23.1k5 gold badges38 silver badges122 bronze badges
$endgroup$

Not the answer you're looking for? Browse other questions tagged pythongamelibraryadventure-game or ask your own question.