programming

Welcome to my new programming blog

  • My First Blog Post

    September 9, 2019 by

    Be yourself; Everyone else is already taken. — Oscar Wilde. This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.

  • Introduce Yourself (Example Post)

    September 9, 2019 by

    This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right. You’re going to publish a post today. Don’t worry about how your blog looks. Don’t worry if you haven’t given it a name yet, or you’re feeling overwhelmed. Just click the… Read more

View all posts

So far I’ve gotten some of the basics of programming but it still isn’t the strongest. this will most likely improve in the future but that currently is to be seen as time progresses.


Progress with the programming is possibly coming along but i still am unable to make sense of it no matter how many times i look at it and despite it working i don’t properly know how to proceed most of the time with it but at the moment going from rectangle equation to circle i have an idea of what to swap around and what needs to remain.

The circle code required the html code to be altered so the buttons would appear with circumference and area instead of perimeter and area.
The radius was the only prompt require so one of the prompts could be removed.
The codes ended up being

my most recent steps in programming have been in visual studio connected with the unity engine where we have created a code with some algebra to show the equation of a,x,y and z

currently the project is fixing up a code but its proving difficult, heavily for me.

27/11/19
The code has been cleared up and the second bug fix code as also been completed.

Quiz results
some of the question in the quiz took me of guard and i think the quiz went decent with a 23 out of 31
3 topics i need to spend more time on would be, pseudo-code, data types and variables. and integrated development environments

2 topics i m confident with is Blocking out/level design and game design documentations, the reason for this confidence is that i understand the purpose of blocking out to prototype a levels design to see if it will work and be able to fit with the level and Game Design Documents are the idea of a game which can be twisted depending of the direction the game is going and to develop the idea as a whole.

1 topic that surprised me were conditional statements

28th Jan 2020
With the developments of a small 2D game i have been introduced to the basic programmings of an inventory system and movement along side collectibles to go with this in a level.

An iteration statement is used to process a set of instructions repeatedly for a specific number of time until a certain condition is met. Some examples of iteration statement would probably “iteration structures” in which a statement or block is executed repeatedly until the program reaches a certain state and “counter controlled loops” in which the count is kept by the index and when the index reaches a certain value the loop will end.

Arrays are the most efficient data structure or storing a piece of piece of information and accessing a sequence of objects and is used to store multiple data types.

A zero-based index is used because the code begins counting from zero and it means the index is used as and offset as the first element of the array is exactly contained in the memory location that the array refers (0 elements array).

04/02/2020
in development of a 2D game we have learnt about while and infinite loops. a while loop will continue a code up until a certain condition has been met. however an infinite loop is a loop where no final condition has been set to it will infinitely loop until it crashed the system or it will instantly crash.

working while loop
infinite loop

the loop above will instantly crash you unity engine if you try to play with it.

fixing an infinite loop is a really hard thing to do as sometimes you can actually make the loop worse.

for example we had a spawning llama loop but it would infinitely spawn llamas.

infinitely spawning llamas
broken llama spawn code.

above is the llama spawn code but with some adjustments to it but it still doesn’t work as it went from spawning llamas to completely crashing unity .

24/3/20: What is a game mechanic?
gameplay mechanics are the rules of games that make them playable. these can rang from the various controls of the game to a proper way to play a certain game.
the gameplay mechanics are what a player interacts with and what they do.
some examples of game mechanics would be:
1: interact able objects
2: a levelling system
3: challenges
the 3rd one being a big trend as of the moment as it gives players a reason to play their game more.

the mechanic i am currently trying to create is an interact-able door that leads into a room.
the door uses the animation tool to allow for it to have movement but the interaction part of it will be down to the C# scripts. as of the moment i have made a small area with the door that i have animated.

the environment
the animation

25/3/2020
My aim for this current session is to finish the animation of the door so that it can close and to start the programming of the interaction to open and close it.

The closing animation is finished with the use of the animator so that i can make the door open and close with the use of a Boolean to make the animation flow. this allows the animation to open and close. by setting the bool to true is make it so the door doesn’t keep closing.

the process in the animator

i have created the code for the player to interact with the door but as of the moment i isn’t working properly so what i’m planning to do for my next step in this is to get the code to work and to see why it currently isn’t working.

26/3/2020
As of the moment i am unable to get the code to interact with the door. i have no idea as to why it won’t work. my attempts to see what is causing it to not work have had no effect. currently i have no idea how to fix this as the code says that it has no issues and the console on unity isn’t saying anything is wrong so i have no idea

5/5/2020
i have tried more development of the game play mechanics scene but even after updating the code and putting more mechanics into it and trying to toy around with some of the unity features to see if its something to do with that which is causing to code to not work but even after adding new mechanics it still doesn’t do anything and i have a feeling it my version of digital studio causing it but i have no clue.

the updated code
updates to the level.

Follow My Blog

Get new content delivered directly to your inbox.

Design a site like this with WordPress.com
Get started