マガジンのカバー画像

c言語ゲームプログラムサンプル集

5
運営しているクリエイター

#Enemy

RPG

#include <stdio.h> #include <stdlib.h> #include <time.h>

int main() {
srand(time(NULL));

printf("Welcome to the RPG game!\n");

//ここにゲームのループを書きます
struct Player {
char nam

もっとみる