Giter VIP home page Giter VIP logo

colayue / unity-football-freekick-game Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mertusta1996/unity-football-freekick-game

0.0 0.0 0.0 19.42 MB

This project is the creation of a "football freekick mechanism" similar to the "FIFA 23" video game's freekick mechanism, in Unity 3D game engine by a software developer named Mert Usta.

License: MIT License

C# 13.90% HLSL 12.75% ShaderLab 73.35%

unity-football-freekick-game's Introduction

Unity-Football-Freekick-Game

This project is the creation of a "football freekick mechanism" similar to the "FIFA 23" video game's freekick mechanism, in Unity 3D game engine by a software developer named Mert Usta.

There are some demo gifs for my project :

  • Freekick Demo :

freekick demo

  • Penalty Demo :

penalty demo

  • Angled Freekick Demo :

angled freekick demo

  • Long Distance Freekick Demo :

long distance freekick demo

  • Project's Sounds Demo :
freekick.sound.demo.mp4

What is freekick ?

  • Football "Freekick" is kicking action to ball in the field of play. Players could "shoot" or "pass" the ball to the target for taking an advantage.

FIFA 23 video game's Freekick System

IMAGE ALT TEXT

How to play?

  • In this game project; there are states of freekick mechanism : "freekick position selection", "shoot" and "new freekick". When shooting completed, player could take new freekick again.

"Freekick Position Selection"

freekick position selection

  • Player could change "ball's position" with using "W","A","S","D" keys and moves the ball position.

  • Player could set the finalized "ball's position" with pressing "Enter" key.

"Shoot"

shoot

  • Player could set "ball hit point" with using "W","A","S","D" keys.

  • Player could change "ball kick angle" with using "Right Arrow" and "Left Arrow" keys.

  • Player could shoot with holding "Space" key. For adding more power to ball, holding "Space" button more longer. (Power bar is in Bottom-Right corner of canvas.)

"New Freekick"

  • When shooting completed, player could take a new freekick with pressing "Enter" key.

Additional Settings

  • Player could open/close the visibility of "Football Stadium" with pressing "F" key.

open or close the visibility Stadium

  • Player could change the height of freekick camera with using "Mouse Scroll" input.

height of freekick camera

What were the subjects focused on?

  • Creating a game mechanism clearly playable. (In my opinion, "FIFA 23" has wonderful "freekick mechanism" and I played so much time in this, I wanted design and code a game module like this.)
  • Goal's "Net" is an important part of a football game. I used Unity's "Cloth" feature for it.
  • Easy implementation of UI and making canvas simple.
  • Adding sounds and handling the sound's "pitch" value with ball's "power" variable and "distance with camera". (For calculating and generating sounds everytime and using sounds more realistic)
  • Creating a trajectory line renderer for bezier lines.
  • Designed a curve movement of gameObject (for the ball's movement), with not a complicated programming solution.
  • Finding and using free 3D models, free textures, free sound effects for any usage. (Sources : sketchfab.com, textures.com, creazilla.com, pixabay.com, flaticon.com)
  • Thinking and understanding how a game module could work, then I designed and coded this game module with my own ways.

Author

  • Mert Usta

unity-football-freekick-game's People

Contributors

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