2D Solo Game – Week 3

Now all the pieces are coming together nicely, and the code is making more sense by the day. Especially with the layout, learning the difference between Allman & TBS1 bracketing.

===== 1TBS =====
while (x == y) {
    something();
    somethingelse();
}
===== Allman =====
while (x == y)
{
    something();
    somethingelse();

This basically shows different ways to layout the code so programmers can read it easily and make sense out of it. 1TBS shows the opening brackets connecting to the end of the first line of code which could represent the literal connection whereas Allman separates creates a new line for a new bracketing section… like a quarantine in a way. Keeps everything away.

PICKUP
Allman Bracketing (Physics Movement ‘Script’)

Doing either bracketing will not affect the workings of the code of what target you apply it to. Ultimately this should show what code is supposed to look like and also show an easier way of bracketing the code.  Below is an example of 1TBS bracketing, I wouldn’t expect you to read it all but if you want to, I highly recommend looking at the way the brackets are set in comparison to Allman.

Cone & Line of Sight

Back to the game in hand, there have been major improvements such as including collectable objects in my game to finally trigger the door, the idea.

  1. Get the Collectables.
  2. Avoid the Enemy.
  3. Get to the goal.

Simple, it’s just… making more levels & having the gameplay flow at an equilibrium alongside an increasing difficulty. Throughout the duration of the game…

GAMEPROG
collectable objects function / Recent progress

2D Solo game Week 1

Further venturing through the paths of game design and coding my way through the basics of my top down stealth game.

I start by creating my assets first, such as a protagonist ‘main character’, walls, enemy, a backdrop for my game, all I need now is a goal and I can reach further development. I create my assets all on Adobe Photoshop. By using the brush tool and tampering with the brush settings, I can give out better fake lights on the assets giving out a 3 Dimensional look without altering the lighting of the scene nor the renderer.

BRUSH SETTINGS
Brush settings tool

This slideshow requires JavaScript.

Beginning my development on Unity, I made the mistake by selecting the game to be a 3D game, I had to therefore change the camera to ‘orthographic’ so of can therefore render the sprite images all together.

To conclude this blog I have also considered having a feature where the player must collect a specific object to therefore pass except the first stage which the player should be able to get to grips with the controls and the environment around him/her.

Projectiles_CODE

This piece of code is for a projectiles script which in simpler terms means ‘When shooting each bullet has two seconds until it is dead’, sounds odd… Bullets don’t die, but it does cease to exist after leaving the screen from source  within two seconds.

The 12 principles of animation ‘Illusion of life’

I have just watched a clip of the 12 principles of animation from Disney. I have also taken into account the vast range of different ways which an animation or a real life object can be altered to either look more fluent or fun in a way.

Click the link to watch the full video: The illusion of life

tumblr_n4roywpwa01tx30c0o1_500
Extract from Illusion of life ‘Secondary action’

Squash and Stretch

This principle delivers weight and volume to an object as it moves throughout a scene.

Anticipation

Gives the illusion of preparation through movement prior to the objects main movement

Staging

The presentation of an idea so it is therefore clearer to the audience what is being shown.

Pose to Pose and Straight

The idea of animating through two different methods which give out a smoother animation.

Pose to Pose

Charted with Key drawings so you can therefore plan out what will happen through the timeline of your animation.

Straight

Working the animation from frame to frame/drawing to drawing to complete the overall animation.

Follow through and overlap

When the main character moves from one space to another and suddenly stops, the rest of the body continues to follow through. Therefore nothing stops all at once.

Slow in and slow out

When the action starts, less drawings make the animation go faster. On the other hand, more drawings make the object move slower.

Arcs

All actions tied to an object give out a round or arc movement, it gives out the perception of natural action and better flow to an animation.

Secondary Action

It’s an additional action which therefore creates additional supplementary actions to give the main action more dimension and interest within the scene.

Timing

More drawings make between poses make the animation slower yet keep the animation smoother yet less drawings present the animation with faster movement but with a more static movement.

Exaggeration

Keep the common views of reality yet come across that view in a wild and wacky view.

Solid Drawings

The practice of drawing out three-dimensional objects taking into consideration their weight and volume.

Appeal

It is the charm and the personality/charisma of the character action which is aesthetically pleasing to the audiences eye.

All of these principles should be able to alter and improve the way we animate anything from 2-dimensional drawings to 3-dimensional models and drawings. There is a book which can help any aspiring animator hoping to make a mark on their work. This book is called  ‘The Animator’s Survival Kit’ by Richard Williams. It can be bought online and contains everything which you would need to know about any form of animation within the creative industries.

 

Unity: Variables and Physics

From the point of writing this blog I would have just finished coding a game for a Unity 2D game where we had to learn the basic data types which are;

  • Integer data type
  • Floating Point
  • Boolean
  • String

These data types are used to control the tools you use and the specifications of the physics engine or the ship alike. I had also learned that ‘if the variables aren’t public, they are out of order’. And all we had to do was to add the word ‘Public’ at the beginning to make that set of data accessible to whomever has access to the code and who ever is playing the game can experience the effect.

Doesn’t make sense? lets put it this way.

If I wanted to tinker with the gravity feature in the rigid body component, I would therefore have to change the rigid body to a ‘Public ‘ rigid body. Sounds simple going form a programming perspective, we then moved on to adding engine thrust and ship rotation. Tis is all we had done up till the end of the lesson, so as I am writing tis blog alongside many others. I am also reading through my code and revising the different types of data I can use in other projects such as my walking simulator and future projects on other software.

This slideshow requires JavaScript.

First blog from Next Gen

As this is my first blog post from Next Gen, I’m simply going to say that this year is going to be much more advanced in what I’ll be learning. Obviously I will be carrying skills from prior studies which have originated from software such as Maya, Flash and Photoshop. So mostly Adobe orientated which now has been enhanced by an online course I had taken earlier in the summer holiday with Shaw Academy. So yeah, ready and willing to go.

Over the course of two years I hope to aspire to be many famous icons of the creative media industry such as George Lucas, Phil Spencer, Christopher Nolan and many others. Each one has a specific skill out of the many which they are known for.

untitled-1-copyThe picture on the left, is a screenshot taken of a game I coded from a tutorial video Via YouTube @pointclickwin . The videos ran me through the basics of coding using the C# language in Flash to create this turret defence game from scratch. There were a few bumps along the way but later on I will start applying graphics to make the game have the environment it deserves.

Now I sit here writing this blog as part of my Next Gen portfolio, hoping that by the end of the course I could move straight to employment within the industry.