wb14123
V2EX  ›  问与答

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

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

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

    namespace Game { class Map; }

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