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
class_name Actor | |
extends KinematicBody2D | |
# Input | |
var pressing_jump = false | |
var pressing_attack = false | |
var input_direction = Vector2.ZERO | |
# Movement constants | |
export var jump_height = 100 |
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_type spatial; | |
render_mode depth_draw_opaque,cull_back; | |
uniform float fov : hint_range(20, 120) = 40; | |
const float M_PI = 3.14159265359; | |
void vertex() { | |
// recreate the camera projection matrix with our custom fov value | |
float scale = 1.0 / tan(fov * 0.5 * M_PI / 180.0); | |
PROJECTION_MATRIX[0][0] = scale / (VIEWPORT_SIZE.x / VIEWPORT_SIZE.y); |
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
from PIL import Image, ImageOps | |
import argparse | |
import os | |
""" | |
Resizing Images Python Script | |
Author: Riordan Callil 2023 (riordancallil@outlook.com) | |
Main uses: | |
- resizing a bunch of images for game development. Source images can be very large, i.e. 4K |