Sway
Ruby and Python are married.
- Dec 19, 2010
- 194
- 76
SSMC
I developed this in about twenty minutes and I may actually be serious on it in the future.
It's a text version of Minecraft in Python. You can pick a tree and collect a tree block, you can pick a grass and collect a grass block, you can walk ahead, etc.
I know what can be improved in the code (adding while loops, etc) but this is some shit I drew for you all.
You don't have to download a thing. If you have Python installed then just save this code as a .py and run it.
I do advise you to run it by using F5 or something, don't just run it through the console.
You can steal this and work on it, learn from it (it does have valuable stuff), or do whatever, I don't care.
v 0.1
I developed this in about twenty minutes and I may actually be serious on it in the future.
It's a text version of Minecraft in Python. You can pick a tree and collect a tree block, you can pick a grass and collect a grass block, you can walk ahead, etc.
I know what can be improved in the code (adding while loops, etc) but this is some shit I drew for you all.
You don't have to download a thing. If you have Python installed then just save this code as a .py and run it.
I do advise you to run it by using F5 or something, don't just run it through the console.
You can steal this and work on it, learn from it (it does have valuable stuff), or do whatever, I don't care.
v 0.1
Code:
import time
############## DEFINITIONS ################
def tree():
input('There is a tree right infront of you. Do you wish to pick it? [Y / N] ')
def grass():
input('There is grass below you. Do you wish to pick it? [Y / N] ')
def walk():
input('Do you want to walk ahead? [Y / N] ')
def walking():
input('You are now walking ahead. Do you wish to stop? [Y / N] ')
def pickedTree():
print('You now have 1 tree block!')
def pickedGrass():
print('You now have 1 grass block!')
################# INTRO #################
print(''' __
/ / /
_ _ ___ ___ ___ ___ ___ ( (___
| | )| | )|___)| | )| )|___ |
| / | | / |__ |__ | |__/|| |__ ''')
print('')
print('Welcome to a suckish and miniature version of Minecraft 0.0.0.1 by Mojang')
time.sleep(1)
print('SMMC version 0.1 by Sway programmed in Python')
time.sleep(1)
print('')
print('')
start = input('Want to start playing? [Y / N] ')
if start == 'Y':
tree()
if tree == 'Y' or 'y':
pickedTree()
walk()
if walk == 'Y' or 'y':
walking()
if walking == 'Y' or 'y':
pickedGrass()
grass()
if grass == 'Y' or 'y':
print('You now have 2 grass blocks!')
print('The game has ended. I\'ll fix it up later')
else:
walk()
else:
grass()
else:
walk()
if start == 'N':
exit = input('Enter "E" to exit: ')
if exit == 'E' or 'e':
print('Now click on X, lol')