12-27-2023, 04:40 AM
(11-24-2023, 08:33 PM)Marcus Wrote: 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.
...
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 ...