Cleaned some code, drastically reduced memory footprint.
This commit is contained in:
@ -11,6 +11,8 @@
|
||||
#include "poker/pokergame.h"
|
||||
#elif SETTING_GAME == SETTING_GAME_DAWN
|
||||
#include "dawn/dawngame.h"
|
||||
#elif SETTING_GAME == SETTING_GAME_SANDBOX
|
||||
#include "sandbox/sandboxscene.h"
|
||||
#endif
|
||||
|
||||
/** Describes the current game */
|
||||
@ -22,5 +24,7 @@ typedef struct {
|
||||
pokergame_t pokerGame;
|
||||
#elif SETTING_GAME == SETTING_GAME_DAWN
|
||||
dawngame_t dawnGame;
|
||||
#elif SETTING_GAME == SETTING_GAME_SANDBOX
|
||||
sandboxscene_t sandboxScene;
|
||||
#endif
|
||||
} game_t;
|
17
include/dawn/game/sandbox/sandboxscene.h
Normal file
17
include/dawn/game/sandbox/sandboxscene.h
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
#include "../../display/camera.h"
|
||||
#include "../../display/shader.h"
|
||||
#include "../../display/font.h"
|
||||
#include "../../display/primitive.h"
|
||||
|
||||
typedef struct {
|
||||
camera_t camera;
|
||||
} sandboxscene_t;
|
Reference in New Issue
Block a user