[SPACE ESCAPE]-Game example to help with Game dev
-
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
-
@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
-
@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)
-
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
-
@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 ?
-
@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
-
@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.
-
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 ๐๐
-
@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
-
@stephen same iOS, Pythonista, Python 2or3?
-
@stephen, runs on my iPhone, no syntax error.
-
@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
-
@stephen said:
@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๐คฏ
-
@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 ๐๐๐๐ค
-
@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
-
@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
-
@Karina No Problem. its tough at first. just hang in there and it will be second nature before you know it
-
@stephen yes, not long ago oop was to me like ๐คฏ
-
@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 so you've mainly focused on games?
Unity 3D is for 3D games as I think. Quite a difficult thing for beginning
And pythonista just for fun?
-
I tried to download postgresql in theese days and all the time problems...
And pythonista when I don't have pc with me