Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Keep On Rockin In The Free World!

Vinicius Guerrero vini-guerrero

:octocat:
Keep On Rockin In The Free World!
View GitHub Profile
@vini-guerrero
vini-guerrero / physbones.gd
Created Apr 18, 2020 — forked from and3rson/physbones.gd
Simple ragdoll physical bones creation plugin for Godot
View physbones.gd
tool
extends EditorPlugin
var button : Button
func _enter_tree():
print('physbones: plugin created')
button = Button.new()
button.text = 'CPB'
button.connect('pressed', self, 'create_physical_bones')
@vini-guerrero
vini-guerrero / Create_IsoCam.py
Created Mar 18, 2020 — forked from krasnovpro/Create_IsoCam.py
Creates a true isometric camera in blender
View Create_IsoCam.py
# This script creates two kinds of isometric cameras.
#The one, TrueIsocam called camera, is the mathematical correct isometric camera with the 54.736 rotation to get the 30 degrees angles at the sides of the rhombus.
#The other, GameIsocam called camera, is a camera with which you can render isometric tiles for a 2d game. Here we need a 60 degrees angle instedad of the 54.736 one to get a proper stairs effect and a ratio of 2:1
# Then there is the special case with a 4:3 ratio, which is button 3. You can also make 2D games with that one. The view is more topdown though as with a 2:1 ratio of the traditional game iso view.
# The fourth button creates a simple groundplane where you can place your stuff at.
#You can of course set up everything by hand. This script is a convenient solution so that you don't have to setup it again and again.
# The script is under Apache license
View __ini__py
bl_info = {
"name": "Asset Builder",
"description": "Asset Builder Addon",
"author": "Vinicius Guerrero",
"version": (1, 0, 0),
"blender": (2, 82, 0),
"location": "3D View > Tools",
"warning": "",
"wiki_url": "",
"tracker_url": "",
View GodotFireball
shader_type canvas_item;
uniform bool hide_background = true;
uniform int flame_amount = 1;
vec2 hash( vec2 p ){
p = vec2( dot(p,vec2(127.1,311.7)),
dot(p,vec2(269.5,183.3)) );
return -1.0 + 2.0 * fract(sin(p) * 43758.5453123);
}
View blender-basic-ui-example-28x.py
# https://blender.stackexchange.com/q/57306/3710
bl_info = {
"name": "Add-on Template",
"description": "",
"author": "p2or",
"version": (0, 0, 2),
"blender": (2, 80, 0),
"location": "3D View > Tools",
"warning": "", # used for warning icon and text in addons panel
@vini-guerrero
vini-guerrero / main_scene.gd
Created Apr 26, 2019
Godot-Facebook Script
View main_scene.gd
Godot Scene
Node
>>LoginButton
>>ShareButton
>>LoginStatus
extends Node
var fb
@vini-guerrero
vini-guerrero / UPNP.gd
Created Jan 29, 2019
This snippet checks if the router is available to port forward using Godot's RPC system
View UPNP.gd
extends Node2D
func _ready():
var port = 12345
var upnp = UPNP.new()
upnp.discover()
for i in range(upnp.get_device_count()):
var upnp_device = upnp.get_device(i)
print('device[',i,']:')
print('- igd_our_addr: ', upnp_device.igd_our_addr)
View authState.js
import React from 'react'
import { BrowserRouter as Router, Route, Link, Redirect, withRouter } from 'react-router-dom'
import authState from './CoreComponents/authState'
import PrivateRoute from './CoreComponents/privateRoute'
import fakeAuth from './CoreComponents/fakeAuth'
const Public = () => <h3>Public</h3>
const Protected = () => <h3>Protected</h3>
class Login extends React.Component {
You can’t perform that action at this time.