ゲーム Code

C# ゲーム 減速

using UnityEngine; using System.Collections; public class CarController : MonoBehaviour { float speed = 0; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if(Input.GetMouseButtonDown(0))…

JS ストッロゲーム メモ

<html lang="ja"><head> <meta charset="utf-8"> <title>スロット</title> <style> body{background: #e0e0e0;font-family: Arial,sans-serif; font-size: 16px; margin-top: 30px;text-align: center;} .panel{display: inline-block; width: 60px; padding: 7px; border-radius: 5px; margin-bottom: 15px; co…</meta></head></html>

せんだみつを C言語 メモ

#include <stdio.h> #include <time.h> #include <stdlib.h> int main(void) { int human; /* 人間の手 */ int comp; /* コンピュータの手 */ int judge; /* 勝敗 */ int retry; /* リトライ? */ srand(time(NULL)); printf("せんだみつおゲーム!\n"); do { comp = rand() % 3; /* コン</stdlib.h></time.h></stdio.h>…

C言語 clock ゲーム

#include <time.h> #include <stdio.h> #include <stdlib.h> int main(void) { // insert code here... int a,b,c; int x; clock_t start, end; double req_time; srand(time(NULL)); a = 100 + rand() % 900; b = 100 + rand() % 900; c = 100 + rand() % 900; printf("%d + %d + %dは</stdlib.h></stdio.h></time.h>…

C言語 数字当てゲーム do wihle 入力履歴表示

#include <time.h> #include <stdio.h> #include <stdlib.h> #define MAX_STAGE 10 /*最大入力回数 */ int main(void) { int i; int stage; int no; int ans; int num[MAX_STAGE]; srand(time(NULL)); ans = rand() % 1000; printf("0~999の整数を当ててください"); stage = 0; do{ prin</stdlib.h></stdio.h></time.h>…