omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello β€” I'm @olemoritz on Twitter.


    [SPACE ESCAPE]-Game example to help with Game dev

    Pythonista
    game dev
    6
    133
    43740
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephen
      stephen last edited by stephen

      Here is a little game to help new develpoers to game design get started. there is a tutorial in exmples but its very minimal and doesnt give examples of diferent styles of writing. this currently is not a tutorial. and it is not flooded with comments so that its easier to follow the code. any questions are more than welcomeand i will add annotations as needed.

      the game itssrlf is not perfect and does have bugs that pop up here and there. this is mainly due to using multiple styles at once creating small conflicts but the game does play and should be easy to expand nd add aditional components. i tried to leave it in a way that made it to whoever was using it could add functionality to help learn and understand game development. all images are builtin and script should run without any dependancies as long as its ran within Pythonista.

      Enjoy
      Stephen, Frey

      Script

      screen_shot

      1 Reply Last reply Reply Quote 2
      • stephen
        stephen last edited by

        @Karina @Drizzel sorry it took so long and i hop this helps

        Karina 1 Reply Last reply Reply Quote 0
        • stephen
          stephen last edited by stephen

          @cvp i had my baby brother play it and he got upset he couldnt keep it on his phone lol told him id have to build on a mac and i dont have one so he told me when he comes over he wants to play lol. i say baby brother but hes 28 lol

          cvp 1 Reply Last reply Reply Quote 0
          • cvp
            cvp @stephen last edited by cvp

            @stephen My upvote was for the script, not for the game πŸ˜€
            I have always been to old for electronic games. I remember I had already this kind of discussion with my kids with Tandy, PC, Nintendo, PlayStation games. My only pleasure was to write, for instance in Basic on a Tandy, my own HangMan and so on. Now, my kids have them-selves their kids and they still play.
            Some months ago, one of my grandchildren asks me to play tennis on their Wii and the only thing I have done is to break their chandelier while serving πŸ˜‚ and that isn't a joke.
            Thus You can see my level (a lot better in real tennis than in virtual one)

            1 Reply Last reply Reply Quote 1
            • stephen
              stephen last edited by

              i broke a tv trying the Wii sports lol never played again .. πŸ˜… as for the script, from your perspective it probably looks really messy lol

              cvp 1 Reply Last reply Reply Quote 0
              • cvp
                cvp @stephen last edited by cvp

                @stephen said:

                from your perspective it probably looks really messy lol

                Surely not, sincerely, I'm a very bad Python programmer, really honestly.
                I agree that for @mikael, @ccc, @JonB and a lot of other ones, your code would be not perfect, exactly like for all my scripts, but is it so important ?

                1 Reply Last reply Reply Quote 0
                • stephen
                  stephen last edited by stephen

                  @cvp in game development it kind of is. generally you would have a team and inside that team you have graphic animators and world/level designers and they would have minimal coding abilities. so the programers would have to follow a style so that these team members can add their content without having to add cost to budget for time delay for rewriting or debugging. im sure this goes for any group project but its really important with video games ☺️

                  it was a bit hard for me to not rewrite some parts where i show diferent coding styles lol but i stuck in there for the most part lol i do need to make this format for iphone though i always forget that it doesnt do this automaticaly

                  cvp 1 Reply Last reply Reply Quote 0
                  • cvp
                    cvp @stephen last edited by cvp

                    @stephen I agree. I have also programmed in very big projects of several man-years code and we were all very good in our programming language, and we had to follow some rules to be sure all our modules were coherent and understandable by others.
                    When I said that, I mean for my little own projects with only one user, like my wife, a friend or me.

                    1 Reply Last reply Reply Quote 0
                    • stephen
                      stephen last edited by

                      ohhhh lol ok ya i used to have projects with my brother inlaw and i used to hide stuff in the code and he would find them as bugs and get real excited but then i stopped and he would just find my horrible code and get upset πŸ˜‚πŸ˜‚

                      1 Reply Last reply Reply Quote 0
                      • stephen
                        stephen last edited by stephen

                        @JonB @mikael @ccc and anyone else that might be able to explain lol

                        I decided to setup some checks and value sets to format sizes and scales so that the game will run on iphone and i get a very odd syntax error on line 702 but this only appears when i run it on the phone... Any idea what is causing this? or does this not even happen for you?
                        the error gives no info other than annotating the line

                        cvp mikael 2 Replies Last reply Reply Quote 0
                        • cvp
                          cvp @stephen last edited by

                          @stephen same iOS, Pythonista, Python 2or3?

                          stephen 1 Reply Last reply Reply Quote 0
                          • mikael
                            mikael @stephen last edited by

                            @stephen, runs on my iPhone, no syntax error.

                            1 Reply Last reply Reply Quote 0
                            • stephen
                              stephen @cvp last edited by

                              @cvp said:

                              @stephen same iOS, Pythonista, Python 2or3?

                              had no idea my phone was set to 2.7... should of checked this when it said f' ' was incorect.. thank you @cvp @mikael

                              1 Reply Last reply Reply Quote 0
                              • Karina
                                Karina @stephen last edited by

                                @stephen said:

                                @Karina @Drizzel sorry it took so long and i hop this helps

                                @stephen no problem. Don’t know how I will deal with it now cause it’s a lot of code for me, my brain is already overwhelmed🀯

                                stephen 1 Reply Last reply Reply Quote 0
                                • stephen
                                  stephen last edited by

                                  @Karina just play with it. i separated everything the way i did so you can change somthing then play it to see how your changes had effect. the best way to learn is to have fun with it. and if you break it past return lol just start over. i can answer any questions and at some point you can add to it. making new brushes and adding new levels πŸ™ƒπŸ˜‰πŸ˜ŽπŸ€“

                                  1 Reply Last reply Reply Quote 0
                                  • stephen
                                    stephen @Karina last edited by

                                    @Karina please dont hesitate with any questions. and if it will help i can break the code into hunks according to where you might be stuck on

                                    Karina 1 Reply Last reply Reply Quote 0
                                    • Karina
                                      Karina @stephen last edited by

                                      @stephen

                                      @stephen said:

                                      @Karina please dont hesitate with any questions. and if it will help i can break the code into hunks according to where you might be stuck on
                                      Okay i'll take a break from it and later. I have an idea of another game to write, in my head only for now

                                      1 Reply Last reply Reply Quote 0
                                      • stephen
                                        stephen last edited by

                                        @Karina No Problem. its tough at first. just hang in there and it will be second nature before you know it

                                        1 Reply Last reply Reply Quote 0
                                        • Karina
                                          Karina last edited by

                                          @stephen yes, not long ago oop was to me like 🀯

                                          1 Reply Last reply Reply Quote 0
                                          • stephen
                                            stephen last edited by

                                            @Karina said:

                                            @stephen yes, not long ago oop was to me like 🀯

                                            i started roughly 6 years ago. first with C# then C++ then a mixture of java/html/css and now python lol until python it was all video game related. i started pyton because at the time i phly had an iPhone and i needed to write a program that generated WorkOrders for Excel that the place i was working and ive now made it my gol/mission to makevan RPG with decent quality and functionality expected from all platforms. mainly because of all the reviews saying Python was horible for creating games at the magnitude ive set my goal to. so far it has been wonderfull. my first project i ever finished was an inventory system writen in C# with MonoBehavior API on Unity3D. was a 🀯 crash course.. but still fun lol

                                            stephen 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors