Skip to content

MinseobKimm/Journey-to-a-star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journey-to-a-star

About this game

Astar 알고리즘을 변형하여 이용한 2D맵 게임입니다.
게임의 목표는 ★(a star)에 도달하는 것 입니다.
별을 지키는 적이 플레이어를 쫓아옵니다.
적에게 잡히지 않고 최대한 빠른시간안에 별에 도달하면 됩니다.
벽을 세워서 적의 진로를 방해할 수 있습니다.
단 적과 플레이어 사이의 가능한 경로가 존재하지 않는다면 게임오버됩니다.
적은 A* 알고리즘(a star)을 이용하여 쫓아옵니다.
그리고 일반적인 A* 알고리즘과 달리 쫓아오다가도 별을 지키려하는 특성을 가집니다.
게임 클리어시 나오는 등급과 점수는 난이도가 높을수록, 시간이 조금 걸렸을수록 높습니다.

how to play

↑,←,↓,→ 또는 w,a,s,d로 캐릭터를 조작할 수 있습니다.
스페이스 바를 눌러서 벽을 설치할 수 있습니다.
시작화면에서 h를 눌러서 하드코어 모드를 플레이할 수 있습니다.

credit

Astar 알고리즘 코드는 https://github.com/ralphgoodtimes/astar-plain-c 를 사용했습니다.
Astar 알고리즘을 공부하며 개인블로그에 내용을 간단히 정리해 두었습니다. https://minseob.tistory.com/13
이 게임에 대한 조금 더 자세한 설명은 제 블로그에 있습니다. https://minseob.tistory.com/16

License

The class is licensed under the MIT License:

Copyright © 2021 Minseob kim

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

using Astar 2d simple console game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages