Skip to content

Commit

Permalink
N'gine 0.4.0-a
Browse files Browse the repository at this point in the history
- Añadidas las funciones de colision entre Sprites por "Pixel Perfect".
- Añadidas las sobrecargas para poder usar el tipo de dato "Vector2" en la
  mayoria de funciones de desplazamiento y de posicionamiento.
  (Translate() y Position())
  • Loading branch information
knightfox75 committed Dec 2, 2017
1 parent e2df567 commit ec8e81d
Show file tree
Hide file tree
Showing 120 changed files with 591 additions and 128 deletions.
5 changes: 4 additions & 1 deletion Docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
N'gine Changelog
--------------------------------------------------------------------------------

W.I.P.
2017-11-14 Ver.0.4.0-a
--------------------------------------------------------------------------------
- A�adidas las funciones de colision entre Sprites por "Pixel Perfect".
- A�adidas las sobrecargas para poder usar el tipo de dato "Vector2" en la
mayoria de funciones de desplazamiento y de posicionamiento.
(Translate() y Position())



Expand Down
Binary file modified Docs/user manual.esp/ngn_camera.h.pdf
Binary file not shown.
Binary file modified Docs/user manual.esp/ngn_canvas.h.pdf
Binary file not shown.
Binary file modified Docs/user manual.esp/ngn_collisions.h.pdf
Binary file not shown.
Binary file modified Docs/user manual.esp/ngn_sprite.h.pdf
Binary file not shown.
Binary file modified Docs/user manual.esp/ngn_text_layer.h.pdf
Binary file not shown.
Binary file modified Docs/user manual.esp/ngn_texture.h.pdf
Binary file not shown.
Binary file modified Docs/user manual.esp/ngn_tiledbg.h.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion Library/linux/include/ngn.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Archivo principal de la libreria
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_audio_clip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Clips de audio
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
3 changes: 2 additions & 1 deletion Library/linux/include/ngn_camera.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Camara virtual en 2D
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -128,6 +128,7 @@ class NGN_Camera {
// Selecciona donde mira la camara
void LookAt(NGN_Sprite* target_sprite); // Sigue a un sprite
void LookAt(uint32_t position_x, uint32_t position_y); // Colocala en la coordenada indicada
void LookAt(Vector2I32 pos);

// Actualiza la vista de la camara
void Update();
Expand Down
4 changes: 3 additions & 1 deletion Library/linux/include/ngn_canvas.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Canvas - Capa de dibujo
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -111,9 +111,11 @@ class NGN_Canvas {

// Posiciona la capa
void Position(float position_x, float position_y);
void Position(Vector2 pos);

// Mueve la capa
void Translate(float speed_x, float speed_y);
void Translate(Vector2 spd);

// Cambia el tamaño de la capa
void Size(float w, float h);
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_collisions.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Sistema de colisiones
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_defines.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Definiciones de prototipos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_graphics.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Gestion del Renderer de SDL
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_gui.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
GUI - Interfaz grafica de usuario
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_input.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Meotodos de entrada
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_load.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Funciones de carga de archivos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_music_clip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Clips de musica
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_render.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Gestion del Renderer de SDL
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_sound.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Sonido (sin streaming)
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
4 changes: 3 additions & 1 deletion Library/linux/include/ngn_sprite.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Sprites
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -99,9 +99,11 @@ class NGN_Sprite {

// Posiciona el sprite
void Position(float position_x, float position_y);
void Position(Vector2 pos);

// Mueve el sprite
void Translate(float speed_x, float speed_y);
void Translate(Vector2 spd);

// Cambia el tamaño del Sprite
void Size(float w, float h);
Expand Down
2 changes: 1 addition & 1 deletion Library/linux/include/ngn_system.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Funciones de sistema
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
4 changes: 3 additions & 1 deletion Library/linux/include/ngn_text_layer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Text Layer - Capa de texto con soporte TTF
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -102,9 +102,11 @@ class NGN_TextLayer {

// Posiciona la capa
void Position(float position_x, float position_y);
void Position(Vector2 pos);

// Mueve la capa
void Translate(float speed_x, float speed_y);
void Translate(Vector2 spd);

// Cambia el tamaño de la capa
void Size(float w, float h);
Expand Down
4 changes: 3 additions & 1 deletion Library/linux/include/ngn_texture.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Fondos con texturas
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -95,9 +95,11 @@ class NGN_Texture {

// Posiciona la textura
void Position(float position_x, float position_y);
void Position(Vector2 pos);

// Mueve la textura
void Translate(float speed_x, float speed_y);
void Translate(Vector2 spd);

// Cambia el tamaño de la textura
void Size(float w, float h);
Expand Down
4 changes: 3 additions & 1 deletion Library/linux/include/ngn_tiledbg.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Fondos Tileados
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -96,9 +96,11 @@ class NGN_TiledBg {

// Posiciona el fondo
void Position(float position_x, float position_y);
void Position(Vector2 pos);

// Mueve el fondo
void Translate(float speed_x, float speed_y);
void Translate(Vector2 spd);

// Escala el fondo
void Scale(float w, float h); // [Sobrecarga 1] Escala los dos ejes por separado
Expand Down
Binary file modified Library/linux/lib/libngn.a
Binary file not shown.
Binary file modified Library/linux/lib/libngn_d.a
Binary file not shown.
2 changes: 1 addition & 1 deletion Library/windows/include/ngn.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Archivo principal de la libreria
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_audio_clip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Clips de audio
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
3 changes: 2 additions & 1 deletion Library/windows/include/ngn_camera.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Camara virtual en 2D
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -128,6 +128,7 @@ class NGN_Camera {
// Selecciona donde mira la camara
void LookAt(NGN_Sprite* target_sprite); // Sigue a un sprite
void LookAt(uint32_t position_x, uint32_t position_y); // Colocala en la coordenada indicada
void LookAt(Vector2I32 pos);

// Actualiza la vista de la camara
void Update();
Expand Down
4 changes: 3 additions & 1 deletion Library/windows/include/ngn_canvas.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Canvas - Capa de dibujo
Proyecto iniciado el 1 de Febrero del 2016
Expand Down Expand Up @@ -111,9 +111,11 @@ class NGN_Canvas {

// Posiciona la capa
void Position(float position_x, float position_y);
void Position(Vector2 pos);

// Mueve la capa
void Translate(float speed_x, float speed_y);
void Translate(Vector2 spd);

// Cambia el tamaño de la capa
void Size(float w, float h);
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_collisions.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Sistema de colisiones
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_defines.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Definiciones de prototipos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_graphics.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Gestion del Renderer de SDL
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_gui.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
GUI - Interfaz grafica de usuario
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_input.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Meotodos de entrada
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_load.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Funciones de carga de archivos
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_music_clip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Clips de musica
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_render.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Gestion del Renderer de SDL
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
2 changes: 1 addition & 1 deletion Library/windows/include/ngn_sound.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******************************************************************************
N'gine Lib for C++
*** Version 0.2.1-alpha ***
*** Version 0.4.0-alpha ***
Sonido (sin streaming)
Proyecto iniciado el 1 de Febrero del 2016
Expand Down
Loading

0 comments on commit ec8e81d

Please sign in to comment.