Questions about old games - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html) +--- Forum: NaaLaa 7 Questions (https://www.naalaa.com/forum/forum-3.html) +--- Thread: Questions about old games (/thread-110.html) |
RE: Questions about old games - johnno56 - 04-01-2024 (04-01-2024, 12:06 AM)1micha.elok Wrote:(03-30-2024, 08:25 PM)johnno56 Wrote: When you are right, you are right! Oh, let me see... I think I stored it with my Chrystal Ball and my Wizard's wand... lol Nah... I haven't even got the mechanics of the game sorted out yet... I am working on another version... Hopefully, if I can figure out how integrate Tilemap, then it should be a little easier to play. I have a hard copy of the Tilemap Editor document. It lists all the commands and provides an explanation, but there are no code samples... I am going to have to pick apart some of the N6 and N7 examples to try and figure out how to get it to work... Now, where did I put that Chrystal Ball?... RE: Questions about old games - Marcus - 04-01-2024 If you define the ground as a couple of connected lines, you can quite easily calculate the height at any x: Code: set window "test", 640, 480 I still haven't read through this thread yet, sorry. Maybe this is similar to what kevin did? RE: Questions about old games - kevin - 04-01-2024 (04-01-2024, 11:44 AM)Marcus Wrote: If you define the ground as a couple of connected lines, you can quite easily calculate the height at any x: Great example - I will be keeping this with other collision routines that I have. It's similar to the one I posted - it is checking for the Y value for any given X value. The main difference is that I was demonstrating one way to check for collisions against a freehand landscape that has been drawn as a .png image file. I've used the routine in the past for a "defender" type game, and it seems to work well in that type of thing. RE: Questions about old games - 1micha.elok - 04-02-2024 (04-01-2024, 05:11 AM)johnno56 Wrote: ... My On-Board computer had failed (line 50) ... but the code on line 110 said "Good Luck" ....Whaaaat Help .... I need the Chrystal Ball .... Quote:10 PRINT TAB(33);"LUNAR"http://www.vintage-basic.net/bcg/lunar.bas RE: Questions about old games - johnno56 - 04-02-2024 I know how to make the levels using the Tilemap Editor... I am really struggling with how and when to use the appropriate commands. The document that I have gives a summary of the Editor and a list of all the Library functions but there are no examples... A tutorial for the Editor would be a good idea.... In the meantime, I have used the "old school" method to create the level, using a text file of the "map" layout. Using a simple Axial Aligned Bounding Box function, for collision detection, I have managed to land the ship on the pad successfully and also managed to test the crashing as well... At the moment, the collision detection, is only working for the landing pad... Not much point if I can only land and crash on one tile... lol The game is still to short and a bit difficult to land... but it does land (and crash) on the red pad just fine... lol lander3.zip (Size: 51.4 KB / Downloads: 4) I am slowly going nuts with this one... maybe a nice game of Pong?... *sigh* RE: Questions about old games - Marcus - 04-02-2024 (04-02-2024, 09:45 AM)johnno56 Wrote: I know how to make the levels using the Tilemap Editor... I am really struggling with how and when to use the appropriate commands. The document that I have gives a summary of the Editor and a list of all the Library functions but there are no examples... A tutorial for the Editor would be a good idea.... There should be some tilemap examples in n7/examples/tilemap_library. But I'll see if I can make a video for the editor and code RE: Questions about old games - johnno56 - 04-02-2024 Thanks Marcus. I will certainly go over the examples again and see what I may be missing... I appreciate any effort that you are willing to do... Thank you... RE: Questions about old games - Marcus - 04-02-2024 (04-02-2024, 11:17 AM)johnno56 Wrote: Thanks Marcus. I will certainly go over the examples again and see what I may be missing... I appreciate any effort that you are willing to do... Thank you... I tried the game, and it's a fun one. Add some lunar storms to mess with the player and it'll be a hit! RE: Questions about old games - johnno56 - 04-02-2024 I have already setup another 8 maps... But, the current method of game play, is not what I am aiming for... The orbiter idea came from a Scratch game I saw many moons (mo pun intended) ago... Originally, the Lander will start from the green pad, take off and land on the red pad, using a limited amount of fuel. (this will be added once everything is working... lol) As I had not quite figured out the collision issues, I figured that the Lander, would "drop" to the surface.... It's just gone 5am and I need to get the coffees made before my wife heads off to work... |