Work in Progress

Submarine Game

7

McPepic 2022-08-26 15:06 (Edited)

Simple submarine game I’m working on.

Uses my Improved Cellular Automata to generate the map
Based on my Underwater effect program

Smoothing done by was8bit
Rudder and ocean sounds by SP4CEBAR

Edit 1: Collision added to submarine. Animated fish (doesn’t do anything yet)
Edit 2: Fish moves around now. Added cheat section to code.
Edit 3: Sounds added. Light around ship. More cheats. Improved collision.

Submarine Game.nx | Open in app
2022-08-28 19:14
Submarine Game.nx | Open in app
2022-08-27 16:13
Submarine Game.nx | Open in app
2022-08-26 15:06

was8bit 2022-08-26 16:32

That looks so cool :) I also noticed your twin rotors, nice touch :)


SP4CEBAR 2022-08-27 14:12

Really cool, I like the subtle engine animation


was8bit 2022-08-27 15:50 (Edited)

One idea for an easy collision system would be....

Create a single cell Sprite with char#81 that constantly tracks the same spot on your submarine

Then only check for collisions with that sprite with only char#1 (if you are familiar with my one method of converting cells to Sprites for pixel detection)

This reduces collisions only with the core of your SUB with only full solid blocks of rock...

There are other systems.... myself, i would further limit movement to 8 pixels at a time to restrict movement aligned with the cells and just use cell.c as my check, skipping the extra Sprites and hit check, but that wouldn't be as fluid...


McPepic 2022-08-27 15:55

@was8bit, that’s what I’m currently working on.


was8bit 2022-08-28 04:11

Works great! Luv the little fishy :)


was8bit 2022-08-29 04:28

Oooo cheats :D


SP4CEBAR 2022-08-29 09:14 (Edited)

I just made some sounds:
- engine: PLAY 1,13 SOUND 0
- ocean: PLAY 0,25 SOUND 1

#15:MAIN SOUND
2800066F010DBF003800888F10820A00
08006090000000002800309019FE0000


McPepic 2022-08-29 15:58

@was8bit, I thought you’d like it.
@SP4CEBAR, Thanks, it’ll definitely be in the next update!


was8bit 2022-08-29 16:04

I LOVE cheats, especially because my body doesnt respond like i think it is... i cannot hit a sequence of buttons quickly properly... example, run and then jump 1/4 second later... my timing is always that i jump AFTER i am plummeting to my digital death ;)


was8bit 2022-08-30 17:58

Coolio 😎


AstonBrown 2022-11-06 11:22

dunno bout you guys but im stuck


AstonBrown 2022-11-06 11:23

as in, the generated terrain sometimes encompasses the sub


McPepic 2022-11-06 13:23

@AstonBrown
By nature of the generator, I don’t know where the terrain will be until it’s generated. If you get stuck, just restart the program and it will generate a new map. You can also enable noclip using the cheats in the source code!


AstonBrown 2022-11-06 13:24

ah thanks mcpepic


J.Koher 2023-07-15 17:16

Awesome effects!


Log in to reply.