This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PlayerData | |
{ | |
public string Name; | |
public Vector3 Position; | |
public int Coins; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "CoreLibs/graphics" | |
import "CoreLibs/crank" | |
local numFrames=55 | |
local frames={} | |
local currentFrame=1 | |
playdate.display.setRefreshRate(50) | |
for i=1,numFrames do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Exporter : MonoBehaviour | |
{ | |
public Material[] GroundMaterials; | |
public Material[] WallMaterials; | |
public GameObject[] Walls; | |
public GameObject Ceiling; | |
public GameObject Floor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainCamera : MonoBehaviour | |
{ | |
public Transform[] Players; | |
public Vector3 Target; | |
public Vector3 BaseOffset; | |
public float Speed; | |
public float YZoomFactor; | |
public float ZZoomFactor; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////// | |
// | |
// PicaVoxel - The tiny voxel engine for Unity - http://picavoxel.com | |
// By Gareth Williams - @garethiw - http://gareth.pw | |
// | |
// Source code distributed under standard Asset Store licence: | |
// http://unity3d.com/legal/as_terms | |
// | |
///////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////// | |
// | |
// PicaVoxel - The tiny voxel engine for Unity - http://picavoxel.com | |
// By Gareth Williams - @garethiw - http://gareth.pw | |
// | |
// Source code distributed under standard Asset Store licence: | |
// http://unity3d.com/legal/as_terms | |
// | |
///////////////////////////////////////////////////////////////////////// | |
using System; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Singleton : MonoBehavior | |
{ | |
private static Singleton _instance; | |
public static Singleton Instance | |
{ | |
get { return _instance; } | |
} | |
private void Awake() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainCamera : MonoBehaviour | |
{ | |
public Transform[] Players; | |
public Vector3 Target; | |
public Vector3 BaseOffset; | |
public float Speed; | |
public float YZoomFactor; | |
public float ZZoomFactor; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEATURE: Voxel state now uses an enum with three statuses: Inactive, Active, and Hidden. When voxels are destroyed at runtime, | |
their state gets set to Hidden. Rebuild() method on Volume/Frame restores the destroyed voxels. | |
FEATURE: Marching cubes meshing mode. Looks like the Marching rendering mode in MagicaVoxel. | |
FEATURE: Customizable chunk size per volume, with non-cubic sizes supported up to 16*16*16 voxels. | |
FEATURE: Mesh Scanner. Convert a 3D model to a PicaVoxel volume. | |
FEATURE: Image import. Convert a PNG or JPG image to a voxel volume, with alpha cutout (or custom colour cutout) and optional |
NewerOlder