These are all basics you can scratch up in the first week(or day) of learning python, so don't think ,your going to scroll down and see the next code for minesweeper 2 or something
My end of year goal for 2022 in regards to coding is to create a playable game(that doesn't look like it belongs to a museum)
Intro to Programming: Loops - YouTube
Coding Basics: Variables | Programming for Beginners | - YouTube
----------Links for the things I made below----------------
Python Tutorial - Guess the Number Game - YouTube
Mad Libs Game | Python | Tutorial 10 - YouTube
Remember to just watch and google things you don't get along the way
Been wanting to learn a coding language for awhile now, scavenged through Reddit , Google, Youtube and gathered that python would be the best(considering its really easy to learn and supposedly future proof and companies as Google, Apple and so on favour it).
The actual researching was horrible, I didn't know where to start even with vast amount of information available.I just kept reading and reading on things that don't matter because I don't know how to start, and never actually going to code, until I came to this site. It was just a basic how to install and how to output the words "hello world" (The cliché two words I've seen since making Pseudo codes and algorithms in O-levels, which was the only thing I aced .And that did help, with all there is about the basics of computers and programming.)
print("Hello World")
I was so stoked about this, soon after I wrote my first IF statement then off to WHILE LOOPS
The feeling was legit , remembering how fun computer science was back in the days of doing them, not that I really regret not further doing it.
I started trying to make IF statements from trail and error and looked at tutorials and with help from a few friends and family, as to how to do something specific to solve my problem at hand. Which is much more easier than learning things all at one go and just practice with what you know and advance upon that.
I started with a guessing game as shown below
This was a bit wonky , as it wasnt really at random and you can only play it once(even if you restarted the game, the value would be the same). and the algorithm(the steps as to how the final result is given) was a bit of a mess and inefficient.
The second redone version automatically decides a number from 1-100 and asks you to guess which which it choose. After that , the option to replay is made available with a truly random number once again picked for you to guess what.
15th March, 2022
Made this in a bit over an hour and learn the Import Time function to get delays between lines of codes
This is where you have to enter a series of words asked and in the end. A predefined story will be made with the words you mentioned
import time
play = True
print("Hi Fellow Storyteller!")
while play:
time.sleep(1)
print("Enter some words and see your very own story unfold!")
time.sleep(1)
adjective1 = input("Please enter an adjective describing the weather: ")
name1 = input("Please enter a name (Male): ")
name2 = input("Please enter a name (Female): ")
injection1 = input("Please enter an Injection(exclamation marks not needed): ")
verb1 = input("Please enter a verb thats in past tense: ")
adverb1 = input("Please enter an adverb: ")
adjective2 = input("Please enter another adjective describing something you like: ")
verb2 = input("Please enter a verb in past tense: ")
fabric1 = input("What kind of fabric material do you like?: ")
time.sleep(0.5)
print("Here is your story ")
time.sleep(1)
print("One " + adjective1 + " autumn day,")
time.sleep(1)
print( "Farmer " + name1.capitalize()+ " woke up and gasped,")
time.sleep(1)
print(injection1.upper() + " !")
time.sleep(2)
print( "IM LATE FOR MILKING " + name2.upper() + " !" )
time.sleep(2)
print("He " + verb1 + " out of bed and yawned " + adverb1 + " as he pulled on his favourite pair of " + adjective2 + " rubber boots and a " + fabric1 + " hat. Out the door he " + verb2 + ".")
time.sleep(3)
print(name1.capitalize() + " ran across the farm and milked " + name2.capitalize()+ " clean to the last drop. then headed to sleep.")
time.sleep(4)
again=str(input("Do you want to play again? Type 1 (yes) or 0 (no) "))
if again == "0":
play = False
print("goodbye")
15th March, 2022
class employee:
def __init__(self, first_name , last_name , pay):
self.first = first_name.capitalize()
self.last = last_name.capitalize()
self.pay = pay
self.email = first_name.lower() + "." + last_name.lower() + "@gmail.com"
user1 = employee("Bob" , "Jones" ,60000)
print(user1.first)
print(user1.last)
print(user1.pay)
print(user1.email)
I was procrastinating on my sleep last night, and was watching some python tutorials, and came across a 6 hour game tutorial video teaching how to make with 5 games. The first one was pong, I wasn't expecting to watch the whole 6 hours but see how long I would last, I ended up watching the whole pong tutorial which was about 45 minutes long.
Fast forward the next day when I woke up, I started to watch the video again and make the game. It took me an hour fifteen or so to entirely make the game from scratch but I'm really happy with the result and what I learnt. I learnt the Turtle function (which is a way to create basic computer graphics). Making this reminded me as to how useful, all these were back in school, when they first thought us this weird drawing tool on the computer to draw lines and squares with a series of commands that move a triangle on the screen called the turtle.
The code below is the basic angular version of the game, getting the triangle and circles are as easy as literally just reediting square to triangle and circle respectively in the code.
(March 16th, 2022)This is not the first time I have tried to dwell in Unity, I was really Interested growing up, in these game engines and used to always get fascinated by them and always wanted to make a game, I got into Unity and Blender and probably a host of other game engines and learnt the quirks of basic game dev. Nothing enough to make me able to make the next Naughty Dog GOTY ,but a really basic understanding. This was around the time I was about 12-15.
Fast forward now, and with the plethora of game tools that are top of the line and used to make AAA games and are FREE are immense, notably Unity and Unreal. The reason I download Unity was of nothing objective in its feature set, but simply due to Unreal being 10gb plus to downlead and unity being around 2-3gb, and with my limited bandwidth, it was clear which i went for.
A simple LTT video on game dev with Unity was enough to spark my Desire to make a game once more, and then I went forth to watch a 13 part series by the fantastic Coding in Flow on 2D aspect of Unity which I'm to re-watch and follow after My exams and I hope I fall through on this
Update 08/06/2022
My exams had finished yesterday and I soon after had began my work on this once more, I initially was going to make a game much more complex but considering I haven't toughed this in so long, I thought it's best I start off somewhere simple.
An endless runner(or in my case, flyer)
Alma's Treasure, My first proper full fledged game, still rusty and not many features or plot, but the core is there and I'm really happy about it, The tutorial I referred to on YouTube was just under 30 minutes. Which I thought would take me max 2 hours of actual work after I learn and fix any bugs and glitches along the way, this was after my experience with the pong game. But sadly, it did not
It took me 11 straight hours to do this.....
I was so focused on getting this done, I just powered through everything in two sessions of 7 and 4 hours long. Its bewildered that I can do 11 hours of actual work in a day but find it hard to do an hour of studying Core Management Concepts for Uni in like a week.
Anyways, I want to create a dedicated page for this and continue my 11 hour process on this (Click on the tab on the side or HERE)