Skip to content

Instantly share code, notes, and snippets.

View Janglee123's full-sized avatar

Meru Patel Janglee123

View GitHub Profile
@Janglee123
Janglee123 / main.rs
Last active September 29, 2023 12:02
Dumb wip ecs engine
use std::any::{Any, TypeId};
use std::collections::HashMap;
use std::fmt::Debug;
use std::hash::{Hash};
use std::hint::black_box;
use std::io::Read;
use std::marker::PhantomData;
use std::time::Instant;
use rand::Rng;
class_name Hexer
const SQRT_THREE := 1.7320508075688772
const SQRT_THREE_HALF := 0.8660254037844386
const axial_direction_vectors: Array[Vector2i] = [
Vector2i(+1, 0), Vector2i(+1, -1), Vector2i(0, -1),
Vector2i(-1, 0), Vector2i(-1, +1), Vector2i(0, +1),
]
@Janglee123
Janglee123 / README.md
Last active August 28, 2020 12:04
Google Summer of Code 2020 Final Work Submission

Google Summer of Code 2020 Final Work Submission

Description

Godot 3.2 introduced the version control system(VCS). The initial project to integrate VCS (Version Control System) into Godot was created in GSoC 2019 by Twarit Waikar. It introduced in-editor GUI, an interface and git-plugin. The interface provides API points to communicate with the in-editor GUI. Any version control framework can be implemented on top of the interface API.

The project has three main goals.

1. Imporving interface for seemless intigration between the editor and plugins

@Janglee123
Janglee123 / 27-aug.md
Last active August 28, 2020 09:29
GSoC Project reports
@Janglee123
Janglee123 / em-algo.ipynb
Created May 25, 2020 11:55
EM Algo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Janglee123
Janglee123 / LevelLoader.gd
Created January 1, 2020 16:00
Godot Level Loader
extends Node
onready var scene_tree: = get_tree()
var _path: = "res://src/Levels/Levels/"
var _levels: = []
var _level_index: = -1
var _level
var _container
@Janglee123
Janglee123 / var-syntax-errors.js
Created March 25, 2019 17:01 — forked from ramsunvtech/var-syntax-errors.js
Various Syntax Error for var variables on Typo mistakes
/*
* Below are the possible syntax errors with all stupid typo mistakes for var variables.
* Tested in Chrome, Firefox, Safari and IE Edge.
* Venkat.R
*/
// var a=
// Chrome - SyntaxError: Unexpected end of input
// Firefox - SyntaxError: expected expression, got end of script
// Safari - SyntaxError: Unexpected EOF
@Janglee123
Janglee123 / launch.json
Last active March 16, 2019 08:09
Godot-VSCode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",