Skip to content
Snippets Groups Projects
Select Git revision
  • 56223c9e80157c48f216e2ee68b7435fb6543f25
  • next default protected
  • expose-touching-sectorlist-to-lua
  • expose-texture-width-and-height
  • mobj-hit-floor-hook
  • wad-start-and-end-from-srb2classic
  • fix-emerald-hunt
  • woof-midi-port
  • fix-1425
  • expose-path-traverse
  • can-hurt-self-score-fix
  • post-mobj-thinker
  • hms-useragent
  • gitlab-ci
  • nightshoopsanity
  • fullscreen-toggle
  • next-test
  • bbox
  • cmake-enable-cxx
  • master
  • more-use-afters-frees
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
  • td-release-v1.0.0
41 results

m_anigif.c

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    am_map.c 25.39 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 1993-1996 by id Software, Inc.
    // Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 1999-2020 by Sonic Team Junior.
    //
    // This program is free software distributed under the
    // terms of the GNU General Public License, version 2.
    // See the 'LICENSE' file for more details.
    //-----------------------------------------------------------------------------
    /// \file  am_map.c
    /// \brief Code for the 'automap', former Doom feature used for DEVMODE testing
    
    #include "am_map.h"
    #include "g_game.h"
    #include "g_input.h"
    #include "p_local.h"
    #include "p_slopes.h"
    #include "v_video.h"
    #include "i_video.h"
    #include "r_state.h"
    #include "r_draw.h"
    
    #ifdef HWRENDER
    #include "hardware/hw_main.h"
    #endif
    
    // For use if I do walls with outsides/insides
    static const UINT8 REDS        = (8*16);
    static const UINT8 REDRANGE    = 16;
    static const UINT8 GRAYS       = (1*16);
    static const UINT8 GRAYSRANGE  = 16;
    static const UINT8 BROWNS      = (3*16);
    static const UINT8 YELLOWS     = (7*16);
    static const UINT8 GREENS      = (10*16);
    static const UINT8 DBLACK      = 31;
    static const UINT8 DWHITE      = 0;
    
    static const UINT8 NOCLIMBREDS        = 248;
    static const UINT8 NOCLIMBREDRANGE    = 8;
    static const UINT8 NOCLIMBGRAYS       = 204;
    static const UINT8 NOCLIMBBROWNS      = (2*16);
    static const UINT8 NOCLIMBYELLOWS     = (11*16);
    
    
    // Automap colors
    #define BACKGROUND            DBLACK
    #define WALLCOLORS            (REDS + REDRANGE/2)
    #define WALLRANGE             (REDRANGE/2)
    #define NOCLIMBWALLCOLORS     (NOCLIMBREDS + NOCLIMBREDRANGE/2)
    #define NOCLIMBWALLRANGE      (NOCLIMBREDRANGE/2)
    #define THOKWALLCOLORS        REDS
    #define THOKWALLRANGE         REDRANGE
    #define NOCLIMBTHOKWALLCOLORS NOCLIMBREDS
    #define NOCLIMBTHOKWALLRANGE  NOCLIMBREDRANGE
    #define TSWALLCOLORS          GRAYS
    #define TSWALLRANGE           GRAYSRANGE
    #define NOCLIMBTSWALLCOLORS   NOCLIMBGRAYS
    #define FDWALLCOLORS          BROWNS
    #define NOCLIMBFDWALLCOLORS   NOCLIMBBROWNS
    #define CDWALLCOLORS          YELLOWS
    #define NOCLIMBCDWALLCOLORS   NOCLIMBYELLOWS
    #define THINGCOLORS           GREENS
    #define GRIDCOLORS            (GRAYS + GRAYSRANGE/2)
    #define XHAIRCOLORS           DWHITE
    
    // controls
    #define AM_PANUPKEY     KEY_UPARROW
    #define AM_PANDOWNKEY   KEY_DOWNARROW
    #define AM_PANLEFTKEY   KEY_LEFTARROW