applied fixes for windows compatibility, needs cleanup
This commit is contained in:
+2
-2
@@ -389,8 +389,8 @@ void View::DrawUi () {
|
||||
|
||||
ViewState current_view_state = GetViewState();
|
||||
|
||||
SelectFont ("console.ttf size=12");
|
||||
Engine::GUI::Label (99999, GetStringViewState(current_view_state), 8, 16);
|
||||
// SelectFont ("console.ttf size=12");
|
||||
// Engine::GUI::Label (99999, GetStringViewState(current_view_state), 8, 16);
|
||||
|
||||
switch (current_view_state) {
|
||||
case ViewStateMainMenu:
|
||||
|
||||
+10
-1
@@ -9,10 +9,19 @@
|
||||
#include "Physics.h"
|
||||
#include "EntityFactory.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main (int argc, char* argv[]) {
|
||||
cout << "Game Start" << endl;
|
||||
|
||||
#ifdef WIN32
|
||||
HWND hWnd = GetConsoleWindow();
|
||||
ShowWindow( hWnd, SW_HIDE );
|
||||
#endif
|
||||
|
||||
Engine::Engine engine;
|
||||
|
||||
@@ -39,7 +48,7 @@ int main (int argc, char* argv[]) {
|
||||
else
|
||||
SDL_WM_SetIcon(image,NULL);
|
||||
|
||||
SDL_WM_SetCaption("Asteroids -Leaked TechDemo-","Asteroids -Leaked TechDemo-");
|
||||
SDL_WM_SetCaption("Asteroids -BETA1-","Asteroids -BETA 1-");
|
||||
|
||||
engine.GetView()->SetGridSize (8,8);
|
||||
dynamic_cast<asteroids::Physics*>(engine.GetPhysics())->SetWorldSize (28, 20);
|
||||
|
||||
Reference in New Issue
Block a user