Stacker game devlog

i decided to just live with the music bug cuz its just a bug in wick and it doesnt affect the html.

i actually changed the song in the game because it has both a regular and danger version. the song is Sprint from Tetra Legends (i know this is a marathon game and not a sprint game, but i just like this song more). if you stack really high the board becomes red and the danger version plays, and if you go back down the music becomes normal again.

the last thing I need is a display for the level, lines cleared, etc. maybe iā€™ll do score, not completely sure.

Stacker3-17-2023_9-55-24.html (3.3 MB)

edit: for some reason iā€™m finding that the game likes to freeze every now and then (for up to 10 seconds or maybe even more). i donā€™t know if itā€™s something to do with the music, or just really inefficient code somewhere getting caught, or the uncapped framerate causing stress, or something else.

the game is Doneā„¢. basically done, anyway. iā€™m probably going to move on to reprogramming this in Unity C#, or just plain Java.

i put back all the graphics. the new block skin is in now, and thereā€™s a display for lines and level. also, you can press ā€œrā€ to reset the game.

thereā€™s no menus, no game over screen, none of that. just stacking blocks and stuff.

Stacker3-18-2023_21-15-08.html (3.2 MB)

1 Like

It feels like a good quality game. Congratulations. The grid animation for the game over is nice.

1 Like

maybe you could add a title screen and maybe settings as well. I know youā€™re done and if you donā€™t want to thatā€™s fine (and yes I know you said the game is done)

no!! java is my least favorite language if i had one. how come String can overload the plus operator but i canā€™t?

2 Likes

:thinking:

trying to work on a new featureā€¦ letā€™s see how long i can keep trying for.

2 Likes

I love the art, the pieces with the shine FX. Question: why the game board has a double lined like thin line with a thick line? I think that It could be cleaner without the thin line. (just an opinion)

1 Like

iā€™m guessing you are talking about these on both sides.

in multiplayer, these would be used for, well, multiplayer reasons. the left side shows how much garbage you are about to receive. so here, thereā€™s a red line 4 blocks tall in the left thing, and when i receive that garbage i get 4 lines of garbage.
garbageLines

the right side can be used for something else. one example would be to indicate level or lines cleared. so if cleared 7 lines out of the 10 lines needed to advance to speed level 2, the right side would be 70% full.

so those 2 columns are there in case i need them at a later time, and if they donā€™t need to be used, they wonā€™t be.

2 Likes

so, i kinda half-succeeded and gave up.

i was trying to work on the zone, which is a mechanic from Tetris Effect. if you press a button, you can activate the zone and line clears accumulate like in the gif below. when you reach the top, all the lines clear at the same time.

there are a few minor bugs, like when you are supposed to ā€œdieā€ and clear the zone lines, it allows you to play one more piece. you can see it in the gif actually. thereā€™s 2 T pieces (purple) in a row, and the first one should have stopped the second from spawning but it didnā€™t. i was allowed to place it still.

also it shouldnā€™t contribute to the line count. (that shouldnā€™t have been too hard of a fix, maybe)

zone_demonstration

not sure if I will release the html for this cuz it doesnā€™t exactly work properly. i think now is about a good time to transition to another game that iā€™ve been thinking about, or maybe iā€™ll return yet again to update this. (maybe iā€™ll start during the summer)

1 Like

preview of something iā€™m working on nowā€¦ trying to do multiplayer, so hereā€™s some garbage mechanics. (im using the keyboard to inject lines to myself as a test)

ezgif.com-video-to-gif-converter

2 Likes

nice, like preparing this for a multiplayer gameā€¦

hereā€™s a pretty exciting update!

you canā€™t see the garbage queue yet (that should come soon hopefully), but you can send and receive lines now. you cannot cancel lines yet (defend against incoming garbage by attacking), but that is in the plan.

this actually does not use SomeoneElseā€™s websocket code, but it is powered by a replit server.

ezgif.com-video-to-gif-converter (1)

1 Like

multiplayer is, done? feel free to test it out along with me!

so basically, what happens now is you clear lines to attack/defend. thereā€™s a one-second cooldown between being sent garbage and having it be able to attack you (so you can react). garbage is dim red when you cannot be hurt by it, and it is bright red when you can.

when sending garbage you attack every player online cuz iā€™m lazy right now, which means that any more than 4 players is essentially chaos.

attack table is as follows.

     SINGLE - 0
     DOUBLE - 1
     TRIPLE - 2
       QUAD - 4

SPIN SINGLE - 2
SPIN DOUBLE - 4
SPIN TRIPLE - 6

  ALL CLEAR - +10

there are no combos or back-to-backs because iā€™m lazy lol

you can press ā€œRā€ after you die to instantly revive, cuz why not

Stacker multiplayer1-4-2024_20-49-11.html (3.2 MB)

if i decide to make more changes, i might do a proper home screen, better UI, and customizable controls. i would make opponents visible but i think that would get very hard and slow, very fast.

1 Like

Iā€™ll take a look in within 2 hoursā€¦ Is this online multiplayer or local.

online multiplayer, but you canā€™t tell if others are online unfortunatelyā€¦ you only know when you receive garbage. i hope to make opponents visible but iā€™ll have to see what i can do.

Iā€™m playingā€¦ I left. It works pretty well. Congrats, great game, and beautiful graphics.

looks like it works pretty well then! iā€™ll try to add opponent previews now and hopefully it will work.

1 Like

websocket has been doing some funny stuff lol

  • you cannot use wick-specific code inside of a websocket event handler thing, because it will not understand what it means. this INCLUDES calling an outside function that uses wick-specific code lol. so when adding SFX to the garbage sending, i had to make workarounds because i could not use playSound() when receiving a lines message from the server.
  • if i remember correctly, SomeoneElseā€™s server was able to be kicked on when someone tried to join the server. so the Replit is usually turned off cuz of inactivity or disconnection or something, but magically if you connected to the server it would automatically turn the server on. i literally have no idea how that works and i canā€™t get it to work with my new server code.

anyways, i will try some more with the multiplayer thumbnails a little later, but i did add sound effects (will release along with the multiplayer thumbnails).

ā€¦ but you receive an event that runs at your clientā€¦ you are suppose to be able to call playSound()ā€¦ I was able to hear line sounds yesterdayā€¦ or do you want the other person to hear my lines? What about using WickSound?

https://forum.wickeditor.com/t/music-player-wicksound-class

the console will complain that playSound is not defined here. i have to use playSound outside of the websocket event.

i think thereā€™s 2 ways to write a websocket event, so maybe the other way will workā€¦ i might try later.