wb14123
V2EX  ›  问与答

游戏中的地图类你们怎么起名字?

  •  
  •   wb14123 · Aug 7, 2014 · 5372 views
    This topic created in 4477 days ago, the information mentioned may be changed or developed.
    想叫做Map,但是很多语言也自带Map类,可能一不小心就用混了。还有没其他好的名字代替?
    13 replies  •  2014-08-07 12:52:46 +08:00
    46fo
    46fo
    Aug 7, 2014
    1
    ditu

    哈哈哈哈 赶紧娶个会去变量名的媳妇吧
    v2gba
    v2gba
    Aug 7, 2014 via iPhone
    2
    gamemap
    lhj2100
    lhj2100
    Aug 7, 2014
    3
    stage 或者area 或者StageArea
    crazybubble
    crazybubble
    Aug 7, 2014
    4
    Grid
    Tonni
    Tonni
    Aug 7, 2014
    5
    diTuLei1
    diTuLei2
    ...
    蛤蛤
    GordianZ
    GordianZ
    Aug 7, 2014
    6
    Level
    mhtt
    mhtt
    Aug 7, 2014
    7
    chuangshi_
    acros
    acros
    Aug 7, 2014
    8
    用的C++,所以地图类叫CMap。
    ffffwh
    ffffwh
    Aug 7, 2014
    9
    游戏名缩写+Map
    raincious
    raincious
    Aug 7, 2014
    10
    Atlas?
    allenforrest
    allenforrest
    Aug 7, 2014
    11
    你的游戏叫啥名字,或者基本的框架叫啥名字,取两个首字母缩写 + Map。
    abscon
    abscon
    Aug 7, 2014 via Android
    12
    @acros 对加前缀的方案无爱。
    用名字空间啊

    namespace Game { class Map; }

    Game::Map map;
    一路读下来多顺口
    wherefor
    wherefor
    Aug 7, 2014
    13
    没有起名叫matrix的,不科学。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2593 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 11:14 · PVG 19:14 · LAX 03:14 · JFK 06:14
    ♥ Do have faith in what you're doing.