Samplay - Pulp game devlog journey

Pulp race progress #7 : Resetting, teleportation, designing levels by testing

Since I created in pulp resetting room have been an issue. When I was doing Playposterous Hub, I had a screen that print all the tile in form of swap « tilename » at xval,yval

And created a function for resetting in the good position per level call… I had an only room so used it to reconstruct the room with is still by the function In Bullet Shoot Chronicle : Crazy Mobs Mania I just block the level already done (or pass them)

Here in Pulp Race , we can see there is no so much that disappear when the race is finish perhaps in enigma mode, key and door for exemple disappear By emit, variables (name, x,y) per room went use I managed to get back position of the tile that could disappear.

levelenigmaplentykeydoor

By calling register variable in function by swapping them at exit function of the room the tile saved are resetted
I have done that for 40x3 variable (x,y , name)(so around 120 function around 1 to 3 line) but it can be replicated for getting more if needed. When I’m sup of 41 variable I have a say function that’ll tell if I created more bigger design.

resetkeylevelswitch
*

I created teleportation within level, done firstly for two place (A to B) by emit and use the direction of the player, when we met a teleport tile then by emit the function it transport de player and also the cpu to next teleport
bugbutnotinconsole
I had an issue, the cpu can bug in the emulator but not in the playdate device ! it show that the coding should be test also in device even if it bug on the virtual console.. it also can say wait 0 as not exactly the same behavior in device and in virtual...

Another level example with multi teleport:
examplemultiteleport

Done it also for more teleport (C1,C2,C3,C4,C5) was emit is quite powerful and handle by certain event is nice. Because call emit periodically is not a good idea (emit call the function on each tile) but punctually would be ok. Created an enigma level with teleport also so it some new level design type I could use..if the player get stop on a teleport tile the player will be block, so it have to never be the case so the level have to be test to make it impossible.

levelteleportenigma

I’ll get a name chosen but still not final..idk... we will see :
a first title screen:

———————————
:::::: PULP RACE ::::::::
Daft Enigma Fighter
———————————

Continuing , cooking :playdate_new:

2 Likes