what do i do if i save it then everything goes black? I know i can just click save and it keeps it but then when i reopen the file i lose the color and the new strings and functions arent in color?
Hey I copied your code as you typed it. I plan to make some changes to it later on. However, when I ran it, nothing happened. I hit enter a million times on SHELL and it gave me nothing. Why aren't I getting that "Hello and welcome" that you got?
@madmonkeyness The global command sets the scope for that variable. If you do not use the global command, then you will not be able to access that varialbe from inside a function, which is what this game uses. This is because the functions are in a different scope to any code outside of a function, and each function is in its own scope. Hope this helps.
@madmonkeyness It means that the variable "gold" that global defines will be available to access without any restriction, you can access it from within any function. It is normally used like a container for something like score, or life.
@iToasterman Learn how to spell "lean" right. Also, you made this video for beginners, thats why it says "Simple Python Code." Next time, be more appealing to your viewers.
@UrbanCompTech Idiot i wrote the comment at night and wasent thinking of spelling. BTW i didn't make video you python failure. Now GTFO as you don't know the diff between sumone who knows the language and the uploader. Now fuck off wiht ur fail, its stinking up my youtube.
This really helped me understand how some basic programming works and how to use some of the skills I learned in other youtube python tutorials. Thanks you rock!
i just saw this video, i tried making a game like this, but it cant open it because "start" at the top is invalid syntax... I dont know how to fix that :(
@Lucantrop1054 hey, im i just read your post "i just saw this video, i tried making a game like this, but it cant open it because "start" at the top is invalid syntax... I dont know how to fix that :("
and im wondering if you if you fixed it? im having the same problem :) please get back to me
ummm my print commands broke it says the " is invalid and when i get rid of it it says that i need suttin @ the end
masterarbibter 4 days ago
If anyone wants help making this in Python 3 or higher, give me a message. @OLAF11195 it is 'def' not 'dot' :)
coldkick 3 weeks ago
see pyIrrlicht game framework, it also easy game development
pyirrlicht 1 month ago
what do i do if i save it then everything goes black? I know i can just click save and it keeps it but then when i reopen the file i lose the color and the new strings and functions arent in color?
Bnn678 1 month ago
hmm when i write dot and start it doesnt come up colored
Geordan271 2 months ago
@Geordan271
2 things, first did you save it and everything lost color? or did you mean to put def
Bnn678 1 month ago
@Bnn678 yea, haha i meant def
Geordan271 1 month ago
Comment removed
Geordan271 2 months ago
Hey I have a question what does the 'dot' in dot begin() stand for??? and how do I used it?
OLAF11195 2 months ago
This has been flagged as spam show
Hey! How old are you? I'm pretty young and I know Python quite a bit. And when it comes to Minecraft mods I'm pretty good with Java.
Guess how old I am everyone!
2mitchmitch 2 months ago
dude you have inspired me and I have made one hell of a game
FullyAutoMutilator 3 months ago
It says that there is an error in my syntax and then it highlights the first time i put choice next to N can you PLEASE help!!?
adjgamer 3 months ago
Here is my code for people too lazy to make their own :P
pastebin(.)com/4dXL6G92
waterdragon1908 3 months ago
This has been flagged as spam show
hey, i made a short text adventure rpg i call "Dungeoner" in Python
would be cool if someone checked it out at
shittysoftware
(.tk)
you find my email at the site, tell me what you think and what you think i should add
yoanar2 3 months ago
I want to make website full of my python programs. How would i want embed python into html?
az100eletronics12 4 months ago
Comment removed
Ubisoft9611 4 months ago
upload on mediafire plz
cheatengine101 4 months ago
Is it possible to copy down code and paste it into your own python window??? If so could you you give me the code or something?
Manley142 4 months ago
Are you sure this is a programming language? it looks more like english compared to c/c++
MegaLordofthestrings 4 months ago
Can you make a game with Python? Like if press b open inventory if right click, break block.. ?
MultiMinecraftserver 5 months ago
How do you run the game on the python shell?
adanggoodmoviemaker 5 months ago
i have the exact code and its highlighting the first start as red and saying invalid syntax
awesomeidiot74 6 months ago
Hey I copied your code as you typed it. I plan to make some changes to it later on. However, when I ran it, nothing happened. I hit enter a million times on SHELL and it gave me nothing. Why aren't I getting that "Hello and welcome" that you got?
THANKS!!!
LongbowApache96 7 months ago
I just started learning python, can you explain what the global command means? thatnks.
madmonkeyness 7 months ago 6
@madmonkeyness The global command sets the scope for that variable. If you do not use the global command, then you will not be able to access that varialbe from inside a function, which is what this game uses. This is because the functions are in a different scope to any code outside of a function, and each function is in its own scope. Hope this helps.
H4rtland 6 months ago
Comment removed
yoanar2 3 months ago
@madmonkeyness It means that the variable "gold" that global defines will be available to access without any restriction, you can access it from within any function. It is normally used like a container for something like score, or life.
plaina 3 months ago
It needs a little bit of modification in few lines to work on 2.7
uratoko 8 months ago
if your reading this u just lost the game
Meeklo214 8 months ago
@Meeklo214 Dammit
Thundercat2364 6 months ago
Can this be used on python 2.7?
2fast2furiousDevil 8 months ago
Lol, hahahahahahahaha, what an original game!!! =D congrats xD im so buying it on amazon right away xD!!!!
JosePablo24 9 months ago 4
@JosePablo24 I know, right?
AnimationShorts1 9 months ago 6
@AnimationShorts1 indeed =) im self learning python at the moment, lets see if im ever able to make a game this amazing , hehe
JosePablo24 9 months ago
@tetrisninja3 i've known python for about a year, and i dont know either.
i dont think its important.
what does it do??
NatapixAS 10 months ago
For some reason I can't see it on my laptop. I think I need a new one.
skatetocreate7 10 months ago
is there a function to clear the screen?
sciman001 10 months ago
@sciman001 no,
i wish there was....
but a game this simple is easier in batch, which does have clear screen (cls)
if you want to make window based programs, you can.
so i suggest you download pygame and look for thenewboston's tutorial.
NatapixAS 10 months ago
When I hit F5 it doesn't automatically start the program. Please tell me without me having to "go to sn50.com and post it as a question."
UrbanCompTech 11 months ago
@UrbanCompTech Lean how to CODE plz. also u have to call start, like this, start() after the start function to make it run. -.-
iToasterman 10 months ago
@iToasterman Learn how to spell "lean" right. Also, you made this video for beginners, thats why it says "Simple Python Code." Next time, be more appealing to your viewers.
UrbanCompTech 10 months ago
@UrbanCompTech Idiot i wrote the comment at night and wasent thinking of spelling. BTW i didn't make video you python failure. Now GTFO as you don't know the diff between sumone who knows the language and the uploader. Now fuck off wiht ur fail, its stinking up my youtube.
iToasterman 10 months ago
@iToasterman or type at the end of the program
if __name__=='__main__': start()
NatapixAS 10 months ago
@NatapixAS or, start() -.-
iToasterman 10 months ago
@UrbanCompTech then go to 'module' and then 'run module'
NatapixAS 10 months ago
@UrbanCompTech then go to 'module' and then 'run module'
type at the end of the program
if __name__=='__main__': start()
NatapixAS 10 months ago
This really helped me understand how some basic programming works and how to use some of the skills I learned in other youtube python tutorials. Thanks you rock!
TheJoninja 1 year ago
i just saw this video, i tried making a game like this, but it cant open it because "start" at the top is invalid syntax... I dont know how to fix that :(
Lucantrop1054 1 year ago 2
@Lucantrop1054 can I see the code? Post it as a question at sn50.com and I'll see if I can fix it. Thanks, Noah R
AnimationShorts1 1 year ago
@AnimationShorts1 i cant, i didnt save it :(
Lucantrop1054 1 year ago
@Lucantrop1054 This code is for python 2, you're probably using python 3, which is the problem.
SeekLegend 1 year ago
@SeekLegend nah, its 2.6
Lucantrop1054 1 year ago
This has been flagged as spam show
@Lucantrop1054 hey, im i just read your post "i just saw this video, i tried making a game like this, but it cant open it because "start" at the top is invalid syntax... I dont know how to fix that :("
and im wondering if you if you fixed it? im having the same problem :) please get back to me
Geordan271 2 months ago
Um thanks but can u update the video? it won't work with python 3.1.2 :( but thanks, im downloading ur version (2.6) so i can do it. Thanks!
Thepoliticman 1 year ago
Comment removed
Thepoliticman 1 year ago
nothing happened. I clicked F5 an it brought me to Python Shell....that's it. I copied down your exact code
bryguy124 1 year ago
@bryguy124 may I see the code you used, just post it at sn50.com in a question. Ill fix it for you.
AnimationShorts1 1 year ago
@AnimationShorts1 how do you get the code to "shell python" windows
When you write something in the "applepicker" windows, how do you get the code into the "shell python" windows
TheJimzhe842 3 months ago
This has been flagged as spam show
what version of python are u using?
Friedtunafish77 1 year ago
This has been flagged as spam show
what version of python are u using?
Friedtunafish77 1 year ago
This has been flagged as spam show
what version of python are u using?
Friedtunafish77 1 year ago
what version of python are u using?
MoonCatsRevenge 1 year ago
@MoonCatsRevenge I believe that was Python 2.6
AnimationShorts1 1 year ago
Comment removed
MoonCatsRevenge 1 year ago