Git Product home page Git Product logo

unity-sunnyland's Introduction

Personal Project / Summer 2020 - Ongoing

2D Plaformer created on Unity using the Sunnyland asset pack. Development is still in progress.

Main tutorial series used:

https://www.youtube.com/playlist?list=PLpj8TZGNIBNy51EtRuyix-NYGmcfkNAuH

Game playable on itch.io:

https://nekopudding.itch.io/sunnyland

Notes for Development

Fix Player from Sliding Down Ramps - can try changing rigidbody from dynamic to kinematic while touching ground

Finish Implementing Frog - add attack animations, player health & interaction scripts, enemy movement AI

Add Title Screen - create a separate scene

General Procedure for Setting up Game in Unity

  1. download required assets from asset store
  2. tilesets - reset pixels by unit to 16px, change sprite rendering to multiple and manually slice in sprite editor, create folder for tile palette and create tile palette and drag in the sprites you made, now create the scene
  3. add sorting layers for each set to order rendering
  4. add player as empty game object, drag a sprite onto it
  5. add rigidbody2d and box collider onto player, tilemap collider and rigidbody 2d onto tilemap, composite collider and used by composite
  6. attach player controller script to control movement and graphics, add camera controller to follow player
  7. create animation in selected folder, drag onto player (this will create animator, now selecting the player, drag the sprites onto the animation window, configure the animation speed and set loop time to on (by clicking in the animation folder)
  8. add animator transitions, add parameters and set conditions for transitions, then manipulate parameters within the playercontroller script using Animator
    1. set up enum State {} to control animation/movement based on current state in playercontroller
    2. change animator parameters to one called state, which you associate to State based on index number
    3. remove exit time and transition time for each transition
  9. setup prefab folder to store player data, tilemap, and sunnyland.prefab
  10. create collectibles - add sprite renderer to empty game object and drag sprite onto it, then create animation as before. Add tag and boxcollider2D with isTrigger on, now create OnTriggerEnter2D function in playerController to collect them.

unity-sunnyland's People

Contributors

nekopudding avatar

Watchers

 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.