Git Product home page Git Product logo

fh-player-vs-monster-turngame's Introduction

Player vs Monster Turngame
plavsmonpicture

Introduction

  • 턴제 기반으로 진행되는 몬스터와의 전투 게임.

  • It's a simple game where Me and Monster fight on a turn-based basis.



Motivation

  • 게임을 좋아하면서도 지금까지 배운 지식으로 간단한 게임을 만들 수 없을까? 란 의문에서 시작하게 됨.

  • I love game and Can't you make a simple game based on the basics you've learned so far.



Download Link

Debug exe파일은 프로그램 실행과 관련된 도구가 있어야 합니다!
The Debug exe file must have tools associated with running the program!




how to playing?


1.

k1 e1

Release에서 .exe파일을 다운받아 실행합니다.

Enter Release and download .exe file.



2.

k2 e2

공격특화, 방어특화, 밸런스형 중 하나를 선택할 수 있습니다.

You can choose Attack specialization, Defence specialization, Balanced Character.



3.

k3 e3

스토리와 함께 전투가 시작됩니다.

After the story, the battle begins.



4.

k4 e4



k5 e5

몬스터의 턴은 자동으로 진행되고, HP가 0 이하가 되면 게임이 종료됩니다!

Monster's turn is automatic. If HP is 0, the game will end.




Development Environment

  • Windows 10 / Visual Studio 2017

fh-player-vs-monster-turngame's People

Contributors

vdoring avatar

Watchers

 avatar

Forkers

pointdx

fh-player-vs-monster-turngame's Issues

1번(게임플레이)기능 상당수 구현 완료. 플레이 가능!

4가지 공격방식, 특정 공격은 확률에 따라 크리티컬이 뜰수도, 공격에 실패할수도 있습니다.
턴이 구현되었습니다.
기본적으로 나(플레이어)가 선공이며 그 이후론 몬스터가 공격합니다.(이는 한쪽이 HP가 다될때까지 계속)

기능 추가/개선해야할 것들

1.방어력에따른 데미지감소 구현하기

2.초기화 구현하기

3.종료 구현하기

4.게임이 끝나도 프로그램이 종료되지 않도록 하기

간략화된 코드와 비교했지만 여전히 원인을 찾지못함

3번. 종료를 입력해도 종료가 되지않거나 애러가 뜬다.

예상되는 증상으로는 while문이 중첩 사용되서, 한번의 break로는 완전히 나갈 수 없는점
또는 while문을 사용하지 말아야할곳까지 범위를 지정해서 사용했다 등..

일단 코드를 다시 짜봐야겠다.
1.시작 2.초기화 3.종료 부터.

나머지 부분은 크게 문제없어보인다.

3번키를 눌러도 게임이 종료되지 않는 오류. 첫번째 다시보기

While을 사용한 기본적인 시작시스템

#include <stdio.h>
int main()
{
int a, aa, b;

printf("시작.\n");

while (1) {
	printf("1.게임시작   2.초기화   3.종료\n");
	scanf("%d", &a);

	if (a == 1) {
		printf("게임캐릭터를 선택하세요\n");
		scanf("%d", &aa);
		if (aa == 99) {
			printf("메인으로 돌아감니다\n");
		}
	}
	if (a == 2) {
		printf("초기화 완료\n");
	}
	if (a == 3) {
		printf("게임이 종료됩니다.\n\n\n");
		break;
	}
}

}

수정 사항 1

한 플레이어/몬스터 턴이 지나갈때마다 턴이 지나가게 하지말고
플레이어 몬스터 = 1턴
이렇게 변경하기

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.