-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
172 changed files
with
1,549 additions
and
669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Camara virtual 2D | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
@@ -129,14 +129,10 @@ bool Demo::Awake() { | |
// Selecciona el modo grafico | ||
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false; | ||
|
||
// Pantalla completa? | ||
ngn->graphics->full_screen = false; | ||
|
||
// Vsync | ||
ngn->graphics->vsync = true; | ||
// Esconde el cursor del raton | ||
ngn->graphics->ShowMouse(false); | ||
|
||
// Debug? | ||
SDL_ShowCursor(SDL_DISABLE); | ||
ngn->system->fps_counter = false; | ||
|
||
// Fuerza la actualizacion de la pantalla | ||
|
@@ -241,14 +237,14 @@ void Demo::CreateStage() { | |
ngn->camera->PushBackground(1, bg1); | ||
ngn->camera->PushBackground(2, bg2); | ||
|
||
// Añade el sprite de la mirilla a la camara para su gestion | ||
ngn->camera->PushSprite(2, aim); | ||
|
||
// Genera los pajaros de la capa 0 y registralos en la camara(fondo) | ||
CreateBirds(0, 20, 0.33); | ||
CreateBirds(1, 15, 0.66f); | ||
CreateBirds(2, 10, 1.0f); | ||
|
||
// Añade el sprite de la mirilla a la camara para su gestion | ||
ngn->camera->PushSprite(2, aim); | ||
|
||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Camara virtual 2D | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Camara virtual 2D | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Canvas - Efectos graficos | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
@@ -108,14 +108,10 @@ bool Demo::Awake() { | |
// Selecciona el modo grafico | ||
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false; | ||
|
||
// Pantalla completa? | ||
ngn->graphics->full_screen = false; | ||
|
||
// Vsync | ||
ngn->graphics->vsync = true; | ||
// Esconde el cursor del raton | ||
ngn->graphics->ShowMouse(false); | ||
|
||
// Debug? | ||
SDL_ShowCursor(SDL_DISABLE); | ||
ngn->system->fps_counter = false; | ||
|
||
// Fuerza la actualizacion de la pantalla | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Canvas - Efectos graficos | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Canvas - Efectos graficos | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Canvas - Dibujo de formas | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
@@ -114,14 +114,10 @@ bool Demo::Awake() { | |
// Selecciona el modo grafico | ||
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false; | ||
|
||
// Pantalla completa? | ||
ngn->graphics->full_screen = false; | ||
|
||
// Vsync | ||
ngn->graphics->vsync = true; | ||
// Esconde el cursor del raton | ||
ngn->graphics->ShowMouse(false); | ||
|
||
// Debug? | ||
SDL_ShowCursor(SDL_DISABLE); | ||
ngn->system->fps_counter = false; | ||
|
||
// Fuerza la actualizacion de la pantalla | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Canvas - Dibujo de formas | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
@@ -64,8 +64,8 @@ | |
#include <ngn.h> | ||
|
||
/*** Defines ***/ | ||
#define VERTEX 8 | ||
#define SNAP 8 | ||
#define VERTEX 6 | ||
#define SNAP 16 | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Canvas - Dibujo de formas | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Uso del canvas (pintura) | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
@@ -128,14 +128,10 @@ bool Demo::Awake() { | |
// Selecciona el modo grafico | ||
if (!ngn->graphics->Init(WINDOW_TITLE, SCR_WIDTH, SCR_HEIGHT)) return false; | ||
|
||
// Pantalla completa? | ||
ngn->graphics->full_screen = false; | ||
|
||
// Vsync | ||
ngn->graphics->vsync = true; | ||
// Esconde el cursor del raton | ||
ngn->graphics->ShowMouse(false); | ||
|
||
// Debug? | ||
SDL_ShowCursor(SDL_DISABLE); | ||
ngn->system->fps_counter = false; | ||
|
||
// Fuerza la actualizacion de la pantalla | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Uso del canvas (pintura) | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Ejemplo: Uso del canvas (pintura) | ||
Proyecto iniciado el 1 de Febrero del 2016 | ||
(cc) 2016 - 2017 by Cesar Rincon "NightFox" | ||
(cc) 2016 - 2018 by Cesar Rincon "NightFox" | ||
http://www.nightfoxandco.com | ||
[email protected] | ||
|
Oops, something went wrong.