5 ms·
So.. that's just a card moving simulator ? I am missing something crazy or why does this have that many points on Hacker news ?
by Heyso 3y ago
So.. that's just a card moving simulator ? I am missing something crazy or why does this have that many points on Hacker news ?
- spyremeown 3y agoDon't you think it's just neat? I think it's neat.
- joss82 3y agoSimulating playing cards is surprisingly hard. Doing so flawlessly at consistent 60fps in a mobile browser is quite the feat, don't you think?
- alexb_ 3y agoIt wasn't surprisingly hard back when Flash wasn't ripped from all browsers.
- trufas 3y agoOnly if you ignore the flawlessly at 60 fps part.
- chrisco255 3y agoAnd the mobile browser part.
- mattl 3y agoOr even the desktop browser part. If you were on Windows or a Mac, maybe you had access to Flash player.
- buddhistdude 3y agoCan someone explain what the technical challenges are? On first glance this seems like something one could implement on a weekend, I am sure that's not the case.
- StevePerkins 3y agoYou can review the source code right here: https://github.com/deck-of-cards/standard-deck https://github.com/deck-of-cards/standard-deck I'm not sure that there are many technical challenges. It's 10k lines of Javascript, and a ton of that are curly braces or blank whitespace lines. I certainly don't want to knock the author here. This IS a neat and satisfying little project. But I have to agree with a comment elsewhere in this sub-thread, pointing out that teenagers were making advanced 60fps video games with Flash back in the 1990's. Between Flash dying, and VB 6 dying, it feels like the ability for community members to simply MAKE SHIT has eroded tremendously. To be fair, a lot of this has to do with Windows declining as a monopoly desktop platform, and the rise of mobile as an alternate platform. Cross-platform is hard, especially across wildly different form factors and user interface types. But even so, I miss the days of people showing off cool shit all the time. Stuff you could touch, play with, use. Today the showcase is mostly libraries "written in Rust!", that you can use to build other libraries written in Rust. Along with half-baked tools like Flutter and React Native, that are eternally "one year away" from being suitable for desktop apps, and kinda suck compared to the tools we had decades ago.
- pkstn 3y agoI'm the author of Deck.of.Cards, actually did the first version with Flash back in 2008. I started with Flash back in 1999, working in major ad agencies, and nowadays work as fullstack JS developer / entrepreneur. This project is just a small experiment of mine, wanted to fiddle around with nicer shuffle animation than what's usually seen, and inspire others as well by sharing the source code. I've also done https://car.js.org https://car.js.org for example, and https://flanets.io https://flanets.io – those as well just small side experiments.. But ya, i have to agree we used to see more creative stuff when Flash was still around, and that is sad.
- chrisco255 3y agoI assume the Deck of Cards tool was no easier to implement in Flash than in JS?
- moolcool 3y agoI don't know how people hate on Flash. A teenager could make great games that ran at 60fps on a Pentium II. Today we're impressed that you can slide some cards around with Javascript.
- pkstn 3y agoI actually did the first version of Deck of Cards with Flash back in 2008