Skip to content
← Back to Community
🧨 YOUR LIFE: A MINING GAME🧨
Profile icon
aguy11

Are you annoyed by useless HTML games that crash your computer for no reason? Do you want to not burn your house down? Well, lucky you, you can now play a fun game all in the console!

Welcome to LIFE OF _______ <- You name here.

You are a professional miner looking to dominate the mining industry


I've been working on this game for the past week because I am slow speed and consider it done. The game is quite self explanatory, but there is one thing that I should explain.

  • To load the game you have to enter the name you saved under when you are asked for your name, and then press load.

Things coming up:

  • Powerups

Update: I have changed the code so you don’t have to press enter when you move.


Happy playing!

Voters
Profile icon
Notnatalia
Profile icon
CadenHansen-Cam
Profile icon
Mattyisawsome
Profile icon
Abd-el-Rahmane6
Profile icon
AsaphSwinney
Profile icon
Miguel-Angel340
Profile icon
LeroyS
Profile icon
gb82
Profile icon
LeoFoster2
Profile icon
IShowSpeeds
Comments
hotnewtop
Profile icon
russellfontana

how do i start

Profile icon
SomeBoyPlayz

@russellfontana after you press A , use WASD keys to mine

Profile icon
AndyZhuang

@SomeBoyPlayz I agree :)

Profile icon
Arabica

The game gets pretty bland after you get a good enough pickaxe, and when you mine there should be some danger. A more technical issue is when you mine, it flickers; this is because you wipe the whole screen. I'd suggest using something like a double buffer or only getting rid of parts that have been newly mined. This is an impressive game, overall good job.

Profile icon
JonathanLin16

how to mine?

Profile icon
aguy11

@JonathanLin16 When you enter your name select A and press enter to mine. (it says it right there)

Profile icon
JonathanLin16

@aguy11 as in moving to get stuff, but i found out

Profile icon
CHLOEmcgg
Profile icon
CHLOEmcgg
Profile icon
hassanlambart

@JonathanLin16 w to go up, a to go left, s to go down, d to go right

Profile icon
Leroy01010

THIS IS AWSOME!!

Profile icon
Yoplayer1py

Error:

Gem: 2 Gold: 9 Iron: 18 Overall Items: 29/30 Pickaxe Health: 25/80
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 # 0 0 0 0 0

Traceback (most recent call last): File "main.py", line 368, in <module> mine() File "main.py", line 289, in mine shop() File "main.py", line 190, in shop mine() File "main.py", line 286, in mine mining() File "main.py", line 263, in mining mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 4 more times] File "main.py", line 263, in mining mine() File "main.py", line 286, in mine mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() [Previous line repeated 4 more times] File "main.py", line 258, in mining mine() File "main.py", line 295, in mine mine() File "main.py", line 295, in mine mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 157, in shop shop() s File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() [Previous line repeated 19 more times] File "main.py", line 240, in mining mining() File "main.py", line 240, in mining mining() File "main.py", line 240, in mining mining() [Previous line repeated 28 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 127, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 286, in mine mining() File "main.py", line 222, in mining mining() File "main.py", line 258, in mining mine() File "main.py", line 295, in mine mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 21 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 20 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 172, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 19 more times] File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() [Previous line repeated 19 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 9 more times] File "main.py", line 263, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 289, in mine shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 18 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 30 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 360, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 263, in mining mine() File "main.py", line 286, in mine mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() [Previous line repeated 2 more times] File "main.py", line 240, in mining mining() File "main.py", line 240, in mining mining() File "main.py", line 240, in mining mining() [Previous line repeated 8 more times] File "main.py", line 222, in mining mining() File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 289, in mine shop() File "main.py", line 187, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 20 more times] File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() [Previous line repeated 16 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 21 more times] File "main.py", line 263, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 15 more times] File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() [Previous line repeated 16 more times] File "main.py", line 263, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 157, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 16 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 27 more times] File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() File "main.py", line 231, in mining mining() [Previous line repeated 21 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 172, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 14 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 17 more times] File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 16 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 360, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 14 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 17 more times] File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 18 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 187, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 16 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 21 more times] File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 15 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 17 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 127, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 16 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 31 more times] File "main.py", line 263, in mining mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 12 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 11 more times] File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 7 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 3 more times] File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 5 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 141, in shop shop() File "main.py", line 157, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 19 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 16 more times] File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 18 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 22 more times] File "main.py", line 258, in mining mine() File "main.py", line 289, in mine shop() File "main.py", line 141, in shop shop() File "main.py", line 190, in shop mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 295, in mine mine() File "main.py", line 315, in mine mine() File "main.py", line 286, in mine mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 13 more times] s File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() [Previous line repeated 13 more times] File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() File "main.py", line 213, in mining mining() [Previous line repeated 11 more times] File "main.py", line 222, in mining mining() File "main.py", line 222, in mining mining() File "main.py", line 200, in mining current = getkey.getkey() File "/opt/virtualenvs/python3/lib/python3.8/site-packages/getkey/platforms.py", line 39, in getkey for c in self.getchars(blocking): File "/opt/virtualenvs/python3/lib/python3.8/site-packages/getkey/platforms.py", line 126, in getchars with self.context(): File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__ return next(self.gen) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/getkey/platforms.py", line 116, in context self.tty.setcbreak(fd) File "/usr/lib/python3.8/tty.py", line 32, in setcbreak mode = tcgetattr(fd) RecursionError: maximum recursion depth exceeded while calling a Python object
Profile icon
Marc-020513
Profile icon
Yoplayer1py

