This file contains hidden or 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
/* | |
* StandaloneTimer.cs | |
* A component mimcking the behaviour of Godot Engine's | |
* Timer node in a simple way. Written for Unity C#. | |
* | |
* LICENSE | |
* | |
* Copyright 2022-2025 waimus | |
* | |
* Permission is hereby granted, free of charge, to any person |
This file contains hidden or 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
// valac --pkg json-glib-1.0 json_parse_build.vala | |
using Json; | |
const string JSON_PATH = "/path/to/file.json"; | |
int main() { | |
build_example(); | |
read_example(); | |
return 0; | |
} |
This file contains hidden or 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
# No warranty to immediately work. May need additional configuration | |
export(float) var jump_height : float = 64.0 | |
var world_gravity : Vector3 = Vector3.DOWN * 10.0 | |
var move_velocity : Vector3 = Vector3.ZERO | |
# Handle player jump movement implenented with KinematicBody | |
func action_input_jump(delta : float) -> void: | |
world_gravity = Vector3.DOWN * 10 |
OlderNewer