TheMozg/awk-raycaster
소개
레이캐스팅 기법을 사용해 gawk만으로 작성한 의사 3D 슈팅 게임
게임 및 에뮬레이션측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- -1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalawkaster
Bring some old-school fun to your terminal! Explore the dungeon and shoot monsters in this pseudo-3D game inspired by the classic Wolfenstein 3D and Doom.

Running the game
gawk -f awkaster.awk
You need gawk version >= 4.0.0
OS X users must install gawk first. The easiest way to do this is to use Homebrew. Once it has been installed, run the following commands:
brew update
brew install gawk
NetBSD users require gawk. The easiest way to do it is install it with pkgin:
pkgin install gawk
Alternatively install from sources using the pkgsrc framework:
cd /usr/pkgsrc/lang/gawk && make install
OpenBSD users require gawk. The easiest way to do it is install it with pkg_add:
pkg_add gawk
Alternatively install from sources using the OpenBSD ports:
cd /usr/ports/lang/gawk && make install clean
Your machine will now be ready to run awkaster.
How to play
Your objective is to navigate the map and activate exit elevator, killing hordes of monsters in the process.
Controls:
- WASD - movement
- J/L - turn left/right. Hold shift to turn quicker
- spacebar - shoot
- num 1-4 - change color mode
- x - activate elevator (arrives after 1000 moves)
Adjusting resolution
By default game resolution is 64x48 "pixels", which are just a pair of ASCII symbols. That means your terminal needs to be at least 128 chars wide. You may change variables w and h to your liking.
Game engine
Wall rendering is done using ray casting. Monsters and projectiles are added after that as sprites. Ray casting is a simple rendering algorithm that doesn't require any 3d modeling or complex computation.
You can find an excellent tutorial here: http://lodev.org/cgtutor/raycasting.html
관련 프로젝트 살펴보기
불러오는 중…