How to play:

mouse to shoot projectiles,

space to reset the scene

'd' to turn debug mode on/off


to use scripts the destructive object is the most important as it allows the player to destroy an object through collisions so the script is only required on objects that can break others and you can control whether or not an object can be destroyed through the layers and tags. the object time out is a script for performance that removes a rigidbody should an object stop moving and prefab destruction script simply holds the replacement prefab so the destruction script can find it. feel free to use all of these and make any changes you would like.


https://github.com/nedsimon100/Destructable-Environment/tree/main?tab=readme-ov-...


BSD 2-Clause License  Copyright (c) 2024, Ned Simon All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this    list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice,    this list of conditions and the following disclaimer in the documentation    and/or other materials provided with the distribution.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Updated 8 days ago
Published 17 days ago
StatusPrototype
CategoryAssets
Authorned

Download

Download NowName your own price

Click download now to get access to the following files:

scripts.zip 3 kB

Leave a comment

Log in with itch.io to leave a comment.