diff --git a/plataformas/Debug/plataformas.exe.recipe b/plataformas/Debug/plataformas.exe.recipe index ce2d8b2..9fefe7c 100644 --- a/plataformas/Debug/plataformas.exe.recipe +++ b/plataformas/Debug/plataformas.exe.recipe @@ -2,7 +2,7 @@ - C:\Users\uo276406\Desktop\plataformas\Debug\plataformas.exe + C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\Debug\plataformas.exe diff --git a/plataformas/Debug/plataformas.ilk b/plataformas/Debug/plataformas.ilk index 5a0d44d..c0bf5bf 100644 Binary files a/plataformas/Debug/plataformas.ilk and b/plataformas/Debug/plataformas.ilk differ diff --git a/plataformas/Debug/plataformas.log b/plataformas/Debug/plataformas.log index 8a6b707..84cec5b 100644 --- a/plataformas/Debug/plataformas.log +++ b/plataformas/Debug/plataformas.log @@ -1,101 +1,30 @@ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(513,5): warning MSB8028: El directorio intermedio (Debug\) contiene archivos compartidos de otro proyecto (NavesL4.vcxproj). Esto puede dar lugar a un comportamiento incorrecto de limpieza y recompilación. - Actor.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Actor.cpp(13,12): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Actor.cpp(14,12): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Actor.cpp(33,32): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos - Animation.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(11,21): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(12,22): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(13,20): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(14,21): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(29,13): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(30,13): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(54,26): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(62,20): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Animation.cpp(63,20): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos - Background.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Background.cpp(19,9): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos - Enemy.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Enemy.cpp(8,57): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Enemy.cpp(8,50): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Enemy.cpp(11,63): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Enemy.cpp(11,56): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Enemy.cpp(65,31): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos - Game.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Audio.h(6,10): warning C4067: símbolos (token) inesperados después de la directiva del preprocesador; se esperaba una nueva línea -C:\Users\uo276406\Desktop\plataformas\plataformas\Game.cpp(68,56): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Game.cpp(68,35): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos GameLayer.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Audio.h(6,10): warning C4067: símbolos (token) inesperados después de la directiva del preprocesador; se esperaba una nueva línea -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(14,95): warning C4305: 'argumento': truncamiento de 'double' a 'float' -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(24,66): warning C4305: 'argumento': truncamiento de 'double' a 'float' -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(55,13): warning C4244: 'inicializando': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(56,13): warning C4244: 'inicializando': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(164,35): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(164,26): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(167,39): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(170,43): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(170,34): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(173,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(173,33): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(180,51): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(180,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(181,39): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(193,43): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(193,34): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(196,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(196,33): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(203,35): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(203,26): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(209,43): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(209,34): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(212,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(212,33): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(332,24): warning C4244: '=': conversión de 'double' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\GameLayer.cpp(339,24): warning C4244: '=': conversión de 'double' a 'float'; posible pérdida de datos - Layer.cpp - Main.cpp - MenuLayer.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\MenuLayer.cpp(91,38): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\MenuLayer.cpp(91,29): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos - Pad.cpp - Player.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Audio.h(6,10): warning C4067: símbolos (token) inesperados después de la directiva del preprocesador; se esperaba una nueva línea -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(11,10): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(11,3): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(13,10): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(13,3): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(16,10): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(16,3): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(18,10): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(18,3): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(19,68): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(19,61): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(21,69): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(21,62): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(23,76): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(23,69): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(25,77): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(25,70): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(27,77): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(27,70): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(137,46): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(137,43): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(150,32): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Player.cpp(154,33): warning C4244: 'argumento': conversión de 'int' a 'float'; posible pérdida de datos - Projectile.cpp - Space.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(32,30): warning C4244: 'inicializando': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(62,26): warning C4244: '=': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(69,30): warning C4244: 'inicializando': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(101,26): warning C4244: '=': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(108,30): warning C4244: 'inicializando': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(140,26): warning C4244: '=': conversión de 'int' a 'float'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(148,30): warning C4244: 'inicializando': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Space.cpp(181,26): warning C4244: '=': conversión de 'int' a 'float'; posible pérdida de datos - Text.cpp -C:\Users\uo276406\Desktop\plataformas\plataformas\Text.cpp(5,12): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos -C:\Users\uo276406\Desktop\plataformas\plataformas\Text.cpp(6,12): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos - Tile.cpp - Generando código... - plataformas.vcxproj -> C:\Users\uo276406\Desktop\plataformas\Debug\plataformas.exe +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\Audio.h(6,10): warning C4067: símbolos (token) inesperados después de la directiva del preprocesador; se esperaba una nueva línea +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(14,95): warning C4305: 'argumento': truncamiento de 'double' a 'float' +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(24,66): warning C4305: 'argumento': truncamiento de 'double' a 'float' +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(55,13): warning C4244: 'inicializando': conversión de 'int' a 'float'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(56,13): warning C4244: 'inicializando': conversión de 'int' a 'float'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(164,35): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(164,26): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(167,39): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(170,43): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(170,34): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(173,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(173,33): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(180,51): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(180,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(181,39): warning C4244: '=': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(193,43): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(193,34): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(196,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(196,33): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(203,35): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(203,26): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(209,43): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(209,34): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(212,42): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(212,33): warning C4244: 'argumento': conversión de 'float' a 'int'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(343,24): warning C4244: '=': conversión de 'double' a 'float'; posible pérdida de datos +C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\plataformas\GameLayer.cpp(350,24): warning C4244: '=': conversión de 'double' a 'float'; posible pérdida de datos + plataformas.vcxproj -> C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\Debug\plataformas.exe diff --git a/plataformas/Debug/plataformas.tlog/CL.command.1.tlog b/plataformas/Debug/plataformas.tlog/CL.command.1.tlog index c1710cf..c7cebb0 100644 Binary files a/plataformas/Debug/plataformas.tlog/CL.command.1.tlog and b/plataformas/Debug/plataformas.tlog/CL.command.1.tlog differ diff --git a/plataformas/Debug/plataformas.tlog/CL.read.1.tlog b/plataformas/Debug/plataformas.tlog/CL.read.1.tlog index b333d1b..d49f5e2 100644 Binary files a/plataformas/Debug/plataformas.tlog/CL.read.1.tlog and b/plataformas/Debug/plataformas.tlog/CL.read.1.tlog differ diff --git a/plataformas/Debug/plataformas.tlog/CL.write.1.tlog b/plataformas/Debug/plataformas.tlog/CL.write.1.tlog index f28b9dd..d8a8087 100644 Binary files a/plataformas/Debug/plataformas.tlog/CL.write.1.tlog and b/plataformas/Debug/plataformas.tlog/CL.write.1.tlog differ diff --git a/plataformas/Debug/plataformas.tlog/link.command.1.tlog b/plataformas/Debug/plataformas.tlog/link.command.1.tlog index 264d685..030fe66 100644 Binary files a/plataformas/Debug/plataformas.tlog/link.command.1.tlog and b/plataformas/Debug/plataformas.tlog/link.command.1.tlog differ diff --git a/plataformas/Debug/plataformas.tlog/link.read.1.tlog b/plataformas/Debug/plataformas.tlog/link.read.1.tlog index 7c6cc84..112d207 100644 Binary files a/plataformas/Debug/plataformas.tlog/link.read.1.tlog and b/plataformas/Debug/plataformas.tlog/link.read.1.tlog differ diff --git a/plataformas/Debug/plataformas.tlog/link.write.1.tlog b/plataformas/Debug/plataformas.tlog/link.write.1.tlog index b2861c1..aaffd8f 100644 Binary files a/plataformas/Debug/plataformas.tlog/link.write.1.tlog and b/plataformas/Debug/plataformas.tlog/link.write.1.tlog differ diff --git a/plataformas/Debug/plataformas.tlog/plataformas.lastbuildstate b/plataformas/Debug/plataformas.tlog/plataformas.lastbuildstate index 17fbf59..36ade33 100644 --- a/plataformas/Debug/plataformas.tlog/plataformas.lastbuildstate +++ b/plataformas/Debug/plataformas.tlog/plataformas.lastbuildstate @@ -1,2 +1,2 @@ -PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30037:TargetPlatformVersion=10.0.19041.0: -Debug|Win32|C:\Users\uo276406\Desktop\plataformas\| +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|C:\Users\diego\OneDrive\Escritorio\SEV\plataformas\| diff --git a/plataformas/Debug/vc142.idb b/plataformas/Debug/vc142.idb index 986880b..f3bb6d2 100644 Binary files a/plataformas/Debug/vc142.idb and b/plataformas/Debug/vc142.idb differ diff --git a/plataformas/Debug/vc142.pdb b/plataformas/Debug/vc142.pdb index afbb491..8d2b53f 100644 Binary files a/plataformas/Debug/vc142.pdb and b/plataformas/Debug/vc142.pdb differ diff --git a/plataformas/Enemy.cpp b/plataformas/Enemy.cpp index 74744a7..f699ab4 100644 --- a/plataformas/Enemy.cpp +++ b/plataformas/Enemy.cpp @@ -1,5 +1,7 @@ +#include "Actor.h" #include "Enemy.h" + Enemy::Enemy(float x, float y, Game* game) : Actor("res/enemigo.png", x, y, 36, 40, game) { diff --git a/plataformas/Enemy.h b/plataformas/Enemy.h index d2377de..7bb5b75 100644 --- a/plataformas/Enemy.h +++ b/plataformas/Enemy.h @@ -7,6 +7,7 @@ class Enemy : public Actor { public: Enemy(float x, float y, Game* game); + void draw(float scrollX = 0) override; // Va a sobrescribir void update(); void impacted(); // Recibe impacto y pone animación de morir diff --git a/plataformas/GameLayer.cpp b/plataformas/GameLayer.cpp index 5d6a618..30b7ca8 100644 --- a/plataformas/GameLayer.cpp +++ b/plataformas/GameLayer.cpp @@ -24,13 +24,20 @@ void GameLayer::init() { textPoints = new Text("hola", WIDTH * 0.92, HEIGHT * 0.04, game); textPoints->content = to_string(points); - + pointsRecolectable = 0; + textPointsRecolectable = new Text("hola", WIDTH * 0.92, HEIGHT * 0.14, game); + textPointsRecolectable->content = to_string(pointsRecolectable); + background = new Background("res/fondo_2.png", WIDTH * 0.5, HEIGHT * 0.5, -1, game); backgroundPoints = new Actor("res/icono_puntos.png", WIDTH * 0.85, HEIGHT * 0.05, 24, 24, game); + recolectable = new Item(WIDTH * 0.85, HEIGHT * 0.15, game); + enemies.clear(); // Vaciar por si reiniciamos el juego + recolectables.clear(); projectiles.clear(); // Vaciar por si reiniciamos el juego + destructibles.clear(); loadMap("res/" + to_string(game->currentLevel) + ".txt"); } @@ -73,6 +80,22 @@ void GameLayer::loadMapObject(char character, float x, float y) space->addDynamicActor(cup); // Realmente no hace falta break; } + case 'R': { + Tile* recolectable = new Tile("res/icono_recolectable.png", x, y, game); + // modificación para empezar a contar desde el suelo. + recolectable->y = recolectable->y - recolectable->height / 2; + recolectables.push_back(recolectable); + space->addDynamicActor(recolectable); + break; + } + case 'W': { + Tile* destructible = new Tile("res/bloque_metal.png", x, y, game); + // modificación para empezar a contar desde el suelo. + destructible->y = destructible->y - destructible->height / 2; + destructibles.push_back(destructible); + space->addStaticActor(destructible); + break; + } case 'E': { Enemy* enemy = new Enemy(x, y, game); // modificación para empezar a contar desde el suelo. @@ -245,10 +268,11 @@ void GameLayer::update() { } - // Colisiones for (auto const& enemy : enemies) { + if (player->isOverlap(enemy)) { - player->loseLife(); + player->loseLife(); + if (player->lifes <= 0) { init(); return; @@ -256,7 +280,6 @@ void GameLayer::update() { } } - // Colisiones , Enemy - Projectile list deleteEnemies; list deleteProjectiles; @@ -273,7 +296,33 @@ void GameLayer::update() { } } + //Colisiones, Player - Recolectable + list deleteRecolectables; + for (auto const& recolectable : recolectables) { + if (player->isOverlap(recolectable)) { + bool rInList = std::find(deleteRecolectables.begin(), + deleteRecolectables.end(), + recolectable) != deleteRecolectables.end(); + + if (!rInList) { + deleteRecolectables.push_back(recolectable); + } + + + pointsRecolectable++; + if (pointsRecolectable % 4 == 0) { + textPointsRecolectable->content = to_string(pointsRecolectable/4); + this->recolectable->idle->currentFrame = 2; + } + + this->recolectable->update(); + + } + + } + // Colisiones , Enemy - Projectile + // Player(saltando) - enemy for (auto const& enemy : enemies) { for (auto const& projectile : projectiles) { @@ -294,8 +343,43 @@ void GameLayer::update() { } } + if (player->vy > 0 && player->y < enemy->y + && player->isOverlap(enemy) + && player->lifes > 0) { + + enemy->impacted(); + player->lifes++; + player->invulnerableTime = 0; + points++; + textPoints->content = to_string(points); + } + } + + //Tiles destructibles + list deleteDestructibles; + for (auto const& destructible : destructibles) { + + if ((player->y - destructible->y) < 10 && + abs(player->x - destructible->x) < 10 && + destructionTime % 10 == 0) { + + space->addDynamicActor(destructible); + space->removeStaticActor(destructible); + + bool dInList = std::find(deleteDestructibles.begin(), + deleteDestructibles.end(), + destructible) != deleteDestructibles.end(); + + if (!dInList) { + deleteDestructibles.push_back(destructible); + } + + destructionTime = 10; + } } + destructionTime--; + for (auto const& enemy : enemies) { if (enemy->state == game->stateDead) { bool eInList = std::find(deleteEnemies.begin(), @@ -308,6 +392,18 @@ void GameLayer::update() { } } + for (auto const& delRecolectable : deleteRecolectables) { + recolectables.remove(delRecolectable); + space->removeDynamicActor(delRecolectable); + } + deleteRecolectables.clear(); + + for (auto const& delDestructible : deleteDestructibles) { + destructibles.remove(delDestructible); + space->removeDynamicActor(delDestructible); + } + deleteDestructibles.clear(); + for (auto const& delEnemy : deleteEnemies) { enemies.remove(delEnemy); space->removeDynamicActor(delEnemy); @@ -350,6 +446,14 @@ void GameLayer::draw() { tile->draw(scrollX); } + for (auto const& recolectable : recolectables) { + recolectable->draw(scrollX); + } + + for (auto const& destructible : destructibles) { + destructible->draw(scrollX); + } + for (auto const& projectile : projectiles) { projectile->draw(scrollX); } @@ -364,6 +468,9 @@ void GameLayer::draw() { backgroundPoints->draw(); textPoints->draw(); + textPointsRecolectable->draw(); + recolectable->draw(); + // HUD if (game->input == game->inputMouse) { buttonJump->draw(); // NO TIENEN SCROLL, POSICION FIJA diff --git a/plataformas/GameLayer.h b/plataformas/GameLayer.h index 5b0b5ad..aab4ee9 100644 --- a/plataformas/GameLayer.h +++ b/plataformas/GameLayer.h @@ -11,6 +11,7 @@ #include "Audio.h" #include "Space.h" // importar +#include "Item.h" #include "Pad.h" @@ -37,15 +38,24 @@ class GameLayer : public Layer float scrollX; int mapWidth; list tiles; + + list destructibles; + int destructionTime = 9; Audio* audioBackground; Text* textPoints; int points; + + Text* textPointsRecolectable; + int pointsRecolectable; + Item* recolectable; + int newEnemyTime = 0; Player* player; Background* background; Actor* backgroundPoints; list enemies; + list recolectables; list projectiles; Tile* cup; // Elemento de final de nivel diff --git a/plataformas/GenericEnemy.cpp b/plataformas/GenericEnemy.cpp new file mode 100644 index 0000000..8e6f5e4 --- /dev/null +++ b/plataformas/GenericEnemy.cpp @@ -0,0 +1 @@ +#include "GenericEnemy.h" diff --git a/plataformas/GenericEnemy.h b/plataformas/GenericEnemy.h new file mode 100644 index 0000000..addad68 --- /dev/null +++ b/plataformas/GenericEnemy.h @@ -0,0 +1,13 @@ +#pragma once +#include "Actor.h" +class GenericEnemy : + public Actor +{ + + void virtual draw() = 0; // Va a sobrescribir + void virtual update() = 0; + + GenericEnemy(string filename, float x, float y, int width, int height, Game* game); + +}; + diff --git a/plataformas/Item.cpp b/plataformas/Item.cpp new file mode 100644 index 0000000..13b8ef0 --- /dev/null +++ b/plataformas/Item.cpp @@ -0,0 +1,20 @@ +#include "Item.h" + +Item::Item(float x, float y, Game* game) { + this->x = x; + this->y = y; + idle = new Animation("res/recolectable.png", + 32, 32 ,256, 32, 0, 8, true, game); + idle->currentFrame = 2; + update(); + +} + +void Item::update() { + + idle->update(); +} + +void Item::draw() { + idle->draw(x, y); +} diff --git a/plataformas/Item.h b/plataformas/Item.h new file mode 100644 index 0000000..bfc8c6a --- /dev/null +++ b/plataformas/Item.h @@ -0,0 +1,18 @@ +#pragma once + +#include "Actor.h" +#include "Animation.h" + +class Item +{ +public: + Item(float x, float y, Game* game); + Animation* idle; + + float x; + float y; + + void update(); + void draw(); +}; + diff --git a/plataformas/plataformas.vcxproj b/plataformas/plataformas.vcxproj index 27893f6..b8f01b7 100644 --- a/plataformas/plataformas.vcxproj +++ b/plataformas/plataformas.vcxproj @@ -153,6 +153,7 @@ + @@ -171,6 +172,7 @@ + diff --git a/plataformas/plataformas.vcxproj.filters b/plataformas/plataformas.vcxproj.filters index e4ce078..4b44061 100644 --- a/plataformas/plataformas.vcxproj.filters +++ b/plataformas/plataformas.vcxproj.filters @@ -69,6 +69,9 @@ Archivos de origen\Layer + + Archivos de origen + @@ -116,5 +119,8 @@ Archivos de encabezado\Layer + + Archivos de encabezado + \ No newline at end of file diff --git a/plataformas/res/0.txt b/plataformas/res/0.txt index ff131ff..82009ba 100644 --- a/plataformas/res/0.txt +++ b/plataformas/res/0.txt @@ -1,10 +1,10 @@ ............................................. ............................................. ............................................. +....R........................................ +..####.....R........................R........ +..........####.....WWWWWW.W..W.....###.#..... ............................................. -..####....................................... -..........####.....................###.#..... -............................................. -#.1.............C..........................## -#######..#################################### +#.1........R.....R....R......C.............## +############################################# ............................................. \ No newline at end of file