Skip to content
kesievPublic

About

An unfaithful tribute to a great modern block stacker.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

DRAGFALL

An unfaithful tribute to a great modern block stacker


The game

Drag any block horizontally on the field to drop it, create lines, and remove them. Each time you move a block, new ones will fall from above. Survive as long as you can!

Oh, I almost forgot. You can also move incoming blocks!

The story

A long time ago, I used to play the original Slydris on my ancient iPhone 3G. It was a golden age, where developers were looking for ways to create new touchscreen-based games, drawing inspiration from the entire history of gaming. Clearly, all eyes were on the most famous block stacker in history, but despite several attempts, I found that game to be the most distant and yet successful of the experiments.

18 years later, I found myself still convinced of it... and in sudden abstinence.

Now, with an Android device, I went looking for it only to discover that not only it had a gorgeous sequel in 2018, which was released for Android the following year... but both titles are also no longer playable on Android.

The only thing left for me was a flashy video to see and nothing more. I've praised the Gods for a re-release and then... nothing.

A few days later, I decided to dedicate all my breaks to creating something that resembled it. I didn't need anything too fancy or faithful. I needed a link to click to release the dopamine and addiction in case I needed it.

I know there are plenty of casual-game-themed clones already out there. But my heart still lives in the '90s. I need .XM music, flashing lights, kaleidoscopic animations, and 8-bit sound effects while I stack my blocks.

That's why this game is here.

The project

The graphic

Squares, shadows, glows, particles, and no sprites should be enough to give the game the retro laser look I like. I just paired it with a cool font: the Y224 by GGBotNet is futuristic, edgy, and almost unreadable. Simply perfect.

Just you and the blocks

The gameplay

The original idea was to create a single game mode, without any menus. You go to a webpage, tap/click on the screen, and play.

I started implementing the core gameplay, some special blocks, and a Standard game mode inspired by both the original game sequel (videos...) and some modern block-stacker games aesthetics/progression.

Stacking blocks and clearing lines

The resulting game was a bit more complex than the first game, so I fiddled with the configurations to create something that reminded me of it. The strategy needed to play this alternative mode was slightly different than the Standard mode, so I sped it up and named it Gatling mode.

Gatling mode

This forced me to create a menu system, to which I then added some game settings.

Looking for videos of the first game, I remembered that I used to play Survival mode the most, in which blocks appeared in bursts after 10 seconds instead of at every move. I hammered it into the code and added a flower-themed Burst mode.

Burst mode

There is a lot of room for creating more game modes and new gameplay ideas, but 3 modes are were more than enough for me.

More game modes

Feeling a little lonely? So am I! After release, I've added the Yinyang mode, which basically is a classic Vs. mode against yourself in the past.

The game records the garbage you generate for ~30 seconds, and then it sends that back to you in the following ~30 seconds with the same timing. You can cancel incoming garbage stacking higher combos in 10-second rounds à la tug-of-war, but then you'll have to fight that better version of you. The game will unleash your fury against yourself, level after level. Have fun!

Yinyang mode

Anyway, I've tried to make creating new modes fairly simple, just in case.

The quick drop button

I usually keep working on my pet project until the result does the job and there is no feedback from the Internet. Someone asked for the quick drop button implementation from the original game: if the pile is low enough, you can summon a burst of blocks to play with.

I hadn't implemented it because it didn't seem necessary for this on-the-fly implementation. I was wrong: after implementing it, I remembered using it often to keep the game's pace high and score even more points. Many modes are now more fun and gain an interesting strategic layer, like in Yinyang mode.

The Quick Drop button (red in Standard mode)

Even more game modes

The quick save and quick drop features had a specific purpose: implement the requested Chill mode. In this mode, there are no timers and no falling blocks as you move them. You can tidy up your blocks at your pace and ask for a few more using quick drops. The quick save feature will save it on your device as you close the page, so you can come later and take care of your pile. Since the summer holidays are approaching, I gave it a "beach" theme.

Chill mode

...And, after a timeless mode, what about a timed one? 40 Lines mode is quite a classic in Tetris games: you have to clear 40 lines as fast as you can. After tidying up the game modes definition file and reworking the game timers, I've added a 40-Lines mode. You can't gain color gems or get any special block in this mode, so it's all about your stacking skills.

40-Lines mode

BragBoard™

