Skip to main content

2D Side Scroller : Code


- .... .- -. -.- / --. --- -.. / .. - ... / --- ...- . .-. .-.-.-

Alot of the code I used to make Ninja Frog Training I either downloaded in the case of the character controller as seen left or made myself by following a guide. As such, these pieces of code have commented in them either as they come or as part of my following of the guides. I did, however, create the Hazard code from scratch as seen below. As you can see it checks the collider if it collides with an object with the player take it reloads the scene.

I also edited the Character controller to flip the player by transforming on the Y-axis 180 rather than the method it used by default which multiplied the player's local scale by minus 1.


Comments

Popular posts from this blog

The Barbican

Enemy at the Gate The Barbican estate in London features a lot of the style of architecture that I wanted to emulate in the art and design project, so for this project, I'm going to try to create my own barbican estate using the real one as the palette. To do this I'm going to create concept art using the barbican as part of a reference sandwich to create unique architecture that should both be evocative of contemporary London, retrofuturist and contain elements meant to subtly guide the player through the area to their goal.

2D Side Scroller : The Final Idea

When the rubber meets the road. The Panda here represents  Covid-19 During the course of recent events, it became clear to me that my time was somewhat limited in this project. As a result, I have elected to go with my first idea, the Dung beetle puzzle game. This should provide me with a decent opportunity to stretch myself in the implementation and iteration of mechanically without requiring nearly as much in terms of asset creation which for this project at least isn't one of the marking criteria anyway.  The Dung Beetle Puzzle Game is changing slightly to just a puzzle game but keeping the core idea of pushing a large ball around as its main mechanic. So the player characters job is to get the ball to its goal and then make their way to the exit of the stage. This gives me a solid and simple foundation to build some hopefully cool puzzles off of without bogging me down in extra systems, which if you refer to my previous ideas was rampant. Even when stating that I have eyes...

Technical tutorials : Maya

Modular Corridor Part 2 Using the pieces I made last week, I duplicated and then arranged them into a labyrinth-like structure by moving the anchor point to a corner then using snap to point to align the pieces. For the sections that didn't quite meet, I selected the vertexes of one face and snapped them to the connection point of the piece I wanted to connect to, effectively making bespoke pieces. This was very easy and relatively quick to assemble a complex structure. Using this workflow would enable me to create large spaces in a very short amount of time.