This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <time.h> | |
#define ARRAY_SIZE 1000000 | |
int compare(const void *a, const void *b) | |
{ | |
int ia = *(int*)a; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/ripple_shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_amount ("_amount", Range(0.01, 1.0)) = 0.5 | |
_spread ("_spread", Range(0.01, 1.0)) = 0.5 | |
_width ("_width", Range(0.01, 1.0)) = 0.5 | |
_alpha ("_alpha", Range(0.01, 1.0)) = 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dotNetDave's (David McCarter) Editor Config - dotNetTips.com | |
# Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5 | |
# Updated May 2, 2024 | |
# dotNetDave's NEW coding standards book is available at: https://bit.ly/CodingStandards8 | |
# Rockin' the Code World with dotNetDave (weekly live show): https://bit.ly/RockinCodeWorldShows | |
root = true | |
# All Files | |
[*] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Platform : MonoBehaviour { | |
SpriteRenderer playerGraphic; | |
Rigidbody2D playerBody; | |
BoxCollider2D playerBox; | |
CircleCollider2D playerCircle; | |
float padTop = -0.2f; // Padding applied to the top of feet platform checks (prevents player from barely standing on platform) |