Game
TwoDoors



4 years ago

[v0.3.1]

-Vases now break when dropped from greater heights : )

-UI now has scroll functionality.

-The player can finally now jump.

-----------------------------------

▼---Impact Detection Code---▼


The Code for the impact detection:

		
			if(Mathf.Abs(Mathf.Abs(v.magnitude) - Mathf.Abs(rb.velocity.magnitude)) >= 3.5f)
{
    Break();
}
    v = rb.velocity;
		
	

->Works for Unity

Basically it just checks the difference between the velocity from the last frame against the current velocity and if the velocity diference is to great than the vase breaks.

I am not sure if there is a better method, but after looking for a pre-implemented "impact-strenght" or somthing like that in the "OnCollisionEnter()" or the "Rigidbody" itself and not finding anything. This did the trick : )

PS: the 3.5f is the mimimum impact-strenght required for the vase to break.



0 comments

Loading...

Next up

My entry for the GMTK Game-Jam 2020 is now online:

https://gamejolt.com/games/ricochetrampage/515711

I will now continue development on TwoDoors, v0.4.0 should be live within the coming week.

Interesting

[v0.4.0]

-There now are retractable Spikes/Blocks (crates on moving blocks are still buggy, trigger the blocks to move then put the crate on it)

-3 new Level !!!

-Buttons now have a "click" sound

-Jump now has a sound

[v0.1.1] New Game I made during Weekend-Jam#02 https://itch.io/jam/weekend-jam-2

Tower-Defense/Puzzle Game

Updates coming soon : )

[Announcement] I will no longer be working on TwoDoors

I got stuck redoing the art in the game (see screenshots).

There are going to be new games on my profile.

[v0.2] This update, was mainly focused on quality of life changes, f. e. that crates now interrupt lasers when held.

Some confusing parts have been reworked, as well as the progression/pacing of the puzzles.

Plus some new models and bugg-fixes.

[v0.3] Web / Linux / Mac support has been added. As stated in the 'Readme.txt' file, I currently do not have acces to Linux or Mac OS and therefore it is difficult to check for buggs.

I will try to set up a harddrive with Linux for testing in the future.

[v0.4.1]

-Dynamic loading/unloading of level (see gif)

-reworked the last two sections, added in v0.4.0

-added new model for the small crate

-improved audio-mixing

-crates now break when walking through doors

[v0.4.2] (https://gamejolt.com/games/TwoDoors-Game/511189)

-New Save-System

-Version/Update hint

Sorry for the long wait, I had some problems getting the Save-System up and running.

-----------------------------------

▼---Save System Code---▼

[v0.2.0]

-Added VFX (see in gifs)

-Added Defeat Animation (see in gif)

-fixed bugs/issues