@Marc-020513 ? too long error I didn't bother too read :/

Profile icon
BenjaminOBrien

@Yoplayer1py You've mined too many times, the game uses functions to do everything, therefor, if you mine too many times you'll hit a recursion error.

Profile icon
Chiroyce

@Yoplayer1py I think this game uses recursion for the game loop - and when you got too good at the game, it reached the Recursion limit and threw a RecursionError.

Profile icon
Yoplayer1py

@BenjaminOBrien ok tysm idk that there's a thing like recursion error.

Profile icon
Yoplayer1py

@Chiroyce tysm idk that there's a error like this.

Profile icon
ASTROIDE

@Yoplayer1py That's the longest stack trace I've ever seen

Profile icon
Yoplayer1py

@ASTROIDE Ya me too ... soo long

Profile icon
TomasVilas

no one cares @Yoplayer1py

Profile icon
Yoplayer1py

@TomasVilas eeee k I'mma ask u to stfu

Profile icon
Yoplayer1py

@17LambJ true why i she so negative?

Profile icon
CodingElf66

Bruh I'm he, and I either surpassed deo in categories or I passed him, and I saved the game, and WHAT? I'm still not #1

Profile icon
vinedarbunit
Profile icon
peterK99t

i DON'T

Profile icon
OlauPla

It seems like a nice game. But no offense but code is a disaster. It might be your first project so this is what you should change:

  1. Don't use GLOBALS! It is a very bad practice and it has a very easy solution
  2. Don't use while True it is also a very bad practice and i am tired and filled with despair of seeing people use it often.
  3. Maybe for better organization you could use multiple files where you could define your functions and called them in main

Overall very nice game and I encourage you to keep learning and to fix this stuff! Hava a nice day

Profile icon
Dunce

@OlauPla Why is while True considered bad practice? How else are you supposed to create a main loop?

Profile icon
OlauPla

@Dunce You use a boolean variable. It is like a while True but with a bool var you don't use break. Using break is the bad practice

Profile icon
Dunce

@OlauPla So you're saying

while condition: #do stuff

is fine, but

while True: if not condition: break #do stuff

is bad? If so I agree.

Profile icon
eli-2688

trying not to be rude but this game is kinda confusing how do you go left & right in mining and why is stuff so expensive (I hate expensive stuff)

Profile icon
SomeBoyPlayz

@eli-2688 WASD keys and idk why its expensive

Profile icon
eli-2688

@SomeBoyPlayz but i dont play minecraft im used to arrow keys not whatever that thing is called... you said it's wasd? which one's up? which one's down? which one's left? which one's right? ya ppl make things that are easy very difficult... idk why but life is just the way it is. its hard. not that having to breathe is easy... ya know what i mean

Profile icon
SomeBoyPlayz

@eli-2688 :////

W - forward A - left S - backward D - right

Profile icon
eli-2688

@SomeBoyPlayz ok... alright.

Profile icon
Tanner-Dietriek

@eli-2688 bruh everygame has wasd not only minecraft :////////////

Profile icon
eli-2688

@Tanner-Dietriek oh really i dont play any games but wii

Profile icon
CodingElf66

Heyyy... You're Profile Pic is Keefe from Keeper Of The Lost Cities! I read the series too!

