Pythons on Mars RPG

To practice computer science and increase my development skills, I’m going to be creating a text-based Role Playing Game. It’s going to be created using Python, and can be found on Gitlab & Github. The Expert Goggles repo is my practice games and apps.

pythons of mars infographic 2019

What is Pythons of Mars?

I’ve been interested in creating games for a while. Last year, I created a game called Haunted. It was a text-based role-playing game that was developed with Python 3. While I didn’t finish it, it showed me what I could do.

I had been skeptical on how cool a text-based game could be. And yes, they aren’t something like Eve online, or SWTOR, but they are definitely something that, if developed well, can be just as fun and interesting - A Dark Room is a good example.

Pythons of Mars is another text-based game where you are a Mars Rover and you’ve got 2 missions:

  • Find life
  • Return home There are plenty of cool mini-games, and it’s looking really good.

It will be part of Stellarios.

Source Code (May 2019)

The source code can be found here import time print("You find yourself in some sort of container that is rapidly falling") time.sleep(2) print("Suddenly the bottom of your container pops out with a bang, but you still can't see anything") time.sleep(2) start = input("A message pops up in front of you. Some kind of question box. It says ARE YOU READY TO PLAY?") if start == 'yes': print("Welcome!") # loading screen like star wars crawl time.sleep(3) print("You feel a vibration go through your joints as your capsule hits the surface.") time.sleep(3) print("A whooshing sound resonates and you hear something deflate. But you don't hear it through your ears. Electric signals trickle meaning from the sound waves into your brain.") time.sleep(3) print("The outsides of the capsule detract and you hear a rush of air. You still can't see anything.") time.sleep(5) print("You feel your head rising. Your long neck rises and suddenly you see the landscape in front of you") time.sleep(4) print("You're on Mars. It's a desolate wasteland") time.sleep(1) softwareupdate = input("You see a message pop up, reminding you that you have a software update pending. This update is required for you to be able to drive around. Do you want to download it?") if softwareupdate == 'yes': print("Downloading...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(3) print("Update downloaded") time.sleep(2) firstdirection = input("You feel your treads expanding with air as your body rises. Would you like to drive outside?") if firstdirection == 'yes': print("CPU: Turning on treads") time.sleep(2) print("CPU: Configuring treads. 1/10 processes completed") time.sleep(0.2) print("Configuring treads. 2/10 processes completed") time.sleep(0.2) print("Configuring treads. 3/10 processes completed") time.sleep(0.2) print("Configuring treads. 4/10 processes completed") time.sleep(0.2) print("Configuring treads. 5/10 processes completed") time.sleep(0.2) print("Configuring treads. 6/10 processes completed") time.sleep(0.2) print("Configuring treads. 7/10 processes completed") time.sleep(0.2) print("Configuring treads. 8/10 processes completed") time.sleep(0.2) print("Configuring treads. 9/10 processes completed") time.sleep(0.2) print("Configuring treads. 10/10 processes completed") time.sleep(0.5) print("CPU: Treads configured") time.sleep(1) print("...") time.sleep(2) print("CPU: Ready to drive...") time.sleep(2) print("CPU: Driving to specified location") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(3) print("CPU: Arrived at destination") print("You are outside") time.sleep(2) print("A large red desert is the only thing you can see.") if softwareupdate == 'no': areyousure = input("Are you sure? The game will end if you do not update this software") if areyousure == 'yes': print("Game Over") if areyousure == 'no': print("Downloading...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(0.1) print("...") time.sleep(2) print("Update downloaded") if start == no: print("Goodbye!")

Gitlab

Technical Discussion


© 2015-21 Signal-K. All rights reserved.

Powered by Hydejack v8.5.1