Skip to content

Instantly share code, notes, and snippets.

View maxkcy's full-sized avatar

maxkcy

View GitHub Profile
@maxkcy
maxkcy / gist:d8407c1f2c1cb3a8b46af43e8372861e
Last active August 28, 2024 06:43
Mesh Generation for 3D Graphing calculator in Unity
// 8-27-24
// This is the code for my youtube video https://youtu.be/Orfc-HsCI_s. It is only for generating the front mesh of the 6 sides.
// I hope you will be able to figure out how to make the rest of the sides.
// (The reason I have not put the rest of the code below is because I am not following DRY, and don't want to refactor the code rn.)
// I don't believe this is a good method for generating the mesh, but I was just unable to think of a better way.
// This is just something simple that returns a passing result. If you know how to, or have any idea, please share with me.
// I'd like of know different ways to create a 3D mesh.
// Furthermore, to solve a 3D equation, in here, because it is for testing, I've provided a hard coded equation.
public int resolution = 100;
@maxkcy
maxkcy / HijackedBaseTmxMapLoader.java
Created November 20, 2020 23:59 — forked from doriancransac/HijackedBaseTmxMapLoader.java
A hijacked TileMap loader for libgdx which works in headless context (i.e without ANY Gdx context)
import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetLoaderParameters;
import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;
import com.badlogic.gdx.assets.loaders.FileHandleResolver;
import com.badlogic.gdx.assets.loaders.TextureLoader;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.maps.*;