Jump to content

User:AlexMozzarella/sandbox

From Wikipedia, the free encyclopedia

Testing here:

This is a Subheading.

[edit]

This is normal text.

This is a Subheading again, achieved with ===

[edit]

Inserting Images

[edit]
I tried uploading an image to Wikimedia Commons, and it worked.
This is alternative text.
I just found a random picture of an eggplant plant.

This is what an inserted image looks like:

Format Testing

[edit]

I want to try formatting. Let's see... Click here to go somewhere.

This is a new line? I wonder how I would do this. Here's a chemical equation:

This is a New Section

[edit]

You achieve this effect with ==.

This What a Graph Looks Like

[edit]

Lists

[edit]

This is a bullet list:

  • Eggs
  • Cheese
  • Bread

This is a numbered bullet list:

  1. Eggs
  2. Cheese
  3. Bread

Note that they indent differently.

Citing Something

[edit]

The first game published by Codegnat Studios was Acid Crest[1].

According to Google Trends, in February of 2017, there was a spike in the searches of "berries"[2].

  1. ^ "CodeGnat". itch.io. Retrieved 2020-09-30.
  2. ^ "Google Trends". Google Trends. Retrieved 2020-09-30.

Preformatted Text

[edit]
This is what preformatted text looks like. It's monospace and probably supports code pastes.

Codeblocks

[edit]

I love codeblocks. Here's one:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Experimental.Rendering.Universal;

public class Fridge : MonoBehaviour
{
    private Animator anim;
    private AudioSource source;
    public Light2D lightSource;

    private void Start()
    {
        source = GetComponent<AudioSource>();
        anim = GetComponent<Animator>();
    }

    public void SetOpen(bool state)
    {
        anim.SetBool("open", state);
    }

    private void Update()
    {
        SetGFX();
        //SetAudio();
    }

    private void SetAudio()
    {
        float targetVolume = anim.GetBool("open") ? 1 : 0;
        source.volume = Mathf.Lerp(source.volume, targetVolume, Time.deltaTime * 5);
    }
    
    private void SetGFX()
    {
        float targetIntensity = anim.GetBool("open") ? 1F - FindObjectOfType<Daystate>().TimeToPercent() : 0;
        lightSource.intensity = Mathf.Lerp(lightSource.intensity, targetIntensity, Time.deltaTime * 5);
    }
}