Skip to content

Instantly share code, notes, and snippets.

View dntf-studio's full-sized avatar
💾
Working from home

dntf-studio

💾
Working from home
View GitHub Profile
@dntf-studio
dntf-studio / rayCaster.cs
Created February 20, 2022 04:02
Raycasterを試す
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class rayCaster : MonoBehaviour
{
[SerializeField, Range(5, 30)]
int raySize = 10;
public GameObject block;
@dntf-studio
dntf-studio / random.py
Created November 15, 2022 13:44
Omikuzi generator for begginer;
import random
randomNum = random.randint(1,5)
if randomNum == 1:
print("小吉")
elif randomNum == 2:
print("中吉")
else:
print("大吉")
import random
class Janken:
def __init__(self):
#相手の手
self.opponent = self.getOpponent()
#プレイヤーの手
self.player = self.getPlayer()
if self.judge():
@dntf-studio
dntf-studio / game1.py
Created December 31, 2022 03:13
Tic-Tac-Toe with TKinter
import tkinter as tk
from tkinter import messagebox
from functools import partial
import random
import sys
screenHeight = 390
screenWidth = 390
class Application(tk.Frame):
@dntf-studio
dntf-studio / ItemInventory.cs
Created December 30, 2023 12:43
インベントリ用クラス
using System.Collections;
using System.Collections.Generic;
using System.Data;
using UnityEngine;
public interface IItemManager
{
void AddItemOnce(ItemData item);
void RemoveItemOnce(ItemData item);
void AddItem(ItemData item, int num);