Skip to content

Instantly share code, notes, and snippets.

View vinod8990's full-sized avatar

Vinodkumar KN vinod8990

View GitHub Profile
@vinod8990
vinod8990 / generate.sh
Created October 24, 2016 16:19
Automate Godot export template builds with separated modules
#!/bin/sh -x
#This script generates export templates for Godot android builds
#Some of the codes from https://gist.github.com/Calinou/3e9f6a961c7c9364a681f8f1a5375247
#Copy this to Godot source directory
#Have a project structure like this
#/project
####/godot_project
####/templates
########/modules
@vinod8990
vinod8990 / cube.gd
Created March 29, 2016 02:40
Align a cube on a sphere surface
extends TestCube
export(NodePath) var cam
export(NodePath) var sphere
var from
var to
var cast
tool
extends Polygon2D
export(Texture) var top_left_texture = null
export(Texture) var top_center_texture = null
export(Texture) var top_right_texture = null
export(Texture) var right_center_texture = null
export(Texture) var left_center_texture = null
export(Texture) var bottom_left_texture = null
export(Texture) var bottom_center_texture = null
@vinod8990
vinod8990 / http.gd
Last active August 13, 2022 19:44
Http downloader class for Godot
#Http downloader class for Godot
#This is a simple http downloader class which can be used to download anything from an http url
#USAGE
#Create a new scene "http.xml", with a root Node and attach this script
#Then in other scripts where you want to download something
#var http = preload("res://http.xml").instance()
#http.connect("loading",self,"_ondownloading")
#http.connect("loaded",self,"_ondownloaded")
#http.get(domain,url,port,useSSL)