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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MouseLook : MonoBehaviour | |
{ | |
public float mouseSensitivity = 100f; | |
public Transform playerBody; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Key : MonoBehaviour | |
{ | |
[SerializeField] private KeyType keyType; | |
public enum KeyType |
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
/// @desc Variable | |
state = State.Movement; | |
acceleration = 1; | |
jump_height = 14; | |
fric = 0.3; | |
left = vk_left; | |
right = vk_right; | |
jump = vk_space; |
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
/// @desc slide_transition(mode, targetroom) | |
/// @arg mode sets transition mode between next, restart and goto. | |
/// @arg targetroom sets target room when using the goto mode | |
with (oTransition) | |
{ | |
mode = argument[0]; | |
if (argument_count > 1) target = argument[1]; | |
} |
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
instance_destroy(); |
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
///@desc nine_slice_box(sprite, x1, y1, x2, y2); | |
///@arg sprite | |
///@arg x1 | |
///@arg y1 | |
///@arg x2 | |
///@arg y2 | |
var _size = sprite_get_width(argument0) / 3; | |
var _x1 = argument1; |
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
/// disc animation_end(sprite, image, rate); | |
// or just animation_end(); | |
/// @arg sprite | |
/// @arg image | |
/// @arg rate | |
var _sprite = sprite_index; | |
var _image = image_index; |
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
window_center(); |
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
// Basic Variables | |
menu_x = x; | |
menu_y = y; | |
button_h = 24; | |
button_w =190; | |
button_padding = 10; | |
menu_index = 0; | |
last_selected = 0; | |
// Button Array |
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
menu_x = x; | |
menu_y = y; | |
button_h = 32; | |
button[0] = "New Game"; | |
button[1] = "Load Game"; | |
button[2] = "Options"; | |
button[3] = "Exit Game"; | |
buttons = array_length_1d(button); |
NewerOlder