Skip to content

Instantly share code, notes, and snippets.

View RameshRavone's full-sized avatar
🧑‍🎨
Working on Lumina

Ramesh Ravone RameshRavone

🧑‍🎨
Working on Lumina
View GitHub Profile
@RameshRavone
RameshRavone / rembg.py
Created June 10, 2025 14:08
RemBG GIMP 3.0 plugin
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
# Copyright (C) 1995 Spencer Kimball and Peter Mattis
#
# gimp-tutorial-plug-in.py
# sample plug-in to illustrate the Python plug-in writing tutorial
# Copyright (C) 2023 Jacob Boerema
#
@RameshRavone
RameshRavone / gdfirebase
Created November 8, 2021 10:53
GDFirebase Installer
import os
import sys
import shutil
import urllib3
import xml.etree.ElementTree as ET
import zipfile
from os import path
from xml.dom import minidom
@RameshRavone
RameshRavone / build.gradle.template
Created February 8, 2019 02:54
Godot 3.X build.gradle.template
buildscript {
repositories {
google()
jcenter()
$$GRADLE_REPOSITORY_URLS$$
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
$$GRADLE_CLASSPATH$$
}
@RameshRavone
RameshRavone / simpleclass.cpp
Last active October 26, 2017 07:28
GDNative Template
#include <core/Godot.hpp>
#include <Reference.hpp>
using namespace godot;
class SimpleClass : public GodotScript<Reference> {
GODOT_CLASS(SimpleClass);
public:
SimpleClass() { }
@RameshRavone
RameshRavone / godot 3.0 shader
Created August 27, 2017 06:23
simple light shader for godot 3.0
shader_type canvas_item;
void fragment () {
vec2 resolution = vec2(1024, 600);
vec2 texcoord = FRAGCOORD.xy / resolution;
vec3 colours = vec3(0,0,1);
float backgroundlight = 0.35;
vec3 lightcolor = vec3(1,0,0);
@RameshRavone
RameshRavone / gd_input.gd
Created August 21, 2017 11:46
Simple godot input events
extends Control
var pressed = false
func _ready():
pass
func _gui_input(event):
if not pressed and event is InputEventMouseButton and event.is_pressed():
pressed = true
@RameshRavone
RameshRavone / GameAnalytics
Created May 26, 2017 15:48
GameAnalytics GDNative API
init(String key, String secret);
set_gender(int flag) Male = 1, Female = 2;
set_birth_year(int year)
enable_info_log(bool flag);
enabled_verbose_log(bool flag);
enable_manual_session_handling(bool flag);
set_custom_dimension1(String customDimension);
@RameshRavone
RameshRavone / SConstruct
Created May 18, 2017 10:20
SConstruct file to build GDNativie library
#!python
import os
# To compile your game code you need to run
# `scons p=linux` to compile for linux
# `scons p=windows` to compile for windows
# on linux you can optionally use `use_llvm=yes` to use clang instead of gcc
@RameshRavone
RameshRavone / firebase_storage.gd
Created April 8, 2017 05:50
Godot firebase storage
extends Node
var firebase = null;
var sqlbridge = null;
func _ready():
if OS.get_name() == "Android":
firebase = Globals.get_singleton("FireBase");
sqlbridge = Globals.get_singleton("SQLBridge");
@RameshRavone
RameshRavone / firebase_google.gd
Last active April 8, 2017 05:33
godot firebase google auth.
extends Node
var firebase = null;
var sqlbridge = null;
func _ready():
if OS.get_name() == "Android":
firebase = Globals.get_singleton("FireBase");
sqlbridge = Globals.get_singleton("SQLBridge");