Skip to content

mocha-kim/cub3d

Repository files navigation

cub3d

Wolfenstein 3D game 같은 초기 형태의 3D 게임을 만들어보자

  • 2021.04.05 ~ 2021.04.19

스크린샷 2023-03-30 오후 6 50 58

스크린샷 2023-03-30 오후 6 51 40

  • make 또는 make bonus로 컴파일
  • ./Cub3D [.cub파일] 로 실행
  • Cun3D
    • .cub파일 읽어와서 텍스쳐와 맵 구성(Raycast)
      • 지도는 4개의 문자로만 구성(빈 공간인 경우 0, 벽인 경우 1, 아이템은 2, 플레이어의 시작 위치와 그에 따른 시점은 N, S, E, W)
      • 예시
        R 1920 1080
        NO ./path_to_the_north_texture
        SO ./path_to_the_south_texture
        WE ./path_to_the_west_texture
        EA ./path_to_the_east_texture
        
        S ./path_to_the_sprite_texture
        F 220,100,0
        C 225,30,0
        
            1111111111111111111111111
            1000000000110000000000001
            1011000001110000002000001
            1001000000000000000000001
        111111111011000001110000000000001
        100000000011000001110111111111111
        11110111111111011100000010001
        11110111111111011101010010001
        11000000110101011100000010001
        10002000000000001100000010001
        10000000000000001101010010001
        11000001110101011111011110N0111
        11110111 1110101 101111010001
        11111111 1111111 111111111111
        
    • WASD와 방향키로 조작(이동, 회전) 가능
    • bonus → 미니맵 표시, barrel 오브젝트 충돌 시 점수 획득

norminette 되어있지 않습니다..

About

Make 3D game like Wolfenstein 3D game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published