Making with Code

Python Aracde Intro Lab #

In this lab you explore the Python Aracde framework through example games.

๐Ÿ“– You can find the offical documentation HERE.


[0] Setup #

You will be running a game from your terminal, so your terminal will need permission to monitor your input.

๐Ÿ’ป Go to Settings > Security & Privacy > Privacy. Scroll to Input Monitoring and add Terminal. Terminal to need to restart in order to save this preference.

๐ŸŒ Github Repo: github.com/Making-with-Code/lab_games

๐Ÿ’ป Enter the Poetry shell and install the requirements:
poetry shell
poetry install

This repo includes the following files:

  • game_platformer.py
  • game_bullets.py

[1] Simple Platformer Game #

๐Ÿ‘พ Play the simple platformer game! You can use the arrow keys to move around the level.

python game_platformer.py 

๐Ÿ’ป Experiment with the settings! A few things to try changing:

  • the physics settings at the top of the file
  • the keyboard mapping in on_key_press() and on_key_release()
  • the variables in pan_camera_to_user()
  • the background color
  • the player sprite image

[2] Simple Bullet Game #

๐Ÿ‘พ Play the simple platformer game! You can use the left, right, and up arrows to control the player and the bullets.

python game_bullets.py 

๐Ÿ’ป Experiment with the settings! A few things to try changing:

  • the bullet speed
  • the coin positions
  • the keyboard mapping in on_key_press() and on_key_release()
  • the background color or image
  • the bullet sprite image

[3] Deliverables #

โšกโœจ

Once you’ve explored both games, fill out this Google form.

  • Which game are you more interested in exploring?
  • Who would you like to work with in a group?