Skip to content

Instantly share code, notes, and snippets.

View bbagwang's full-sized avatar
🎮
Developing Games

BBAGWANG bbagwang

🎮
Developing Games
View GitHub Profile
@bbagwang
bbagwang / BlackToWhiteGradientPPM.cpp
Created June 16, 2019 20:14
Black to White Gradient PPM
#include <iostream>
#include <fstream>
//Gradient 함수
void Gradient(int size_x, int size_y)
{
//파일 출력
std::ofstream out("Gradient.ppm");
//PPM 헤더 설정
@bbagwang
bbagwang / MaxStepHGT.cpp
Created May 29, 2019 06:16
Hoppoing Jack
int MaxStepHGT(int n, int k)
{
int score = 0;
bool badstep = false;
for (int i = 0; i <= n; i++)
{
score += i;
if (score == k)
{
badstep = true;
#include <iostream>
using namespace std;
long findHGT(long n, long m)
{
long count = 1;
bool doOnce=false;
for(long i=1;i<=n/2;++i)
{
if (n % i == 0)
@bbagwang
bbagwang / MineCraftCharacter.cs
Created March 21, 2019 08:46
MineCraftCharacter (SkinnedMesh)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class MineCraftCharacter : MonoBehaviour
{
enum UV_Type { HEAD, BODY, LEGARM };
static float p4 = 0.0625f;
static float p8 = 0.125f;
static float p12 = 0.1875f;
@bbagwang
bbagwang / SkinnedQuad.cs
Created March 21, 2019 05:44
SkinnedQuad
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class SkinnedQuad : MonoBehaviour {
public Transform[] bones;
SkinnedMeshRenderer smr;
static public List<Vector3> vertices = new List<Vector3>();
@bbagwang
bbagwang / MineCraftCharacter.cs
Created March 19, 2019 17:15
MineCraftCharacter
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MineCraftCharacter : MonoBehaviour
{
enum UV_Type { HEAD, BODY, LEGARM };
static float p4 = 0.0625f;
static float p8 = 0.125f;
static float p12 = 0.1875f;
static float p16 = 0.25f;