Profile icon
FlaminHotValdez

@CodingElf66 its fitz

or...

catch my drift? ;)

Profile icon
CodingElf66

@FlaminHotValdez Ahh... Yes. Keefe has white blond hair.

its fitz

I hadn't read that series for 2 years now, so no wonder I'm dry on the characters, lol.

;)

Profile icon
SilentFoxy78

@CodingElf66 You guys read keeper of the lost cities :))))))))))?

Profile icon
SilentFoxy78

@CodingElf66 bruhhhh i don't think you've ever read it...

Profile icon
SilentFoxy78

@FlaminHotValdez Fitz is a golden boi

Profile icon
CodingElf66

@SilentFoxy78 If you catch my drift ;)

Yes.

Wink wink wink ;)

Profile icon
SilentFoxy78

@CodingElf66 wink ;)

Profile icon
FlaminHotValdez

@SilentFoxy78 Fitz is a *censored*

Profile icon
GhostKing007

@FlaminHotValdez I cannot agree more. Fitz is indeed a censored

Profile icon
FlaminHotValdez

@GhostKing007 if you wanna cancel markdown do \*censored\*

Profile icon
QuickV

\*censored\*
JavaScript :D

Profile icon
CodingElf66

@QuickV /censored/

Profile icon
FlaminHotValdez

@CodingElf66 Other slash.

Profile icon
CodingElf66

@FlaminHotValdez Lol (I don't know Javascript), but the syntax is pretty similar.

Profile icon
GhostKing007

@FlaminHotValdez cool thanks

Profile icon
sobakarooted

bro y r u everywhere @CodingElf66

Profile icon
QuickV

*ya did it wrong*

@CodingElf66

Profile icon
Whippingdot

cause he is everywhere @sobakarooted

Profile icon
CodingElf66

@sobakarooted Actually, I am, because I comment on every post I see

wink wink wink

Profile icon
CodingElf66

@Whippingdot wink wink wink ;;)

I comment on everything I see wink

Profile icon
Miguel-Angel340

Me encanto, esta entretenido <3

Profile icon
justinahrent

I had to play to earn games to save up for a whole mining farm since I didn't have money for several powerful computers. I went to a very ordinary office job at a law firm. I didn't see any career opportunities because my face is not very attractive. You know, people in my field like punchy and cute guys who inspire confidence among clients, judges, and opponents. I understood that I needed to look for other ways to earn money. Otherwise, I'd never be able to lead the life I wanted, travel the world and find a girlfriend. I already have two powerful computers with good water-cooled graphics cards, which bring me enormous benefits.

Profile icon
malikvivek

I love playing mining games. It gives me a sense of finding the treasure. After getting the best Dolby Atmos soundbar in India, I have started to enjoy playing games mostly because of the sound fx.

Profile icon
BruceWright

it keeps crashing and it wont let me load my game

Profile icon
BennyG1

Fun game

Profile icon
BennyG1

keep doing what you are doing

Profile icon
Jonnyboyboy

Nice!

Profile icon
S1lveredPrism

add this to the top of your code in python

import cursor
cursor.hide()

this hides the white text cursor on console :)

Profile icon
BRYANHOANG5

NICE WORK, YOU'RE A GENIUS!

Profile icon
[deleted]

I spent so long trying to figure out why the code stopped mining after my pickaxe was only at 1/2 health, turns out I'm not smart enough to realise there is a backpack. πŸ˜‚

Profile icon
akio555

Powerups

Profile icon
akio555

e

Profile icon
slaySPEC
Profile icon
slaySPEC

Cool I will fork this and make it better

Profile icon
DanielCruz20

How do u make money

Profile icon
mariodulibic

kj je ovo

Profile icon
JacobTran6

3112 add me to the leaderboard

Profile icon
zurbi

HOLY SHIT im addicted bro this idea is so good. If you got Discord, please add me under: π“Ÿ.#5573 I have a question i want to ask you.

Profile icon
BRYANHOANG5

Hi?

Profile icon
tussiez
Profile icon
glitchish

@aguy11 once again, a great game!
i cant believe it this thing has more than 400 upvotes!

Profile icon
mylifeiscrap

Ha 401th upvote from me

Profile icon
ch1ck3n

@mylifeiscrap no you got 400th

Profile icon
VulcanWM

No I got 401st @ch1ck3n

Profile icon
VulcanWM

this guy didn’t even upvote lmao @ch1ck3n