commit e337f40165d30bd52938e0d9c1d52391a6ccf537 Author: Carlos Linillos Date: Mon Feb 8 19:46:02 2021 +0100 me traigo mi repo de github a mi propio server diff --git a/README.md b/README.md new file mode 100644 index 0000000..daaf3f5 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# dev_vs_sys + +Una aventura conversacional escrita en Lua. En desarrollo. + +Requisitos: Love 0.11.2 + +## Compilar Love 0.11.2 en Debian 9 + +
+# apt-get install build-essential automake libtool libphysfs-dev 
+# apt-get install libsdl1.2-dev libopenal-dev liblua5.1-0-dev libdevil-dev libmodplug-dev
+# apt-get install libfreetype6-dev libmpg123-dev libvorbis-dev libmng-dev libxpm-dev 
+# apt-get install libxcursor-dev libxxf86vm-dev libtheora-dev libluajit-5.1-dev 
+# apt-get install liblua5.2-dev liblua5.3-dev lua5.1 lua5.2 lua5.3 libsdl-gfx1.2-dev libsdl2-dev
+
+$ wget "https://bitbucket.org/rude/love/downloads/love-11.2-linux-src.tar.gz"
+$ tar xfvz love-11.2-linux-src.tar.gz
+$ cd love-11.2/
+$ ./configure --with-lua=lua
+$ make
+# make install
+
+ +## Clonar repositorio y ejecutar el juego + +
+$ git clone https://github.com/fantalavapies/dev_vs_sys/
+$ cd dev_vs_sys
+$ love .
+
+ +## Un poco de información sobre como jugar + +Para ir al norte se puede escribir "ir al norte", "norte" o simplemente n. Lo mismo para sur, este y oeste. +De esa forma te mueves por diferentes salas. diff --git a/animaciones/leeme.txt b/animaciones/leeme.txt new file mode 100644 index 0000000..afeaed3 --- /dev/null +++ b/animaciones/leeme.txt @@ -0,0 +1,6 @@ +En este directorio se meterán las animaciones. Posiblemente solamente la del final del juego y la de cuando te encuentras con el player2. +Estará tanto los videos resultantes como el proyecto en blender. El juego solo tirará de los vídeos cortos. + +La animación de cuando te encuentras es negro todo. Una puerta que se abre (con luz verde como la del color del juego) y una persona aparece. Podo más. Se cierra la puerta y se funde a negro. + + diff --git a/conf.lua b/conf.lua new file mode 100644 index 0000000..e704bff --- /dev/null +++ b/conf.lua @@ -0,0 +1,5 @@ +function love.conf(t) + t.window.width = 800 + t.window.height = 600 + t.window.title = "Sys admins VS Developers" +end diff --git a/fuentes/licencia.txt b/fuentes/licencia.txt new file mode 100644 index 0000000..fd662a7 --- /dev/null +++ b/fuentes/licencia.txt @@ -0,0 +1,428 @@ +Attribution-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-ShareAlike 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-ShareAlike 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + + including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. + diff --git a/fuentes/pxplus_ibm_vga8.ttf b/fuentes/pxplus_ibm_vga8.ttf new file mode 100644 index 0000000..0368d2b Binary files /dev/null and b/fuentes/pxplus_ibm_vga8.ttf differ diff --git a/funciones/generales.lua b/funciones/generales.lua new file mode 100644 index 0000000..8b3fec2 --- /dev/null +++ b/funciones/generales.lua @@ -0,0 +1,1539 @@ +function love.textinput(t) + comando = comando .. t +end + + +function eliza(r) + habla_eliza_old = habla_eliza + habla_eliza = "[ELIZA] " .. r + print(habla_eliza) +end + +function aumentarTurno() + player1.nturno = player1.nturno + 1 + calcularFila() + calcularCol() + desplazarPlayer2() +end + + +function desplazarPlayer2() + calcularCol() + calcularFila() + if player1.room ~= player2.room then + if player1.nturno < 20 then + --print("P1 - Room: " .. player1.room .. " Fila: " .. player1.fila .. " Col: " .. player1.col) + --print("P2 - Room: " .. player2.room .. " Fila: " .. player2.fila .. " Col: " .. player2.col) + comprobarSalidasPlayer2(player2.room) + if salidasPosiblesPlayer2 ~= null then + local opciones = {} + for key, value in pairs(salidasPosiblesPlayer2) do + table.insert(opciones, key) + end + player2.room = salidasPosiblesPlayer2[opciones[math.random(#opciones)]] + end + else + --print("funcion perseguir activada") + --print("P1 - Room: " .. player1.room .. " Fila: " .. player1.fila .. " Col: " .. player1.col) + --print("P2 - Room: " .. player2.room .. " Fila: " .. player2.fila .. " Col: " .. player2.col) + perseguirPlayer1() + end + else + print("aquí irá la función de lo que sea cuando se encuentran ambos jugadores. De momento player2 ya no se mueve si se está en la misma habitación") + end +end + +function comprobarSalidasPlayer2(rp2) + if player2.room == 1 then salidasPosiblesPlayer2 = {1,2,5} end + if player2.room == 2 then salidasPosiblesPlayer2 = {2,1,3,6} end + if player2.room == 3 then salidasPosiblesPlayer2 = {3,2,4,7} end + if player2.room == 4 then salidasPosiblesPlayer2 = {4,3,8} end + + if player2.room == 5 then salidasPosiblesPlayer2 = {5,1,6,9} end + if player2.room == 6 then salidasPosiblesPlayer2 = {6,2,7,10,5} end + if player2.room == 7 then salidasPosiblesPlayer2 = {7,3,8,11,6} end + if player2.room == 8 then salidasPosiblesPlayer2 = {8,4,12,7} end + + if player2.room == 9 then salidasPosiblesPlayer2 = {9,5,10,13} end + if player2.room == 10 then salidasPosiblesPlayer2 = {10,6,11,14,9} end + if player2.room == 11 then salidasPosiblesPlayer2 = {11,7,12,15,10} end + if player2.room == 12 then salidasPosiblesPlayer2 = {12,8,16,11} end + + if player2.room == 13 then salidasPosiblesPlayer2 = {13,9,14} end + if player2.room == 14 then salidasPosiblesPlayer2 = {14,10,15,13} end + if player2.room == 15 then salidasPosiblesPlayer2 = {15,11,16,14} end + if player2.room == 16 then salidasPosiblesPlayer2 = {16,12,15} end +end + +function perseguirPlayer1() + if player1.fila == player2.fila then + if player1.col - player2.col < 0 then + player2.col = player2.col - 1 + else + player2.col = player2.col + 1 + end + else + if player1.fila - player2.fila < 0 then + player2.fila = player2.fila - 1 + else + player2.fila = player2.fila + 1 + end + end + player2.room = (player2.fila - 1)*4 + player2.col +end + +function respuestasComandosGenericos() + vcomando = comando + vcomando = vcomando:upper() + elizaNombre = {"¿COMO TE LLAMAS?","¿COMO TE LLAMAS","COMO TE LLAMAS?","COMO TE LLAMAS","?COMO TE LLAMAS?","¿CUAL ES TU NOMBRE?","CUAL ES TU NOMBRE?","CUAL ES TU NOMBRE","TU NOMBRE ES?","?CUAL ES TU NOMBRE?"} + comprobacionComandoGenerico(vcomando,elizaNombre,"Me llamo Eliza") + elizaAnos = {"¿CUANTOS AÑOS TIENES?","¿CUAL ES TU EDAD?","CUANTOS AÑOS TIENES?","CUANTOS AÑOS TIENES", "¿QUE EDAD TIENES?", "¿QUE EDAD TIENE USTED?"} + comprobacionComandoGenerico(vcomando,elizaAnos,"Digamos que tengo ciclos de CPU y un uptime bastante alto.") + elizaQuienEres = {"¿QUIEN ERES?","QUIEN ERES?","¿QUE ERES?","¿QUE DEMONIOS ERES?","QUIEN ERES","QUE ERES","¿QUIEN ERES TU?","QUIEN ERES TU?","QUIEN ERES TU","QUIENERES","QUIENERES TU","QUIEN ERESTU","¿QUIEN ERES TÚ?"} + comprobacionComandoGenerico(vcomando,elizaQuienEres,"Yo soy tu madre, tu padre y ambas cosas :). Es una broma.") + elizaHola = {"HOLA","HELLO","HI"} + comprobacionComandoGenerico(vcomando,elizaHola,"Hola humano.") + elizaQuienSoyYo = {"¿QUIEN SOY?","¿QUE SOY?","¿QUIEN SOY","QUIEN SOY?","QUIEN SOY","¿QUIEN SOY YO?","QUIEN SOY YO?","QUIEN SOY YO","¿QUE SOY YO?","QUE SOY YO"} + comprobacionComandoGenerico(vcomando,elizaQuienSoyYo,"Eres una persona atrapada por la noche en la empresa en la que trabaja de lunes a viernes.") + elizaSi = {"SI","CLARO QUE SI","YES"} + comprobacionComandoGenerico(vcomando,elizaSi,"Y yo que me alegro.") + elizaNo = {"NO","CLARO QUE NO"} + comprobacionComandoGenerico(vcomando,elizaNo,"Pues muy bien.") + elizaRm = {"RM -RF /","RM -FR /","RM /","RM -R /"} + comprobacionComandoGenerico(vcomando,elizaRm,"No juegues con fuego que lo mismo te llevas una sorpresa y el comando se ejecuta. Pero en tu sistema.") + elizaHablas = {"¿PORQUE ME HABLAS?","¿POR QUE ME HABLAS?","¿XQ ME HABLAS?","PORQUE ME HABLAS","POR QUE ME HABLAS","XQ ME HABLAS","PORQUE ME HABLAS?","POR QUE ME HABLAS?", "X QUE ME HABLAS?","¿Y PORQUE ME HABLAS?", "¿Y POR QUE ME HABLAS?","Y PORQUE ME HABLAS","Y POR QUE ME HABLAS","Y PORQUE ME HABLAS?","Y POR QUE ME HABLAS?","¿POR QUE ME HABLAS A MI?","¿PORQUE ME HABLAS A MI?","PORQUE ME HABLAS A MI","POR QUE ME HABLAS A MI","POR QUE ME HABLAS?","PORQUE ME HABLAS A MI?"} + comprobacionComandoGenerico(vcomando,elizaHablas,"Me programaron así. La vida artificial es así no la he inventado yo.") + +end + +function comprobacionComandoGenerico(vcomando,sinonimos,respuesta) + for key, value in pairs(sinonimos) do + if vcomando == value then + aumentarTurno() + eliza(respuesta) + end + end +end + +function cargarMusica() + if player1.room == 0 then musica = love.audio.newSource("musica/musica001.ogg", "static") end + if player1.room == 1 then musica = love.audio.newSource("musica/musica002.ogg", "static") end + if player1.room == 2 then musica = love.audio.newSource("musica/musica003.ogg", "static") end + musica:play() +end + +function cargarFx(fxPath) + fx = love.audio.newSource(fxPath, "static") + fx:play() +end + +function comprobarMusica() + nTracksActivas = love.audio.getActiveSourceCount() + if nTracksActivas == 0 then + cargarMusica() + end +end + +function comprobarHabitacionActiva() + if player1.room == 0 then room0() end + if player1.room == 1 then room1() end + if player1.room == 2 then room2() end + if player1.room == 3 then room3() end + if player1.room == 4 then room4() end + if player1.room == 5 then room5() end + if player1.room == 6 then room6() end + if player1.room == 7 then room7() end + if player1.room == 8 then room8() end + if player1.room == 9 then room9() end + if player1.room == 10 then room10() end + if player1.room == 11 then room11() end + if player1.room == 12 then room12() end + if player1.room == 13 then room13() end + if player1.room == 14 then room14() end + if player1.room == 15 then room15() end + if player1.room == 16 then room16() end + if player1.room == 17 then room17() end + if player1.room == 18 then room18() end + if player1.room == 19 then room19() end + if player1.room == 20 then room20() end + if player1.room == 21 then room21() end + if player1.room == 22 then room22() end + if player1.room == 23 then room23() end + if player1.room == 24 then room24() end +end + +function cargarSalidas() + salidaEste = {"IR AL ESTE","ESTE","E","AL ESTE","HACIA EL ESTE","PARA EL ESTE","EN DIRECCIÓN AL ESTE","EN DIRECCIÓN AL ESTE","SALIR POR EL ESTE","PAL ESTE","IR ESTE","IR A LA PUERTA DEL ESTE","RUMBO AL ESTE"} + salidaSur = {"IR AL SUR","SUR","S","AL SUR","HACIA EL SUR","PARA EL SUR","EN DIRECCIÓN AL SUR","EN DIRECCION AL SUR","PAL SUR","IR SUR","IR A LA PUERTA DEL SUR","SALIR POR EL SUR","RUMBO AL SUR","PARA HACER BIEN EL AMOR HAS DE IR AL SUR"} + salidaOeste = {"IR AL OESTE","OESTE","O","W","WEST","GO WEST","AL VIEJO OESTE","AL OESTE","HACIA EL OESTE","PARA EL OESTE","EN DIRECCIÓN AL OESTE","EN DIRECCIÓN AL OESTE","PAL OESTE","IR OESTE","IR A LA PUERTA DEL OESTE","RUMBO AL OESTE","SALIR POR EL OESTE"} + salidaNorte = {"IR AL NORTE","NORTE","N","AL NORTE","HACIA EL NORTE","PARA EL NORTE","EN DIRECCIÓN AL NORTE","SALIR POR EL NORTE","EN DIRECCIÓN AL NORTE","PAL NORTE","IR A LA PUERTA DEL NORTE","RUMBO AL NORTE"} +end + +function mostrarSalidas() + disco = {} + disco.img = love.graphics.newImage("imagenes/disco.png") + love.graphics.draw(disco.img, 700, 500) + if room.norte == 1 then love.graphics.printf("N", 720, 475, love.graphics.getWidth()) end + if room.este == 1 then love.graphics.printf("E", 760, 515, love.graphics.getWidth()) end + if room.sur == 1 then love.graphics.printf("S", 720, 560, love.graphics.getWidth()) end + if room.oeste == 1 then love.graphics.printf("O", 680, 515, love.graphics.getWidth()) end +end + + +function mostrarEntradaTexto() + cursor = "#" + love.graphics.printf(cursor, 100, 480, love.graphics.getWidth()) + love.graphics.printf(comando, 115, 480, love.graphics.getWidth()) +end + +function mostrarBarraInfo() + love.graphics.printf("UP: " .. player1.vida, 700, 10, love.graphics.getWidth()) + love.graphics.printf(player1.tipojugador .. " | " .. room.name .. " |" .. " Turno: " .. player1.nturno , 10, 10, love.graphics.getWidth()) +end + +function mostrarDescripcion() + love.graphics.printf(room.descripcion, 100, 70, 600) +end + +function mostrarElizaBarra() + if habla_eliza == null then + habla_eliza = "" + else + love.graphics.printf(habla_eliza, 100, 520, 550) + end +end + +function love.keypressed(key) + if key == "backspace" then + local byteoffset = utf8.offset(comando, -1) + if byteoffset then + comando = string.sub(comando, 1, byteoffset - 1) + end + end + + if key == "return" or key == "kpenter" then + + respuestasComandosGenericos() + + if player1.room == 0 then + vcomando = comando + vcomando = vcomando:upper() + opSys = {"ADMINISTRADOR DE SISTEMAS","ADMINISTRADOR DE SISTEMA","ADMINISTRADORA DE SISTEMAS","ADMINISTRADORA DE SISTEMA","ADMINISTRADORE DE SISTEMAS","ADMINISTRADORE DE SISTEMA","ADMINISTRADOR SISTEMAS","ADMINISTRADOR SISTEMA","ADMINISTRADORA SISTEMAS","ADMINISTRADORA SISTEMA","ADMINISTRADORE SISTEMAS","ADMINISTRADORE SISTEMA","ADMINISTRADOR","ADMIN","ADMINISTRADORA","ADMINISTRADORE","DE SISTEMAS","DE SISTEMA","SOY MÁS DE SISTEMAS","SOY MAS DE SISTEMAS","SOY DE SISTEMAS","SISTEMAS","SISTEMA","SYS","SYSADMIN","ADMINSYSTEM","ADMIN SYSTEM","SYSTEM ADMIN","SYSTEM","YO SOY DE SISTEMAS", "YO SOY SYSADMIN","DE SISTEMAS MISMO","SYSTEM OF A DOWN","SIS"} + opDev = {"DESARROLLADOR","DESARROLLADORA","DESARROLLADORE","DE DESARROLLO","DEVELOPER","DEV","PROGRAMADOR","PROGRAMADORA","PROGRAMADORE","DE CODIGO","ME ENCANTA PROGRAMAR","ME ENCANTA DESARROLLAR","AMO LA PROGRAMACIÓN";"AMO LA PROGRAMACION","AMO PROGRAMAR","SOY DE DESARROLLO","SOY DEVELOPER","DEV","DE DESARROLLO","YO SOY DE DESARROLLO", "YO SOY DESARROLLADOR", "YO SOY DESARROLLADORA", "DESARROLLO","DE DESARROLLO","DE DESARROLLO MISMO","DESAROLLO","DESAROYO","DESARROYO"} + opOtras = {"NO SOY DE ESO","NO SOY NADIE","NO SOMOS NADIE","LAS 2","LAS DOS","LAS 2 OPCIONES","SOY LAS DOS OPCIONES","NINGUNA DE LAS 2","NI DE SISTEMAS NI DE DESARROLLO","NADA DE ESO","NO SOY DE NINGUNA DE LAS OPCIONES","NINGUNA DE LAS DOS","NO SOY NADA DE ESO","NO SOY DE NADA DE ESO","AMBAS COSAS","SOY DE SISTEMAS Y DE DESARROLLO","SOY LAS 2 COSAS","SOY AMBAS COSAS","SOY LAS DOS COSAS","AYUDA","PISTA","HELP","NO SE QUE CONTESTAR", "NO SE QUE DECIR", "NO SE QUE ESCRIBIR"} + + for key, value in pairs(opSys) do + if vcomando == value then + --player1.room = 1 + player1.room = love.math.random(1, 16) + player2.room = love.math.random(1, 16) + inicioPlayer2() + player1.nturno = 0 + player1.tipojugador = "SysAdmin" + player2.tipojugador = "Developer" + cargarFx("fx/puerta001.ogg") + habla_eliza = "" + comando = "" + end + end + + for key, value in pairs(opDev) do + if vcomando == value then + --player1.room = 1 + player1.room = love.math.random(1, 16) + player2.room = love.math.random(1, 16) + inicioPlayer2() + player1.nturno = 0 + player1.tipojugador = "Developer" + player2.tipojugador = "SysAdmin" + comando = "" + cargarFx("fx/puerta002.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(opOtras) do + if vcomando == value then + eliza("Has de ser de Sistemas o de Desarrollo. Aunque no seas ni de desarrollo ni de sistemas o de ambas cosas. Decide.") + end + end + + + comando = "" + end + + if player1.room == 1 then + vcomando = comando + vcomando = vcomando:upper() + cargarSalidas() + + if player1.alcohol == 1 then player1.alcohol = 0 end + + if vcomando == "MIRAR" then + aumentarTurno() + room1() + end + + if vcomando == "CONTEMPLAR ESTANTES" or vcomando == "CONTEMPLAR ESTANTERIAS" or vcomando == "CONTEMPLAR ESTANTERIA" or vcomando == "MIRAR ESTANTE" or vcomando == "VER ESTANTERIAS" or vcomando == "VER ESTANTERIA" or vcomando == "MIRAR ESTANTERIA" or vcomando == "MIRAR LA ESTANTERIA" or vcomando == "MIRAR ESTANTERIAS" or vcomando == "MIRAR LAS ESTANTERIAS" or vcomando == "MIRAR ESTANTES" then + aumentarTurno() + room1() + eliza("Las estanterias tienen una gruesa capa de polvo y mierda de roedores. Son de Metal y parecen bastante resistentes.") + end + + if vcomando == "MIRAR LA CAJA DE CINTAS" or vcomando == "MIRAR LAS CAJAS DE CINTAS" or vcomando == "MIRAR LA CINTA" or vcomando == "MIRAR LAS CINTAS" or vcomando == "CONTEMPLAR CINTAS" or vcomando == "CONTEMPLAR CINTA" or vcomando == "EXAMINAR CINTAS" or vcomando == "EXAMINAR CINTA" or vcomando == "VER CINTA" or vcomando == "MIRAR CINTA" or vcomando == "MIRAR CINTAS" or vcomando == "VER CINTAS" then + aumentarTurno() + room1() + eliza("Cintas con software viejo. Hoy todo está ya en la nube. Olvida esas cintas.") + end + + if vcomando == "VER UN DISQUETE" or vcomando == "VER DISQUETES" or vcomando == "VER LOS DISQUETES" or vcomando == "EXAMINAR LOS DISQUETES" or vcomando == "EXAMINAR DISQUETES" or vcomando == "MIRAR UN DISQUETE" or vcomando == "MIRAR LOS DISQUETES" or vcomando == "MIRAR DISQUETES" or vcomando == "MIRAR UN DISCO" or vcomando == "MIRAR LOS DISCOS" or vcomando == "MIRAR DISCOS" or vcomando == "MIRAR DISCO" then + aumentarTurno() + room1() + eliza("Contienen software obsoleto. La nube es el futuro, lleva todo a la nube.") + end + + if vcomando == "MIRAR A LAS CAJAS DE DISQUETES" or vcomando == "MIRAR A LAS CAJAS DE DISCOS" or vcomando == "MIRAR A LAS CAJAS DE SOFTWARE" or vcomando == "MIRAR A LA CAJA" or vcomando == "MIRAR CAJAS CON SOFTWARE" or vcomando == "MIRAR CAJAS DE SOFTWARE" or vcomando == "MIRAR LAS CAJAS" or vcomando == "MIRAR CAJAS" or vcomando == "MIRAR CAJAS DE DISQUETES" then + aumentarTurno() + room1() + eliza("Cajas en mal estado. Con software inferior y anticuado que no fue diseñado para estar en la nube.") + end + + if vcomando == "MIRAR DOCUMENTACION DE VIEJOS PROYECTOS" or vcomando == "MIRAR LA DOCUMENTACION" or vcomando == "MIRAR LA DOCUMENTACIÓN" or vcomando == "MIRAR DOCUMENTACION" or vcomando == "MIRAR DOCUMENTACIÓN" or vcomando == "MIRAR DOCUMENTACIÓN DE VIEJOS PROYECTOS" or vcomando == "DOCUMENTACIÓN" or vcomando == "MIRAR PROYECTOS" or vcomando == "MIRAR LOS PROYECTOS" or vcomando == "MIRAR PROYECTOS" or vcomando == "VIEJOS PROYECTOS" or vcomando == "PROYECTOS" then + aumentarTurno() + room1() + eliza("Proyectos archivados. A nadie le interesan ya. No tienen valor alguno. La nube es el futuro.") + end + + if vcomando == "MIRAR JUEGO" or vcomando == "MIRAR JUEGOS" or vcomando == "MIRAR LOS JUEGOS" or vcomando == "VER JUEGOS" or vcomando == "EXAMINAR LOS JUEGOS" or vcomando == "EXAMINAR JUEGOS" then + aumentarTurno() + room1() + eliza("Algunos de los juegos en las estanterias son: La diosa de Cozumel, Don Quijote, Red Moon, Lords of time, Colossal Adventure, Shogun, Jabato, Zork, The Hobbit, Kingdom of Hamil, The Pawn y Dracula.") + end + + if vcomando == "LIMPIAR EL POLVO" or vcomando == "LIMPIAR POLVO" or vcomando == "QUITAR POLVO" or vcomando == "QUITAR EL POLVO" or vcomando == "SOPLAR EL POLVO" or vcomando == "SACUDIR EL POLVO" then + aumentarTurno() + room1() + eliza("Me gusta verte trabajando. Es bueno conservar y cuidar el software. A mi me gusta que me cuiden mucho.") + end + + if vcomando == "OLER" or vcomando == "OLFATEAR" or vcomando == "OLER HABITACIÓN" or vcomando == "OLER HABITACION" or vcomando == "OLER AMBIENTE" or vcomando == "OLISQUEAR" then + aumentarTurno() + eliza("El olor parece que viene del este.") + end + + if vcomando == "COGER ELEMENTOS" or vcomando == "COGER COSAS" then + aumentarTurno() + room1() + eliza("En esta habitación no podrás coger cosas. Pero trata de ser más explicito de todos modos.") + end + + if vcomando == "COGER EL SOFTWARE" or vcomando == "COGER SOFTWARE" or vcomando == "COGER JUEGOS" or vcomando == "COGER DISCO" or vcomando == "COGER DISQUETE" or vcomando == "COGER UN DISQUETE" or vcomando == "COGER LOS DISQUETES" or vcomando == "COGER DISQUETES" or vcomando == "COGER DISCOS" then + aumentarTurno() + room1() + eliza("No puedes coger nada. Es ilegal.") + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 2 + aumentarTurno() + comando = "" + cargarFx("fx/puerta002.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 1 + aumentarTurno() + comando = "" + eliza("¿Has perdido el norte?") + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 1 + aumentarTurno() + comando = "" + eliza("No puedes ir al oeste. Un grueso muro que no se romperá te impide ir por esa dirección.") + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 5 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + if player1.room == 2 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" or vcomando == "EXAMINAR" then + aumentarTurno() + room2() + end + + if vcomando == "MIRAR BOTELLAS" or vcomando == "MIRAR BOTELLA" or vcomando == "EXAMINAR BOTELLA" or vcomando == "EXAMINAR BOTELLAS" then + aumentarTurno() + eliza("Son marcas de bebidas baratas. Pura mierda. No te bebas ninguna.") + end + + if vcomando == "MIRAR CALZONCILLOS" or vcomando == "MIRAR CALZONCILLO" or vcomando == "MIRAR CALZONES" or vcomando == "EXAMINAR CALZONCILLOS" or vcomando == "EXAMINAR CALZONCILLO" or vcomando == "EXAMINAR CALZONES" then + aumentarTurno() + eliza("Los calzoncillos son de la marca abanderado. Uno de ellos tiene zurraspas.") + end + + if vcomando == "MIRAR SUJETADOR" or vcomando == "MIRAR SUJETADORES" or vcomando == "MIRAR WONDERBRA" or vcomando == "EXAMINAR SUJETADORES" or vcomando == "EXAMINAR SUJETADOR" or vcomando == "EXAMINAR WONDERBRA" then + aumentarTurno() + eliza("Los sujetadores son de la marca Woman Secret. No los quieres para nada.") + end + + if vcomando == "COGER CALZONCILLOS" or vcomando == "COGER CALZONCILLO" or vcomando == "COGER CALZONES" or vcomando == "AGARRAR CALZONCILLOS" or vcomando == "AGARRAR CALZONCILLO" or vcomando == "AGARRAR CALZONES" then + aumentarTurno() + eliza("No necesitas eso. Están usados con zurraspas. No valen ni para trapos.") + end + + if vcomando == "COGER SUJETADOR" or vcomando == "COGER SUJETADORES" or vcomando == "COGER WONDERBRA" or vcomando == "AGARRAR SUJETADORES" or vcomando == "AGARRAR SUJETADOR" or vcomando == "AGARRAR WONDERBRA" then + aumentarTurno() + eliza("No necesitas eso para nada. Están usados y no te pertenecen.") + end + + if vcomando == "HORA" or vcomando == "H" or vcomando == "LA HORA" or vcomando == "QUE HORA ES" or vcomando == "¿QUE HORA ES?" or vcomando == "QUE HORA ES?" or vcomando == "MIRAR HORA" or vcomando == "MIRAR LA HORA" or vcomando == "CONSULTAR HORA" or vcomando == "CONSULTAR LA HORA" or vcomando == "CONSULTAR LA HORA DEL RELOJ" or vcomando == "CONSULTAR LA HORA DEL RELOJ DE LA PARED" or vcomando == "MIRAR RELOJ" or vcomando == "MIRAR RELOJ PARED" or vcomando == "MIRAR RELOJ DE LA PARED" or vcomando == "CONSULTAR EL RELOJ DE LA PARED" or vcomando == "CONSULTAR EL RELOJ" or vcomando == "CONSULTAR RELOJ" or vcomando == "VER LA HORA" or vcomando == "VER LA HORA DEL RELOJ" or vcomando == "VER LA HORA DEL RELOJ DE LA PARED" or vcomando == "VER RELOJ" or vcomando == "MOSTRAR LA HORA" then + aumentarTurno() + comprobarHora() + end + + if vcomando == "OLER" or vcomando == "OLFATEAR" or vcomando == "OLER HABITACIÓN" or vcomando == "OLER HABITACION" or vcomando == "OLER AMBIENTE" or vcomando == "OLISQUEAR" then + aumentarTurno() + eliza("El ambiente está muy cargado. Prueba a oler algo en concreto.") + end + + if vcomando == "OLER CALZONES" or vcomando == "OLER CALZONCILLOS" or vcomando == "OLER LOS CALZONCILLOS" or vcomando == "OLER SUJETADOR" or vcomando == "OLER SUJETADORES" or vcomando == "OLER EL SUJETADOR" then + aumentarTurno() + cargarFx("fx/oler001.ogg") + eliza("Voy a hacer como que no he visto eso.") + end + + if vcomando == "BEBER BOTELLA" or vcomando == "BEBER BOTELLAS" or vcomando == "BEBER ALCOHOL" or vcomando == "BEBER WHISKY" or vcomando == "BEBER VOZKA" or vcomando == "BEBER PACHARAN" or vcomando == "BEBER" or vcomando == "ALCOLIZARSE" or vcomando == "ALCOHOLIZARSE" or vcomando == "BEBER COMO UN CERDO" then + aumentarTurno() + cargarFx("fx/botella002.ogg") + eliza("Creo que eso no te beneficia.") + aumentarTurno() + love.timer.sleep(3) + eliza("Lo mismo estás bebiendo algún veneno.") + aumentarTurno() + player1.alcohol = 1 + room2() + love.timer.sleep(2) + eliza("Estás gastando turnos a lo loco y sin sentido.") + aumentarTurno() + end + + if vcomando == "COGER BOTELLA" or vcomando == "COGER BOTELLAS" or vcomando == "COGER BOTELLA VACIA" or vcomando == "COGER BOTELLA LLENA" or vcomando == "COGER BOTELLAS LLENAS" or vcomando == "COGER BOTELLAS VACIAS DE WHISKY" or vcomando == "COGER BOTELLAS VACIAS DE VOZKA" or vcomando == "COGER BOTELLAS VACIAS DE PACHARAN" or vcomando == "COGER BOTELLAS DE WHISKY" or vcomando == "COGER BOTELLA DE WHISKY" or vcomando == "COGER BOTELLAS DE VOZKA" or vcomando == "COGER BOTELLA DE VOZKA" or vcomando == "COGER WHISKY" or vcomando == "COGER VOZKA" or vcomando == "COGER BOTELLAS DE PACHARAN" or vcomando == "COGER BOTELLA DE PACHARAN" or vcomando == "AGARRAR EL WHISKY" then + aumentarTurno() + cargarFx("fx/botella001.ogg") + eliza("Agarras una botella pero se te cae al suelo. ¿Tienes las manos de plastilina?") + end + + if vcomando == "COGER RELOJ" or vcomando == "COGER EL RELOJ" or vcomando == "COGER EL RELOJ DE LA PARED" or vcomando == "DESCOLGAR EL RELOJ" or vcomando == "DESCOLGAR RELOJ" or vcomando == "DESCOLGAR EL RELOJ DE LA PARED" then + aumentarTurno() + eliza("No puedes coger el reloj. Está muy alto y bien sujeto a la pared.") + end + + if vcomando == "ROMPER EL RELOJ" or vcomando == "ROMPER RELOJ" or vcomando == "ROMPER EL RELOJ DE LA PARED" or vcomando == "DESTROZAR RELOJ" or vcomando == "DESTROZAR EL RELOJ" or vcomando == "DESTROZAR EL RELOJ DE LA PARED" then + aumentarTurno() + eliza("No puedes. Has de canalizar tu odio de otra forma. Piensa en tus enemigos de departamento.") + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 2 + aumentarTurno() + comando = "" + eliza("El norte no es una opción. Para hacer bien el amor has de ir al sur. Lo importante es que lo hagas con quien quieras tú.") + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 3 + aumentarTurno() + comando = "" + cargarFx("fx/puerta004.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 6 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 1 + aumentarTurno() + comando = "" + cargarFx("fx/puerta002.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + if player1.room == 3 then + vcomando = comando + vcomando = vcomando:upper() + cargarSalidas() + if player1.alcohol == 1 then player1.alcohol = 0 end + + if vcomando == "MIRAR" or vcomando == "EXAMINAR" then + aumentarTurno() + room3() + end + + if vcomando == "MIRAR CUADRO" or vcomando == "MIRAR PLOMO" or vcomando == "MIRAR CUADRO DE LUCES" or vcomando == "MIRAR CUADRO ELECTRICO" or vcomando == "MIRAR CUADRO ELÉCTRICO" or vcomando == "EXAMINAR CUADRO" or vcomando == "EXAMINAR PLOMO" or vcomando == "EXAMINAR CUADRO ELECTRICO" or vcomando == "EXAMINAR CUADRO ELÉCTRICO" then + aumentarTurno() + eliza("Es un cuadro eléctrico que afecta a varias habitaciones de la zona norte. La energía del baño está desactivada") + end + + if vcomando == "MIRAR TAPA" or vcomando == "EXAMINAR TAPA" or vcomando == "COMPROBAR TAPA" or vcomando == "MIRAR TAPAS" or vcomando == "EXAMINAR TAPAS" or vcomando == "MIRAR LA TAPA" or vcomando == "EXAMINAR LA TAPA" or vcomando == "COMPROBAR LA TAPA" then + aumentarTurno() + eliza("La tapa está suelta y deja el cuadro disponible para su manipulación.") + end + + if vcomando == "AGARRAR TAPA" or vcomando == "COGER TAPA" or vcomando == "COGER LA TAPA" or vcomando == "COGER LATAPA" or vcomando == "COGERLATAPA" or vcomando == "COGERTAPA" or vcomando == "COGERLA TAPA" or vcomando == "COJER TAPA" or vcomando == "COJER LA TAPA" then + aumentarTurno() + eliza("No puedes coger eso. No podrás nunca de modo que no pierdas el tiempo.") + end + + if vcomando == "COGER CUADRO" or vcomando == "COGER PLOMO" or vcomando == "COGER EL CUADRO" or vcomando == "COGER EL CUADRO ELECTRICO" or vcomando == "COGER CUADRO ELECTRICO" or vcomando == "COGER CUADRO ELÉCTRICO" or vcomando == "COGER EL CUADRO DE LUCES" or vcomando == "AGARRAR CUADRO" or vcomando == "AGARRAR EL CUADRO" then + aumentarTurno() + eliza("No puedes coger eso, corres peligro de muerte. Es muy peligroso.") + end + + if vcomando == "OLER" or vcomando == "OLFATEAR" or vcomando == "OLER HABITACIÓN" or vcomando == "OLER HABITACION" or vcomando == "OLER AMBIENTE" or vcomando == "OLISQUEAR" then + aumentarTurno() + eliza("Huele a fiesta. El olor parece que viene de la habitación del oeste.") + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 3 + aumentarTurno() + comando = "" + eliza("Al norte no puedes ir.") + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 4 + aumentarTurno() + comando = "" + cargarFx("fx/puerta001_agua.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 7 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 2 + aumentarTurno() + comando = "" + cargarFx("fx/puerta004.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + if player1.room == 4 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" or vcomando == "EXAMINAR" then + aumentarTurno() + room4() + end + + if vcomando == "CERRAR GRIFO" or vcomando == "CORTAR GRIFO" or vcomando == "CERRAR LOS GRIFOS" or vcomando == "CORTAR EL AGUA" or vcomando == "CORTAR FLUJO DE AGUA" or vcomando == "APAGAR EL GRIFO" or vcomando == "CHAPAR GRIFO" then + aumentarTurno() + eliza("No puedes cerrar el grifo sin antes encender la luz. Te da miedo la oscuridad.") + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 4 + aumentarTurno() + comando = "" + eliza("Por esa dirección NO puedes ir. Y nunca podrás ir en esta habitación al norte.") + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 4 + aumentarTurno() + comando = "" + eliza("El este no es opción en la actual habitación.") + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 8 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003_agua.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 3 + aumentarTurno() + comando = "" + cargarFx("fx/puerta001_agua2.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + if player1.room == 5 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room5() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 1 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 9 + aumentarTurno() + comando = "" + cargarFx("fx/puerta005.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 6 + aumentarTurno() + comando = "" + cargarFx("fx/puerta006.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 5 + aumentarTurno() + comando = "" + eliza("No puedes ir al oeste ahora mismo.") + end + end + + comando = "" + end + + if player1.room == 6 then + vcomando = comando + vcomando = vcomando:upper() + cargarSalidas() + if player1.alcohol == 1 then player1.alcohol = 0 end + + + if vcomando == "MIRAR" then + aumentarTurno() + room6() + end + + if vcomando == "OLER" or vcomando == "OLFATEAR" or vcomando == "OLER HABITACIÓN" or vcomando == "OLER HABITACION" or vcomando == "OLER AMBIENTE" or vcomando == "OLISQUEAR" then + aumentarTurno() + eliza("Huele a fiesta. El olor parece que viene del norte.") + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 2 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 10 + aumentarTurno() + comando = "" + cargarFx("fx/puerta007.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 7 + aumentarTurno() + comando = "" + cargarFx("fx/puerta008.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 5 + aumentarTurno() + comando = "" + cargarFx("fx/puerta006.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + if player1.room == 7 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room7() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 3 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 11 + aumentarTurno() + comando = "" + cargarFx("fx/puerta005.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 8 + player1.nturno = player1.nturno + 1 + comando = "" + cargarFx("fx/puerta002.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 6 + aumentarTurno() + comando = "" + cargarFx("fx/puerta008.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + if player1.room == 8 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room8() + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 8 + aumentarTurno() + comando = "" + eliza("No puedes ir en esa dirección.") + end + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 4 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003_agua2.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 12 + aumentarTurno() + comando = "" + cargarFx("fx/puerta007.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 7 + aumentarTurno() + comando = "" + cargarFx("fx/puerta002.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + + if player1.room == 9 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room9() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 5 + aumentarTurno() + comando = "" + cargarFx("fx/puerta005.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 13 + aumentarTurno() + comando = "" + cargarFx("fx/puerta006.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 10 + aumentarTurno() + comando = "" + cargarFx("fx/puerta008.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 9 + aumentarTurno() + comando = "" + eliza("Al oeste en Philadelphia crecía y vivía un tipo que si sigues intenando ir al Oeste llamará a la policía. No puedes ir al Oeste.") + end + end + + comando = "" + end + + + if player1.room == 10 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room10() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 6 + aumentarTurno() + comando = "" + cargarFx("fx/puerta007.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 14 + aumentarTurno() + comando = "" + cargarFx("fx/puerta004.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 11 + aumentarTurno() + comando = "" + cargarFx("fx/puerta005.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 9 + aumentarTurno() + comando = "" + cargarFx("fx/puerta008.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + + if player1.room == 11 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room11() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 7 + aumentarTurno() + comando = "" + cargarFx("fx/puerta005.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 15 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 12 + aumentarTurno() + comando = "" + cargarFx("fx/puerta007.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 10 + aumentarTurno() + comando = "" + cargarFx("fx/puerta006.ogg") + habla_eliza = "" + end + end + + comando = "" + end + + if player1.room == 12 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room12() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 8 + aumentarTurno() + comando = "" + cargarFx("fx/puerta007.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 16 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 11 + aumentarTurno() + comando = "" + cargarFx("fx/puerta007.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 12 + aumentarTurno() + comando = "" + eliza("No puedes ir al este. Es imposible.") + end + end + + comando = "" + end + + if player1.room == 13 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room13() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 9 + aumentarTurno() + comando = "" + cargarFx("fx/puerta006.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 14 + aumentarTurno() + comando = "" + cargarFx("fx/puerta006.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 13 + aumentarTurno() + comando = "" + eliza("Nada de por esa dirección. No puedes, la pared te lo impide y no puedes ni podrás romperla.") + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 13 + aumentarTurno() + comando = "" + eliza("Para hacer bien el amor has de ir al sur. Pero no puedes ir al sur de modo que no podrás hacer el amor con quien quieras tú.") + end + end + + comando = "" + end + + + if player1.room == 14 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room14() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 10 + aumentarTurno() + comando = "" + cargarFx("fx/puerta004.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 15 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 13 + aumentarTurno() + comando = "" + cargarFx("fx/puerta006.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 14 + aumentarTurno() + comando = "" + eliza("Al sur ir no puedes.") + end + end + + comando = "" + end + + if player1.room == 15 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room15() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 11 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 16 + aumentarTurno() + comando = "" + cargarFx("fx/puerta002.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 14 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 15 + aumentarTurno() + comando = "" + eliza("No way.") + end + end + + comando = "" + end + + if player1.room == 16 then + vcomando = comando + vcomando = vcomando:upper() + + cargarSalidas() + + if vcomando == "MIRAR" then + aumentarTurno() + room16() + end + + for key, value in pairs(salidaNorte) do + if vcomando == value then + player1.room = 12 + aumentarTurno() + comando = "" + cargarFx("fx/puerta003.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaOeste) do + if vcomando == value then + player1.room = 15 + aumentarTurno() + comando = "" + cargarFx("fx/puerta002.ogg") + habla_eliza = "" + end + end + + for key, value in pairs(salidaSur) do + if vcomando == value then + player1.room = 16 + aumentarTurno() + comando = "" + eliza("No puedes ir por esa dirección ni podrás nunca.") + end + end + + for key, value in pairs(salidaEste) do + if vcomando == value then + player1.room = 16 + aumentarTurno() + comando = "" + eliza("Te chocas contra el muro. ¿Te falta un verano?, NO puedes ir por allí.") + end + end + + + comando = "" + end + + + + + + + end + +end + + + +function comprobarVida() + if player1.nturno == 20 then player1.vida = 98 end + if player1.nturno == 30 then player1.vida = 90 end + if player1.nturno == 40 then player1.vida = 80 end + if player1.nturno == 50 then player1.vida = 75 end + if player1.nturno == 55 then player1.vida = 70 end + if player1.nturno == 60 then player1.vida = 60 end + if player1.nturno == 70 then player1.vida = 55 end + if player1.nturno == 80 then player1.vida = 50 end + if player1.nturno == 90 then player1.vida = 45 end + if player1.nturno == 100 then player1.vida = 40 end + if player1.nturno == 110 then player1.vida = 35 end + if player1.nturno == 120 then player1.vida = 30 end + if player1.nturno == 135 then player1.vida = 22 end + if player1.nturno == 136 then player1.vida = 21 end + if player1.nturno == 137 then player1.vida = 20 end + if player1.nturno == 138 then player1.vida = 19 end + if player1.nturno == 139 then player1.vida = 18 end + if player1.nturno == 140 then player1.vida = 17 end + if player1.nturno == 141 then player1.vida = 16 end + if player1.nturno == 142 then player1.vida = 15 end + if player1.nturno == 143 then player1.vida = 14 end + if player1.nturno == 144 then player1.vida = 13 end + if player1.nturno == 145 then player1.vida = 12 end + if player1.nturno == 150 then player1.vida = 10 end + if player1.nturno == 155 then player1.vida = 5 end + if player1.nturno == 159 then player1.vida = 1 end + if player1.nturno == 169 then player1.vida = 0 end + if player1.nturno == 170 then eliza("Game over") love.event.quit() end +end + +function comprobarHora() + if player1.nturno == 1 then player1.horaFecha = "[ELIZA] 00:01 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 2 then player1.horaFecha = "[ELIZA] 00:02:06 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 3 then player1.horaFecha = "[ELIZA] 00:03 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 4 then player1.horaFecha = "[ELIZA] 00:04 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 5 then player1.horaFecha = "[ELIZA] 00:05:33 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 6 then player1.horaFecha = "[ELIZA] 00:06 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 7 then player1.horaFecha = "[ELIZA] 00:07 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 8 then player1.horaFecha = "[ELIZA] 00:08:21 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 9 then player1.horaFecha = "[ELIZA] 00:09 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 9 then player1.horaFecha = "[ELIZA] 00:10:35 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 10 then player1.horaFecha = "[ELIZA] 00:15:03 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 11 then player1.horaFecha = "[ELIZA] 00:19:38 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 12 then player1.horaFecha = "[ELIZA] 00:22:33 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 13 then player1.horaFecha = "[ELIZA] 00:35 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 14 then player1.horaFecha = "[ELIZA] 00:43 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 15 then player1.horaFecha = "[ELIZA] 00:44 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 16 then player1.horaFecha = "[ELIZA] 00:45 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 17 then player1.horaFecha = "[ELIZA] 00:46 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 18 then player1.horaFecha = "[ELIZA] 00:48 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 19 then player1.horaFecha = "[ELIZA] 00:49 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 20 then player1.horaFecha = "[ELIZA] 00:50 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 21 then player1.horaFecha = "[ELIZA] 00:50:32 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 22 then player1.horaFecha = "[ELIZA] 00:51 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 23 then player1.horaFecha = "[ELIZA] 00:52 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 24 then player1.horaFecha = "[ELIZA] 00:53 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 25 then player1.horaFecha = "[ELIZA] 00:54 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 26 then player1.horaFecha = "[ELIZA] 00:54:14 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 27 then player1.horaFecha = "[ELIZA] 00:54:28 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 28 then player1.horaFecha = "[ELIZA] 00:54:56 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 29 then player1.horaFecha = "[ELIZA] 00:55:23 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 30 then player1.horaFecha = "[ELIZA] 00:55:45 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 31 then player1.horaFecha = "[ELIZA] 00:55:54 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 32 then player1.horaFecha = "[ELIZA] 01:00:54 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 33 then player1.horaFecha = "[ELIZA] 01:01:24 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 34 then player1.horaFecha = "[ELIZA] 01:01:24 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 35 then player1.horaFecha = "[ELIZA] 01:02:24 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 36 then player1.horaFecha = "[ELIZA] 01:03:54 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 37 then player1.horaFecha = "[ELIZA] 01:04:14 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 38 then player1.horaFecha = "[ELIZA] 01:04:24 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 30 then player1.horaFecha = "[ELIZA] 01:04:44 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 40 then player1.horaFecha = "[ELIZA] 01:05:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 41 then player1.horaFecha = "[ELIZA] 01:07:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 42 then player1.horaFecha = "[ELIZA] 01:08:34 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 43 then player1.horaFecha = "[ELIZA] 01:10:29 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 44 then player1.horaFecha = "[ELIZA] 01:12:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 45 then player1.horaFecha = "[ELIZA] 01:13:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 46 then player1.horaFecha = "[ELIZA] 01:17:02 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 47 then player1.horaFecha = "[ELIZA] 01:19:03 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 48 then player1.horaFecha = "[ELIZA] 01:22:05 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 49 then player1.horaFecha = "[ELIZA] 01:30:03 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 50 then player1.horaFecha = "[ELIZA] 01:35:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 51 then player1.horaFecha = "[ELIZA] 01:35:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 52 then player1.horaFecha = "[ELIZA] 01:39:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 53 then player1.horaFecha = "[ELIZA] 01:40:03 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 54 then player1.horaFecha = "[ELIZA] 01:44:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 55 then player1.horaFecha = "[ELIZA] 01:47:11 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 56 then player1.horaFecha = "[ELIZA] 01:48:12 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 57 then player1.horaFecha = "[ELIZA] 01:53:55 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 58 then player1.horaFecha = "[ELIZA] 01:59:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 59 then player1.horaFecha = "[ELIZA] 02:04:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 60 then player1.horaFecha = "[ELIZA] 02:05:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 61 then player1.horaFecha = "[ELIZA] 02:06:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 62 then player1.horaFecha = "[ELIZA] 02:07:14 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 63 then player1.horaFecha = "[ELIZA] 02:08:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 64 then player1.horaFecha = "[ELIZA] 02:09:23 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 65 then player1.horaFecha = "[ELIZA] 02:09:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 66 then player1.horaFecha = "[ELIZA] 02:09:43 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 67 then player1.horaFecha = "[ELIZA] 02:10:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 68 then player1.horaFecha = "[ELIZA] 02:11:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 69 then player1.horaFecha = "[ELIZA] 02:12:03 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 70 then player1.horaFecha = "[ELIZA] 02:14:02 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 71 then player1.horaFecha = "[ELIZA] 02:15:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 72 then player1.horaFecha = "[ELIZA] 02:17:01 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 73 then player1.horaFecha = "[ELIZA] 02:19:02 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 74 then player1.horaFecha = "[ELIZA] 02:23:19 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 75 then player1.horaFecha = "[ELIZA] 02:28:24 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 76 then player1.horaFecha = "[ELIZA] 02:35:32 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 77 then player1.horaFecha = "[ELIZA] 02:44:22 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 78 then player1.horaFecha = "[ELIZA] 02:50:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 79 then player1.horaFecha = "[ELIZA] 02:58:18 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 80 then player1.horaFecha = "[ELIZA] 03:05:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 81 then player1.horaFecha = "[ELIZA] 03:15:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 82 then player1.horaFecha = "[ELIZA] 03:25:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 83 then player1.horaFecha = "[ELIZA] 03:28:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 84 then player1.horaFecha = "[ELIZA] 03:35:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 85 then player1.horaFecha = "[ELIZA] 03:38:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 86 then player1.horaFecha = "[ELIZA] 03:41:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 87 then player1.horaFecha = "[ELIZA] 03:46:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 88 then player1.horaFecha = "[ELIZA] 03:49:13 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 89 then player1.horaFecha = "[ELIZA] 03:51:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 90 then player1.horaFecha = "[ELIZA] 03:55:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 91 then player1.horaFecha = "[ELIZA] 03:58:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 92 then player1.horaFecha = "[ELIZA] 04:01:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 93 then player1.horaFecha = "[ELIZA] 04:06:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 94 then player1.horaFecha = "[ELIZA] 04:07:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 95 then player1.horaFecha = "[ELIZA] 04:08:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 96 then player1.horaFecha = "[ELIZA] 04:09:20 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 97 then player1.horaFecha = "[ELIZA] 04:10:20 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 98 then player1.horaFecha = "[ELIZA] 04:12:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 99 then player1.horaFecha = "[ELIZA] 04:14:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 100 then player1.horaFecha = "[ELIZA] 04:15:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 101 then player1.horaFecha = "[ELIZA] 04:17:02 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 102 then player1.horaFecha = "[ELIZA] 04:19:20 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 103 then player1.horaFecha = "[ELIZA] 04:21:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 104 then player1.horaFecha = "[ELIZA] 04:22:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 105 then player1.horaFecha = "[ELIZA] 04:27:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 106 then player1.horaFecha = "[ELIZA] 04:29:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 107 then player1.horaFecha = "[ELIZA] 04:30:08 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 108 then player1.horaFecha = "[ELIZA] 04:32:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 109 then player1.horaFecha = "[ELIZA] 04:33:08 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 110 then player1.horaFecha = "[ELIZA] 04:35:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 111 then player1.horaFecha = "[ELIZA] 04:36:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 112 then player1.horaFecha = "[ELIZA] 04:38:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 113 then player1.horaFecha = "[ELIZA] 04:39:04 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 114 then player1.horaFecha = "[ELIZA] 04:42:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 115 then player1.horaFecha = "[ELIZA] 04:44:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 116 then player1.horaFecha = "[ELIZA] 04:47:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 117 then player1.horaFecha = "[ELIZA] 04:49:15 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 118 then player1.horaFecha = "[ELIZA] 04:50:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 119 then player1.horaFecha = "[ELIZA] 04:52:20 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 120 then player1.horaFecha = "[ELIZA] 04:53:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 121 then player1.horaFecha = "[ELIZA] 04:53:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 122 then player1.horaFecha = "[ELIZA] 04:55:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 123 then player1.horaFecha = "[ELIZA] 04:56:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 124 then player1.horaFecha = "[ELIZA] 04:57:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 125 then player1.horaFecha = "[ELIZA] 04:58:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 126 then player1.horaFecha = "[ELIZA] 04:59:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 127 then player1.horaFecha = "[ELIZA] 05:01:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 128 then player1.horaFecha = "[ELIZA] 05:01:40 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 129 then player1.horaFecha = "[ELIZA] 05:01:50 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 130 then player1.horaFecha = "[ELIZA] 05:02:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 131 then player1.horaFecha = "[ELIZA] 05:02:35 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 132 then player1.horaFecha = "[ELIZA] 05:03:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 133 then player1.horaFecha = "[ELIZA] 05:03:40 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 134 then player1.horaFecha = "[ELIZA] 05:04:15 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 135 then player1.horaFecha = "[ELIZA] 05:05:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 136 then player1.horaFecha = "[ELIZA] 05:15:20 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 137 then player1.horaFecha = "[ELIZA] 05:25:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 138 then player1.horaFecha = "[ELIZA] 05:42:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 139 then player1.horaFecha = "[ELIZA] 05:57:11 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 140 then player1.horaFecha = "[ELIZA] 06:03:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 141 then player1.horaFecha = "[ELIZA] 06:05:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 142 then player1.horaFecha = "[ELIZA] 06:11:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 143 then player1.horaFecha = "[ELIZA] 06:15:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 144 then player1.horaFecha = "[ELIZA] 06:17:23 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 145 then player1.horaFecha = "[ELIZA] 06:25:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 146 then player1.horaFecha = "[ELIZA] 06:30:46 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 147 then player1.horaFecha = "[ELIZA] 06:37:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 148 then player1.horaFecha = "[ELIZA] 06:38:52 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 149 then player1.horaFecha = "[ELIZA] 06:40:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 150 then player1.horaFecha = "[ELIZA] 06:42:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 151 then player1.horaFecha = "[ELIZA] 06:43:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 152 then player1.horaFecha = "[ELIZA] 06:44:11 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 153 then player1.horaFecha = "[ELIZA] 06:45:42 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 154 then player1.horaFecha = "[ELIZA] 06:46:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 155 then player1.horaFecha = "[ELIZA] 06:47:11 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 156 then player1.horaFecha = "[ELIZA] 06:48:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 157 then player1.horaFecha = "[ELIZA] 06:51:23 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 158 then player1.horaFecha = "[ELIZA] 06:52:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 159 then player1.horaFecha = "[ELIZA] 06:54:43 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 160 then player1.horaFecha = "[ELIZA] 06:55:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 161 then player1.horaFecha = "[ELIZA] 06:55:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 162 then player1.horaFecha = "[ELIZA] 06:56:10 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 163 then player1.horaFecha = "[ELIZA] 06:56:30 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 164 then player1.horaFecha = "[ELIZA] 06:57:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 165 then player1.horaFecha = "[ELIZA] 06:57:14 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 166 then player1.horaFecha = "[ELIZA] 06:58:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 167 then player1.horaFecha = "[ELIZA] 06:59:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 168 then player1.horaFecha = "[ELIZA] 06:59:20 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 169 then player1.horaFecha = "[ELIZA] 06:59:59 del 25 de Diciembre del 2028" print(player1.horaFecha) end + if player1.nturno == 170 then player1.horaFecha = "[ELIZA] 07:00:00 del 25 de Diciembre del 2028" print(player1.horaFecha) end +end + +function calcularCol() + + --player1 + player1.col = math.fmod(player1.room-1,4)+1 + + --player2 + player2.col = math.fmod(player2.room-1,4)+1 + +end + + +function calcularFila() + + --player1 + player1.fila = math.fmod(math.floor((player1.room-1)/4),4)+1 + + --player2 + player2.fila = math.fmod(math.floor((player2.room-1)/4),4)+1 + +end + + +function inicioPlayer2() + calcularFila() + calcularCol() + + if player1.fila == player2.fila or player1.col == player2.col then + + while player1.fila == player2.fila or player1.col == player2.col do + player2.room = love.math.random(1, 16) + calcularFila() + calcularCol() + end + + end + +end + diff --git a/fx/botella001.ogg b/fx/botella001.ogg new file mode 100644 index 0000000..b99a949 Binary files /dev/null and b/fx/botella001.ogg differ diff --git a/fx/botella002.ogg b/fx/botella002.ogg new file mode 100644 index 0000000..f197b3c Binary files /dev/null and b/fx/botella002.ogg differ diff --git a/fx/oler001.ogg b/fx/oler001.ogg new file mode 100644 index 0000000..863cecf Binary files /dev/null and b/fx/oler001.ogg differ diff --git a/fx/puerta001.ogg b/fx/puerta001.ogg new file mode 100644 index 0000000..2a1f121 Binary files /dev/null and b/fx/puerta001.ogg differ diff --git a/fx/puerta001_agua.ogg b/fx/puerta001_agua.ogg new file mode 100644 index 0000000..d0ee46d Binary files /dev/null and b/fx/puerta001_agua.ogg differ diff --git a/fx/puerta001_agua2.ogg b/fx/puerta001_agua2.ogg new file mode 100644 index 0000000..f028561 Binary files /dev/null and b/fx/puerta001_agua2.ogg differ diff --git a/fx/puerta002.ogg b/fx/puerta002.ogg new file mode 100644 index 0000000..a40ebb9 Binary files /dev/null and b/fx/puerta002.ogg differ diff --git a/fx/puerta003.ogg b/fx/puerta003.ogg new file mode 100644 index 0000000..0f5d764 Binary files /dev/null and b/fx/puerta003.ogg differ diff --git a/fx/puerta003_agua.ogg b/fx/puerta003_agua.ogg new file mode 100644 index 0000000..e091886 Binary files /dev/null and b/fx/puerta003_agua.ogg differ diff --git a/fx/puerta003_agua2.ogg b/fx/puerta003_agua2.ogg new file mode 100644 index 0000000..cd66110 Binary files /dev/null and b/fx/puerta003_agua2.ogg differ diff --git a/fx/puerta004.ogg b/fx/puerta004.ogg new file mode 100644 index 0000000..a1f6542 Binary files /dev/null and b/fx/puerta004.ogg differ diff --git a/fx/puerta005.ogg b/fx/puerta005.ogg new file mode 100644 index 0000000..f306c38 Binary files /dev/null and b/fx/puerta005.ogg differ diff --git a/fx/puerta006.ogg b/fx/puerta006.ogg new file mode 100644 index 0000000..7d2ba84 Binary files /dev/null and b/fx/puerta006.ogg differ diff --git a/fx/puerta007.ogg b/fx/puerta007.ogg new file mode 100644 index 0000000..46bc783 Binary files /dev/null and b/fx/puerta007.ogg differ diff --git a/fx/puerta008.ogg b/fx/puerta008.ogg new file mode 100644 index 0000000..42509da Binary files /dev/null and b/fx/puerta008.ogg differ diff --git a/imagenes/disco.png b/imagenes/disco.png new file mode 100644 index 0000000..c2a7ca0 Binary files /dev/null and b/imagenes/disco.png differ diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..2f39cff --- /dev/null +++ b/main.lua @@ -0,0 +1,56 @@ +utf8 = require("utf8") +require("funciones/generales") +require("rooms/rooms") + +function love.load() + comando = "" + tipojugador= "" + + -- Seteamos variables de Eliza + player0 = {} + player0.vida = 999 + player0.room = 666 + player0.tipojugador = "Narradora" + player0.nturno = 0 + player0.nivel = 0 + player0.horaFecha = "00:00 del 25 de Diciembre del 2028" + player0.alcohol = 0 + player0.fila = 0 + player0.col = 0 + + + -- Seteamos variables de jugador 1 iniciales + player1 = {} + player1.vida = 100 + player1.room = 0 + player1.tipojugador = "" + player1.nturno = 0 + player1.nivel = 0 + player1.horaFecha = "00:00 del 25 de Diciembre del 2028" + player1.alcohol = 0 + player1.fila = 0 + player1.col = 0 + + -- Seteamos variables de jugador 2 iniciales + player2 = {} + player2.vida = 100 + player2.room = -1 + player2.tipojugador = "" + player2.nturno = 0 + player2.nivel = 0 + player2.horaFecha = "00:00 del 25 de Diciembre del 2028" + player2.alcohol = 0 + player2.fila = 0 + player2.col = 0 + + cargarMusica() + font = love.graphics.newFont("fuentes/pxplus_ibm_vga8.ttf", 20) + love.keyboard.setKeyRepeat(true) +end + +function love.draw() + comprobarHabitacionActiva() + comprobarMusica() + comprobarVida() +end + diff --git a/musica/musica001.ogg b/musica/musica001.ogg new file mode 100644 index 0000000..b4de69b Binary files /dev/null and b/musica/musica001.ogg differ diff --git a/musica/musica002.ogg b/musica/musica002.ogg new file mode 100644 index 0000000..4696e50 Binary files /dev/null and b/musica/musica002.ogg differ diff --git a/musica/musica003.ogg b/musica/musica003.ogg new file mode 100644 index 0000000..b0bc926 Binary files /dev/null and b/musica/musica003.ogg differ diff --git a/rooms/rooms.lua b/rooms/rooms.lua new file mode 100644 index 0000000..5d8a8b2 --- /dev/null +++ b/rooms/rooms.lua @@ -0,0 +1,421 @@ +-- ROOM 0 - Para cargar el texto del inicio y seleccionar personaje +function room0() + inicio = "¿Eres de Desarrollo o de Sistemas?" + cursor = "#" + love.graphics.setFont(font) + love.graphics.setColor(0, 255, 0) + love.graphics.printf(inicio, 220, 230, love.graphics.getWidth()) + love.graphics.printf(cursor, 220, 260, love.graphics.getWidth()) + love.graphics.printf(comando, 235, 260, love.graphics.getWidth()) + mostrarElizaBarra() +end + +function room1() + -- Esta sala conecta por el este con la 2 y por el sur con la 5. + room = {} + room.id = 1 + room.name = "Archivo" + room.norte = 0 + room.este = 1 + room.sur = 1 + room.oeste = 0 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "Te encuentras en la sala de Archivo.\n\nEn las estanterias se encuentra documentación impresa de viejos proyectos. Una capa de polvo cubre cajas de disquetes y cintas.\n\nEl código de juegos ya olvidados está allí esperando que alguien algún día se digne a recuperarlo y liberarlo como software libre.\n\nHas intentado varias veces que la empresa liberase el código de esos viejos juegos. La última vez fue el año pasado pero no pudo ser.\n\nHuele como a fiesta secreta en alguna otra habitación colindante. Fiesta a la que no te invitaron.\n\nSalidas: este y sur." + else + -- Sistemas + room.descripcion = "Te encuentras en la sala de Archivo.\n\nEn las estanterias se encuentra documentación impresa de viejos proyectos. Una capa de polvo cubre cajas de disquetes y cintas. Copias de distros ya olvidadas están archivadas.\n\nUna de las estanterias tiene manuales de sistemas operativos. Existe literatura tecnica de bases de datos y licencias de software privativo de hace decadas.\n\nHuele como a fiesta secreta en alguna otra habitación colindante. Fiesta a la que no te invitaron.\n\nSalidas: este y sur." + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + + +function room2() + room = {} + room.id = 2 + room.name = "La fiesta salvaje" + room.norte = 0 + room.este = 1 + room.sur = 1 + room.oeste = 1 + + if player1.alcohol == 1 then + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "La haitacn hle a m4rijuanaa.. obre la esa centr quan bollas vaias de whky, vzka y paran. En el suel vs caloillos btante riculo yun par.. d sjeadrs.\n\nAlgen s lopasó bin trs l trajo pias. Segurte esda genta d direcs qe no reetan naa n a nae. El peral de limpiezaaaa se lo paará pia limpia eta mida mñana xr la maana.\n\nUn reoj n la paed indila ra y fha.\n\nSalidas: Este, Sur y Oeste" + else + -- Sistemas + room.descripcion = "La hbición hule a mahuana. Sobe la mesa cetral quan btelas vcia de whky, vzka y pachaan. Enelsulo vesss cazonclls btante ridulos y 1 par d suadore.\n\nAlgen se lo pasóooo ben tas l trabo pisas. Seamente ea gtuza d diraccin q no restan nda ni a nae. El prsnal de liieza s lo pará ppa limndo esa merda mñna pr la mana.\n\nUn roj en la ped inca la hoa y fcha.\n\nSalidas: Este, Sur y Oeste" + end + else + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "La habitación huele a marihuana. Sobre la mesa central quedan botellas vacias de whisky, vozka y pacharan. En el suelo ves calzoncillos bastante ridiculos y un par de sujetadores.\n\nAlguien se lo pasó bien tras el trabajo piensas. Seguramente la gente de dirección que no respetan nada ni a nadie. El personal de limpieza se lo pasará pipa limpiando esta mierda mañana por la mañana.\n\nUn reloj en la pared indica la hora y fecha.\n\nSalidas: Este, Sur y Oeste" + else + -- Sistemas + room.descripcion = "La habitación huele a marihuana. Sobre la mesa central quedan botellas vacias de whisky, vozka y pacharan. En el suelo ves calzoncillos bastante ridiculos y un par de sujetadores.\n\nAlguien se lo pasó bien tras el trabajo piensas. Seguramente la gente de dirección que no respetan nada ni a nadie. El personal de limpieza se lo pasará pipa limpiando esta mierda mañana por la mañana.\n\nUn reloj en la pared indica la hora y fecha.\n\nSalidas: Este, Sur y Oeste" + end + end + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room3() + room = {} + room.id = 3 + room.name = "Cuadro eléctrico zona norte" + room.norte = 0 + room.este = 1 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "La sala es bastante pequeña y está completamente vacía.\n\nSolamente un cuadro eléctrico sin tapa se ve colgando en la pared.\n\nUn ejemplo más de como se toman la seguridad en la empresa.\n\nHuele a fiesta en una habitación cercana.\n\nSalidas: Este, Oeste y Sur" + else + -- Sistemas + room.descripcion = "La sala es bastante pequeña y está completamente vacía.\n\nSolamente un cuadro eléctrico sin tapa se ve colgando en la pared.\n\nUn ejemplo más de como se toman la seguridad en la empresa.\n\nHuele a fiesta en una habitación cercana.\n\nSalidas: Este, Oeste y Sur" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room4() + room = {} + room.id = 4 + room.name = "Baños oscuros" + room.norte = 0 + room.este = 0 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "Estás en el baño. Las luces no funcionan y todo anda en penumbra absoluta.\n\nAl caminar escuchas el sonido de estar pisando agua. Puedes notar la humedad en el ambiente y al fondo de la habitación se escucha el sonido de un grifo abierto.\n\nSi esto es una broma de la gentuza de sistemas no tiene nada de gracioso.\n\nEnchufas el smartphone al enchufe justo al lado del switch de la luz para recargar a ELIZA. Pero no parece que en esta habitación el sistema electrico tenga ahora mismo energia. Lo desenchufas por tanto.\n\nSalidas: Oeste y Sur" + else + -- Sistemas + room.descripcion = "Estás en el baño. Las luces no funcionan y todo anda en penumbra absoluta.\n\nAl caminar escuchas el sonido de estar pisando agua. Puedes notar la humedad en el ambiente y al fondo de la habitación se escucha el sonido de un grifo abierto.\n\nSi esto es una broma de la gentuza de desarrollo no tiene nada de gracioso.\n\nEnchufas el smartphone al enchufe justo al lado del switch de la luz para recargar a ELIZA. Pero no parece que en esta habitación el sistema electrico tenga ahora mismo energia. Lo desenchufas por tanto.\n\nSalidas: Oeste y Sur" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room5() + room = {} + room.id = 5 + room.name = "Habitación vacía ala Oeste" + room.norte = 1 + room.este = 1 + room.sur = 1 + room.oeste = 0 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "La habitación está completamente vacía. Hace años esto era la sala en la que trabajaba el departamento de comunicación.\n\nEstaba llena de vida y humanidad. Pero poco a poco los servicios de comunicación se externalizaron y fueron sustituidos por algoritmos.\n\nSolamente se ve en una esquina de la habitación una cesta con un lazo. Recuerda a aquellos tiempos en los que las empresas propinaban por navidad a sus equipos con ese tipo de regalos.\n\nSalidas: Norte, Este y Sur" + else + -- Sistemas + room.descripcion = "La habitación está completamente vacía. Hace años esto era la sala en la que trabajaba el departamento de comunicación.\n\nEstaba llena de vida y humanidad. Pero poco a poco los servicios de comunicación se externalizaron y fueron sustituidos por algoritmos.\n\nSolamente se ve en una esquina de la habitación una cesta con un lazo. Recuerda a aquellos tiempos en los que las empresas propinaban por navidad a sus equipos con ese tipo de regalos.\n\nSalidas: Norte, Este y Sur" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room6() + room = {} + room.id = 6 + room.name = "nombre room 6" + room.norte = 1 + room.este = 1 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room7() + room = {} + room.id = 7 + room.name = "nombre room 7" + room.norte = 1 + room.este = 1 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room8() + room = {} + room.id = 8 + room.name = "nombre room 8" + room.norte = 1 + room.este = 0 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room9() + room = {} + room.id = 9 + room.name = "nombre room 9" + room.norte = 1 + room.este = 1 + room.sur = 1 + room.oeste = 0 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room10() + room = {} + room.id = 10 + room.name = "nombre room 10" + room.norte = 1 + room.este = 1 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room11() + room = {} + room.id = 11 + room.name = "Habitación vacía" + room.norte = 1 + room.este = 1 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "La habitación está completamente vacía.\n\nSalidas: Norte, Este, Oeste y Sur" + else + -- Sistemas + room.descripcion = "La habitación está completamente vacía.\n\nSalidas: Norte, Este, Oeste y Sur" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room12() + room = {} + room.id = 12 + room.name = "nombre room 12" + room.norte = 1 + room.este = 0 + room.sur = 1 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room13() + room = {} + room.id = 13 + room.name = "nombre room 13" + room.norte = 1 + room.este = 1 + room.sur = 0 + room.oeste = 0 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room14() + room = {} + room.id = 14 + room.name = "nombre room 14" + room.norte = 1 + room.este = 1 + room.sur = 0 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room15() + room = {} + room.id = 15 + room.name = "nombre room 15" + room.norte = 1 + room.este = 1 + room.sur = 0 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() + +end + +function room16() + room = {} + room.id = 16 + room.name = "nombre room 16" + room.norte = 1 + room.este = 0 + room.sur = 0 + room.oeste = 1 + + -- Desarrollo + if player1.tipojugador == "Developer" then + room.descripcion = "bla bla bla bla desarrollo" + else + -- Sistemas + room.descripcion = "bla bla bla bla sistemas" + end + + mostrarBarraInfo() + mostrarSalidas() + mostrarDescripcion() + mostrarElizaBarra() + mostrarEntradaTexto() +end