Robowack - N7 version - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html) +--- Forum: NaaLaa 7 Code (https://www.naalaa.com/forum/forum-4.html) +--- Thread: Robowack - N7 version (/thread-13.html) |
Robowack - N7 version - Marcus - 11-24-2023 Here's an N7 version of the N5/N6 game Robowack. I'm using a version of the wolf3d library that has not been released yet, but it's included in the zip. The support for loading maps created with the RC Editor (n6) is not complete yet, so some parts of the code may look a bit weird. The lines in the original source code (robowack_n6_version.txt) match those in the n7 version (robowack.n7). So if you look at line 503 in the n6 code and wonder how to do that in n7, you can simply look at line 503 in the n7 version I made some small changes to the game: * The aspect of the window now matches that of the screen (monitor) * Increased the field of view to 72 degrees * Picking up a golden cross now gives you +5 health I translated the n6 version line by line to n7, so the game does not take advantage of the "new stuff" in n7. RE: Robowack - N7 version - johnno56 - 11-24-2023 Cool... Ran without error... I do not like those cannons... lol Nicely done! Just thought of an idea in reference to the 'mini-map'.... Not necessarily for this game.... Set up a keypress to momentarily show the location of treasures/enemies on the mini-map at the cost of health points eg: 20% By the way, I remember seeing your youtube clip on space invaders... Do you still have that program? Always wanted to code that game... lol RE: Robowack - N7 version - Marcus - 11-25-2023 (11-24-2023, 10:14 PM)johnno56 Wrote: Cool... Ran without error... I do not like those cannons... lol That's a very good, and kind of evil, idea! I'll see if I decide to write a proper n7 version of Robowack, else I'll probably use the idea in some other game. I could not find the space invaders game on the backup drive, nor the super mario game that I had hoped for myself RE: Robowack - N7 version - johnno56 - 11-25-2023 No credit for the idea... I have so few of them I figured I would give it away rather that just forgetting it as usual... lol Space Invaders... gone... *sniff* but not forgotten... No Mario? Oh no... the beginning of the end... we are all doomed... RE: Robowack - N7 version - Marcus - 11-30-2023 Obviously there are four golden crosses hidden inside a wall on the last level, "Lights out", making it impossible to finish. I wonder why I put them there ... RE: Robowack - N7 version - johnno56 - 12-01-2023 Deviousness... Pure deviousness! Moo Ha Ha Ha.... RE: Robowack - N7 version - 1micha.elok - 12-27-2023 (11-24-2023, 08:33 PM)Marcus Wrote: Here's an N7 version of the N5/N6 game Robowack. I simplified your source code of Robowack [ File : robowack_simplified.zip ] to allow me to learn the logic and the possibility to add more objects into the game in the future. Here are what have been simplified ; 1)robowack (Naalaa v7) - remove any kind of enemies - use automatic door - replace 'dark' with 'light' room - reduce 1011 to 184 lines of code - only 1 level of the game ( the goal is to find 12 crosses only ) 2) map (RC_Editor v6 ... It's the first time I use this great tool ) - remove obstacles (tins) - replace 'stone' with 'wall' image - replace 'net' with 'floor' image I am still curious whether it can be further simplified i.e. without the need of image files ... only with simple command such as 'draw line' or 'draw rect' to display the effect of 3D rooms ... |