Added: 1 year ago
From: AnimationShorts1
Views: 19,217
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (66)

Sign In or Sign Up now to post a comment!
  • 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

  • If anyone wants help making this in Python 3 or higher, give me a message. @OLAF11195 it is 'def' not 'dot' :)

  • see pyIrrlicht game framework, it also easy game development

  • 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?

    

  • hmm when i write dot and start it doesnt come up colored

  • @Geordan271

    2 things, first did you save it and everything lost color? or did you mean to put def

  • @Bnn678 yea, haha i meant def

  • Comment removed

  • Hey I have a question what does the 'dot' in dot begin() stand for??? and how do I used it?

  • dude you have inspired me and I have made one hell of a game

  • 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!!?

  • Here is my code for people too lazy to make their own :P

    pastebin(.)com/4dXL6G92

  • I want to make website full of my python programs. How would i want embed python into html?

  • Comment removed

  • upload on mediafire plz

  • 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?

  • Are you sure this is a programming language? it looks more like english compared to c/c++

    

  • Can you make a game with Python? Like if press b open inventory if right click, break block.. ?

  • How do you run the game on the python shell?

  • i have the exact code and its highlighting the first start as red and saying invalid syntax

  • 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!!!

  • I just started learning python, can you explain what the global command means? thatnks.

  • @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.

  • Comment removed

  • @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.

  • It needs a little bit of modification in few lines to work on 2.7

  • if your reading this u just lost the game

  • @Meeklo214 Dammit

  • Can this be used on python 2.7?

  • Lol, hahahahahahahaha, what an original game!!! =D congrats xD im so buying it on amazon right away xD!!!!

  • @JosePablo24 I know, right?

  • @AnimationShorts1 indeed =) im self learning python at the moment, lets see if im ever able to make a game this amazing , hehe

  • @tetrisninja3 i've known python for about a year, and i dont know either.

    i dont think its important.

    what does it do??

  • For some reason I can't see it on my laptop. I think I need a new one.

    

  • is there a function to clear the screen?

  • @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.

  • 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 Lean how to CODE plz. also u have to call start, like this, start() after the start function to make it run. -.-

  • @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.

  • @iToasterman or type at the end of the program

    if __name__=='__main__': start()

  • @NatapixAS or, start() -.-

  • @UrbanCompTech then go to 'module' and then 'run module'

  • @UrbanCompTech then go to 'module' and then 'run module'

    type at the end of the program

    if __name__=='__main__': start()

  • 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 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 i cant, i didnt save it :(

  • @Lucantrop1054 This code is for python 2, you're probably using python 3, which is the problem.

  • @SeekLegend nah, its 2.6

  • 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!

  • Comment removed

  • nothing happened. I clicked F5 an it brought me to Python Shell....that's it. I copied down your exact code

  • @bryguy124 may I see the code you used, just post it at sn50.com in a question. Ill fix it for you.

  • @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

  • what version of python are u using?

  • @MoonCatsRevenge I believe that was Python 2.6

  • Comment removed

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more