Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 2.37 KB

README.md

File metadata and controls

51 lines (31 loc) · 2.37 KB

Zed Mart Zombiefest

Pubished By: Ruangyot Nanchiang

About This Game

alt text

Click to play on the browser!

This game is just a stupid 2D game that made by Rust Bevy from scratch.

The goal of this game is just to collect all items in the supermarket before facing the threat of ZEDDD!!!

However, the progress is proving to be quite challenging because this is my first attempt at creating a game from scratch. I'm grappling with numerous mathematics and physics aspects.

So far so good, Let's me present about mathematics and physics that used in this game step by step.

Motion

When we were young, we must have studied classical physics, which describes how the motion of objects works.

Imagine needing to walk from your house to the office. Would it be possible if you didn't have a speed, and the world didn't have time?

Exactly, isn't it? When you need to go from point A to point B, you have to walk, and as you walk, it takes time. With time in the equation, speed comes into play.

Speed is something that occurs when the distance between the starting point and destination point differs over time.

Then, the equation of motion is going to be demonstrated as shown in the picture below.

alt text

Zombie Head to Player

The direction is simply used to point the zombie towards the player to attack. This utilizes a mathematical technique known as "Vector".

At first, we find the distance between the player and the zombie, normalize the distance to move the zombie slightly based on its speed and direction towards the player. Then, kaboom!

alt text

alt text

Tech Stack

Assets Credit

Is Game Have Finished ?

First version has been finished!!!, But I'd need to add multiplayer mode in the future.