⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chloridelevel.h

📁 c++游戏源码 素材文件 需要openAl32.dll可以在网上下载
💻 H
字号:
#ifndef CHLORIDELEVEL_H
#define CHLORIDELEVEL_H

class invasion;

using namespace llamaworks2d;

// For loading and creating objects per-level
// such as the background and obstacles. Also,
// places Captain Chloride at his starting
// position.
class chloride_level : public level
{
public:
    chloride_level();

    bool Update(
        invasion *pInvasion);

    bool RenderBackground(
        invasion *pInvasion);

    bool RenderForeground(
        invasion *pInvasion);

    bool ObjectFactory(
        FILE *levelFile,
        std::string tagToParse);

    float ChlorideStartX();
    float ChlorideStartY();
    
    // Minimum and maximum world coordinates.
    // The positive world X axis points to the
    //  right. The positive world Y axis points
    //  down. These are the same directions as
    //  the screen coordinate system.
    float MinX();
    float MinY();
    float MaxX();
    float MaxY();

private:
    // Captain Chloride's start position,
    // loaded from Invasion.xml. Used in case
    // Captain Chloride dies.
    float chlorideStartX, chlorideStartY;

    // The maximum world coordinates. The Y axis
    //  points down on the screen, just like the
    //  Y axis of the screen coordinate system.
    float maxWorldX, maxWorldY;
};

inline
float chloride_level::ChlorideStartX()
{
    return (chlorideStartX);
}

inline
float chloride_level::ChlorideStartY()
{
    return (chlorideStartY);
}

inline
float chloride_level::MinX()
{
    return (0.0);
}

inline
float chloride_level::MinY()
{
    return (0.0);
}

inline
float chloride_level::MaxX()
{
    return (maxWorldX);
}

inline
float chloride_level::MaxY()
{
    return (maxWorldY);
}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -