Stampfen v0.1

This commit is contained in:
KG0104 2021-08-31 13:03:14 +02:00
parent d62637b396
commit e251b0dfb0
11 changed files with 1202 additions and 42 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ public class MouseController : MonoBehaviour
private bool isJumping;
private float moveInput;
private bool isGrounded;
public bool isGrounded;
public Transform groundcheck;
public float checkRadius;
public LayerMask whatIsGround;

View File

@ -0,0 +1,40 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class Stamping : MonoBehaviour
{
MouseController mouseController;
Rigidbody2D rb;
[SerializeField]
private float stampingSpeed = 40;
private bool isStamping = false;
// Start is called before the first frame update
void Start()
{
mouseController = GetComponent<MouseController>();
rb = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
if (!mouseController.isGrounded)
{
if (Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.DownArrow))
{
isStamping = true;
rb.velocity = Vector2.down * stampingSpeed;
}
}
else
{
isStamping = false;
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5573110b00c79574da30b77e3fc52360
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,96 @@
fileFormatVersion: 2
guid: f52088ec44739e44f8c7138a5680f3e1
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -110,7 +110,7 @@ Tilemap:
m_TileColorIndex: 0
m_TileObjectToInstantiateIndex: 65535
dummyAlignment: 0
m_AllTileFlags: 1073741825
m_AllTileFlags: 2147483649
- first: {x: 0, y: -1, z: 0}
second:
serializedVersion: 2
@ -130,6 +130,16 @@ Tilemap:
m_TileColorIndex: 0
m_TileObjectToInstantiateIndex: 65535
dummyAlignment: 0
m_AllTileFlags: 2147483649
- first: {x: 2, y: -1, z: 0}
second:
serializedVersion: 2
m_TileIndex: 11
m_TileSpriteIndex: 4
m_TileMatrixIndex: 0
m_TileColorIndex: 0
m_TileObjectToInstantiateIndex: 65535
dummyAlignment: 0
m_AllTileFlags: 1073741825
- first: {x: 0, y: 0, z: 0}
second:
@ -140,7 +150,7 @@ Tilemap:
m_TileColorIndex: 0
m_TileObjectToInstantiateIndex: 65535
dummyAlignment: 0
m_AllTileFlags: 1073741825
m_AllTileFlags: 1
m_AnimatedTiles: {}
m_TileAssetArray:
- m_RefCount: 0
@ -165,8 +175,8 @@ Tilemap:
m_Data: {fileID: 0}
- m_RefCount: 0
m_Data: {fileID: 0}
- m_RefCount: 0
m_Data: {fileID: 0}
- m_RefCount: 1
m_Data: {fileID: 11400000, guid: 9dcdb44493d5f1446a0e94bcdd43d540, type: 2}
- m_RefCount: 1
m_Data: {fileID: 11400000, guid: 91b1c5122587df240b5af8bd9b0ab0d8, type: 2}
- m_RefCount: 1
@ -182,8 +192,8 @@ Tilemap:
m_Data: {fileID: 0}
- m_RefCount: 0
m_Data: {fileID: 0}
- m_RefCount: 0
m_Data: {fileID: 0}
- m_RefCount: 1
m_Data: {fileID: 21300000, guid: f52088ec44739e44f8c7138a5680f3e1, type: 3}
- m_RefCount: 1
m_Data: {fileID: 21300000, guid: d7b29bc35d26f514bb0d2da96ae5641b, type: 3}
- m_RefCount: 1
@ -205,7 +215,7 @@ Tilemap:
- m_RefCount: 1
m_Data: {fileID: 21300000, guid: 4fe3c54ee0ed656479fc9211d82c3d1b, type: 3}
m_TileMatrixArray:
- m_RefCount: 10
- m_RefCount: 11
m_Data:
e00: 1
e01: 0
@ -224,7 +234,7 @@ Tilemap:
e32: 0
e33: 1
m_TileColorArray:
- m_RefCount: 10
- m_RefCount: 11
m_Data: {r: 1, g: 1, b: 1, a: 1}
- m_RefCount: 0
m_Data: {r: 0.0000023880602, g: 0.0000023880602, b: 0.0000023880602, a: 0.0000023880602}
@ -352,7 +362,7 @@ Grid:
m_CellGap: {x: 0, y: 0, z: 0}
m_CellLayout: 0
m_CellSwizzle: 0
--- !u!114 &4906410204629441377
--- !u!114 &595893359618566797
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

View File

@ -0,0 +1,36 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 13312, guid: 0000000000000000e000000000000000, type: 0}
m_Name: stamp_block
m_EditorClassIdentifier:
m_Sprite: {fileID: 21300000, guid: f52088ec44739e44f8c7138a5680f3e1, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Transform:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_InstancedGameObject: {fileID: 0}
m_Flags: 1
m_ColliderType: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9dcdb44493d5f1446a0e94bcdd43d540
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -15,6 +15,8 @@ TagManager:
- CheckpointManager
- PlatformBird
- Thorn
- Bullet
- Stamp
layers:
- Default
- TransparentFX

View File

@ -24,17 +24,17 @@ EditorUserSettings:
value: 22424703114646680e0b0227036c17415f573f38292d280f042d043feeaf332ae7e238d6ee3e2630353dbe6c4a2b0f36e613
flags: 0
RecentlyUsedScenePath-6:
value: 22424703114646680e0b0227036c17415f573f38292d280f042d043feeaf332ae7e238d6ee3e2630353dbe721130082beb
flags: 0
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c6c0417050c192f3a23352367083debf42d
flags: 0
RecentlyUsedScenePath-8:
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c5315001214153f2d2a352e3d143cecae2136ebf32f
flags: 0
RecentlyUsedScenePath-9:
RecentlyUsedScenePath-8:
value: 22424703114646680e0b0227036c5315001214152926227e38271427fb
flags: 0
RecentlyUsedScenePath-9:
value: 22424703114646680e0b0227036c17415f573f38292d280f042d043feeaf332ae7e238d6ee3e2630353dbe721130082beb
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
flags: 0