Our trusty Preuk asked on Discord for a highscore page to list scores from all modes in a single ego trip screenshot screen. Since he's a long-time good cyberfriend, I've created a whole highscore-sharing system instead, inspired by Rewtro: introducing BragBoard™!

My launch day BragCard™! In my defense, I declare that I cleared my highscores and played each mode just once.

You can brag share your highscores with friends via BragCards (Old-school forums inspired images), BragLinks (Plain weblinks), or BragQRs (QR-Codes displayed in-game). BragQRs just contain a BragLink, so they can be scanned with any QR-Code scanner. Anyway, I've slammed a BragQR reader in DRAGFALL too, so you can easily scan multiple of them in-game.

Shared scores (called Brags) are just aside your regular highscores. On the mode selection screen, you can see who is bragging about their highscore. If you've beaten him, it will be shamefully grayed out, so you can feed your ego every time you see that.

"Mobile" bragged his Gatling Mode score!

Ah, bragging to your friends about your scores. Now it's truly summer.

The animations

On mobile, there is almost no room for background animations as the field covers the entire screen. On desktop, instead, there is a lot of space around it - as for most of the block stacking games - so I started looking for some abstract psychedelic animations to show in the background.

It's an area I'm not very knowledgeable about, but there are several libraries that can help me, especially thanks to the (unbearable) trend of abstract and interactive backgrounds that websites have today.

But I wanted to try something different.

I wholeheartedly respect the code golfing community, but the Dwitter scene is the one I follow most passionately. With a CANVAS node and 140 characters of JavaScript code only, people can make gorgeous art. It's sick.

The Smokey 3D structure with joey's shadow dweet running on the title screen

I've created something to wrap these code chunks and use them as game background animations. I've added some hacks to render them at different qualities, as they are often not hardware-accelerated.

The original authors are in the credits, and I hope this little tribute will please them. However, I'm not entirely sure what license these snippets are under. If you'd like me to remove (or include) your animation, please contact me!

A pinch of drama

Someone posted an intriguing request on GitHub, asking for some dramatic effects on good plays. Sadly, I haven't received any notification about that, and it got lost for a few days. I've added some bullet time, brighter and larger particles, and a pulsating background.

The longer the combo, the more the effects

It uses of the particles, field effects, and background parameters I already implemented. I left out the text sparks since the effect wasn't cool and readable enough. The UI, gameplay, and VFX timer split I made for the 40-Lines mode also came in handy, as I applied different scales to them to create the slowdown effect.

The music

Oh, my beloved The Mod Archive. I've looked for some nice .XM tunes there and used the jsxm library to play them. I love club, acid, and funky atmospheres depending on the expected block stacking pace. Hope you'll like it too.

Authors are in the credits, and songs should be under the Mod Archive Distribution license. If you'd like me to remove (or include) your song, please contact me!

The controls

Someone on Reddit asked for multiple control schemes, so I've added keyboard and gamepad support. The game is very different when played with buttons!

When using buttons, you play by moving a blinking cursor around the grid

The NetPlay

I'm not getting much feedback on this game... but that won't stop me from adding more things. Although the Yinyang mode is designed to challenge yourself, there is a mode that is essential when facing a rival/friend. Ever since the days of the Game Boy, players have been battling it out by hurling trash at each other in block-based puzzle games. Now that feature is here, too.

The VS. Mode

Ages ago, in PvP, I added LAN multiplayer up to 4 players using PeerJS to trade bullets with my wife and nephews. This time I'm adding a classic 1-on-1 VS. Mode to challenge my wife once again, this time in vanilla JavaScript, using RTCPeerConnection, and a dash of PHP to let peers exchange offers via Room ID. It's a bit rushed, but it should be flexible enough for me to add even more 2-player modes in the future. Maybe.

The extras

The game works natively on multiple resolutions with optional scaling, fullscreen, offline, and it can be installed on your device. I wanted to be able to always stack.

Some modes have longer games, and I found myself having to interrupt them on several occasions. I decided to add an optional quick save feature: when the game is closed, the state is saved and automatically reloaded when reopened.

Credits

Font

Animations

Music

Sound effects

Libraries

Thanks

  • Bianca
  • Preuk
  • Dymonika (Suggested new DRAGFALL features on Reddit)

About

An unfaithful tribute to a great modern block stacker.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages