GithubHelp home page GithubHelp logo

melodymorse / 2d-movement Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brackeys/2d-movement

0.0 0.0 0.0 17.36 MB

Project files for our tutorial on 2D Movement in Unity.

Home Page: https://youtu.be/dwcT-Dch0bA

C# 100.00%

2d-movement's Introduction

2D Movement

Mel's Edit: I was inspired to do a little work on Brackey's 2D Character controller that I think makes the script more user friendly

Major changes Fields: m_jumpForce has been replaced with jumpHeight, which stores the number of units the character's jump height is to be. runSpeed has been moved from PlayerMovement.cs to CharacterController2D.cs. I thought it was akward how runSpeed was the only field related to adjusting character movement that wasn't on the character controller script so I moved it. Character will now run at runSpeed units per second.

I added a custom editor script to the charachter controller so that there are now arrow handles on the player to adjust jumpHeight and runSpeed in the scene view if the user wishes, as well as a visual representation of the player's jump arc at runSpeed

NOTE: I still need to do some tests to verify jump arc is 100% accurate. At worst right now it is still a close representation. Just a heads up if you want to use it. Project files for our tutorial on 2D Movement in Unity.

End Mel's Edit

The complete Unity project is under "2D Movement" and the newest version of the CharacterController2D can be found here.

The asset pack used for the environment is Sunny Land which you can download here.

Check out our YouTube Channel for more tutorials.

2d-movement's People

Contributors

melodymorse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.