GithubHelp home page GithubHelp logo

alexsilva27 / madkart Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 22.23 MB

A Unity 2022 LTS sample project to help you get started building a mobile arcade kart game.

License: MIT License

C# 36.66% ShaderLab 53.96% HLSL 9.38%
android blender camera car colliders kart physics tiles unity urp

madkart's Introduction

MadKart

A unity 2022 LTS sample project to help you get started building a mobile arcade kart game.

screenshot1 screenshot2 screenshot3

Key points:

  1. An arcade kart controller based on a sphere-shaped non-kinematic rigid body (so no wheel colliders or other type of colliders are used).
  2. A tile-based track system. A track is made of several tiles assembled together. All tiles have the same size (1f x 1f) and can be rotated by increments of 90 degrees.
  3. A simple camera follow controller.
  4. A blender file where you can see on how to create more tiles following a non destructive workflow approach by using geometry nodes and other type of modifiers.
  5. Tracks do not need to belong to unity scenes. A json file is used to specify the layout of a track. This open the possibility for the player to create his own tracks.
  6. A unity editor window (BuildMapWindow.cs) so you can generate the track json file according to the content of the currently active scene.
  7. Collider.ClosestPoint(Vector3 point) support for non-convex mesh collider (which is not supported by Unity).
  8. The ground where the kart is moving on can be made of any type of colliders, including non convex mesh colliders.
  9. Great physics performance in the editor or on mobile devices even with extensive usage of non-convex mesh colliders.
  10. Physics global settings (Project Settings > Physics, Project Settings > Time > Fixed TimeStep) heavily tunned for a smooth kart driving experience.
  11. As with most mobile kart games, the player does not control kart acceleration or breaking. For steering, press key "A" or "D" or press one of the two buttons on screen.

How to run in the editor:

Open scene SampleScene and hit button Play.

How to run on android:

In Build Settings, make sure that platform is set to android and then hit button Build.

madkart's People

Contributors

alexsilva27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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.