16 ms·
Classic arcade game TRON on a cloth modelling grid
- jastanton 12y agoWow that's really fun! Good work :)
- kreldjarn 12y agoThanks!
- bobbylox 12y agoCool demo. Turns out it kind of ruins the game because it makes the task of timing turns so much harder, but there was no way of knowing that until you tried it :) Great experiment, though!
- kreldjarn 12y agoShush, it's a gameplay feature! I agree it's not very fun to play — looks pretty though!
- laumars 12y agoI actually really enjoyed the weird spin on gameplay and didn't have the timings issue you raised. However I did have problems forgetting which lightcycle I was after I died (that one lap around the board seemed to throw me every time!) I do like this game a lot though - if just for the novelty factor
- Pwntastic 12y agoWhat's the music in this? I see boats.m4a but it doesn't have any metadata.
- kreldjarn 12y agoI made it! I didn't figure anyone was going to take a look at it so I skimped on the metadata.
- Pwntastic 12y agoOh, well damn. It's awesome! I would totally listen to this on a regular basis
- kreldjarn 12y agoThanks! My band just released a new single: http://youtu.be/cDeRQ7rNP4Y http://youtu.be/cDeRQ7rNP4Y (free download in description) — but that's quite a bit different from the music in the game.
- Pwntastic 12y agoI'm not going to lie, both the game music and the music in the youtube link are right up my alley. If you make an album of either, I'll buy them :)
- Kiro 12y agoReally good! I will definitely check out more Sykur stuff.
- daveidixon 12y agoThe music is great and fits perfectly. Really good job with the whole thing!
- bryans 12y agoI perused the rest of your videos, and couldn't really get into them. But Strange Loop really hit a sweet spot for me. The lyrics and melodies are phenomenal.
- kreldjarn 12y agoI agree. The other stuff is a few years old, and I like to think the new single is more mature.
- kachnuv_ocasek 12y agoYou're from THE Sykur? That's awesome, you're one of my favourite Icelandic hipster bands.
- doodpants 12y agoI wish it supported arrow keys. WASD is really awkward on a Dvorak keyboard.
- tzakrajs 12y agoSame problem on Colemak. (although less so thank Dvorak)
- kreldjarn 12y agoHa! Sorry about that. I wanted to avoid hard-coding keycodes for the sake of legibility so I used 'W'.getCharcodeAt(0) — which unfortunately doesn't work for the arrow keys.
- Recoil42 12y agoWhy not just use constants?
- deleted 12y ago[deleted]
- kreldjarn 12y agoPoint taken. I honestly did not perceive it as a necessary feature, but I'll fix this when I open up the code again.
- deleted 12y ago[deleted]
- ImJasonH 12y agoRather than berate him for this "unforgivable" practice, why not send him a pull request fixing it? https://github.com/kreldjarn/TRON/blob/gh-pages/scripts/Player.js#L39-L44 https://github.com/kreldjarn/TRON/blob/gh-pages/scripts/Play...
- louhike 12y agoOn keyboards for other languages than english too.
- beebs93 12y agoHa, very slick - nice work! The fabric makes timing a bit harder, but it's still a lot of fun.
- kreldjarn 12y agoThanks!
- darkmighty 12y agoHave you considered trying to make the fabric alter the gameplay (e.g. make things travel faster on warped fabric)? Great work btw.
- kreldjarn 12y agoThanks! There's definitely room for experimentation! At some point I want to incorporate the cloth more in the actual gameplay itself, whether it's in this demo or something else. It's a bit limited though, the forces exerted on the grid need to be within a relatively narrow range if the simulation is to obey the laws of sanity.
- shill 12y agoPressing N for debug mode freezes the fabric. :) var TOGGLE_CLEAR = 'C'.charCodeAt(0); var TOGGLE_BOX = 'B'.charCodeAt(0); var TOGGLE_UNDO_BOX = 'U'.charCodeAt(0); var TOGGLE_FLIPFLOP = 'F'.charCodeAt(0); var TOGGLE_RENDER = 'R'.charCodeAt(0); var TOGGLE_DEBUG = 'N'.charCodeAt(0);
- danepowell 12y agoDid the screen keep waving for anyone else after stopping the game? I'm feeling a bit woozy...
- Filthy_casual 12y agoI felt a headache/migraine coming up within a minute and immediately closed it. I can't afford to play Hotline Miami for the screen shaking effect that adds, either. I know one more guy who complained about Hotline Miami's screen shake: Totalbiscuit. Maybe I should try and link it to him on Twitter in hopes that he'll give me feedback.
- glaugh 12y agoWow, I'm surprised how powerful that effect is. I only played for a couple minutes (very cool), and I think it's been about a minute of my vision waving.
- amolgupta 12y agoI like the simple gameplay and music.sharing the highscore on twitter would be a fun feature.
- GrinningFool 12y agoCouldn't you just... make a post to twitter? I know it's become popular to integrate that kind of thing into apps and sites, but personally I'd rather not have twitter (and FB) widgets that track all of my activity across sites. Easy enough to copy the URL and make a twitter post.
- tzs 12y agoToo bad the keyboard layout diagram at the upper left doesn't do anything when clicked on. If clicking on the diagram keys had the same result as pressing the corresponding keyboard key, it could be playable on touch devices that lack keyboards ifyou added a way to start with a click.
- kreldjarn 12y agoThat's a very good idea. I'll implement that once uni exams are over in a few days.
- lfottaviano 12y agogood work! Cute game!
- jesse_m 12y agoThis was really fun! Good job!
- shardo 12y agoMaybe you could include the rules? I can't seem to figure out what they are..
- kreldjarn 12y agoYou play the white light-cycle. i. Use WASD to steer — you can't turn on the spot. ii. Don't hit anything. iii. Try to make the other light-cycle hit something.
- spain 12y agoLooks cool but it froze my browser...
- delinka 12y agoNice work! Hate to be a buzzkill, but you might consider renaming it before Disney C&Ds you.
- mindcrime 12y agoThe funny thing is, Disney probably would do that, despite it being almost criminally stupid. Given that they (supposedly anyway) intend to continue the Tron franchise with more movies, anything that helps create / sustain interest in Tron is a Good Thing for Disney. The smarter thing for them to do would be to contact the author of this, and say "Hey can we hire you?" or something of that nature, instead of sending threats.
- nightpool 12y agoI could see "We love it, but make sure to stick something on it saying its unofficial", just from a trademark dilution perspective. but yeah a C&D/Github DMCA would be incredibly stupid.
- djrconcepts 12y agoFun game, and clean code. Good job!
- Lagged2Death 12y agoI didn't know quite what the headline meant - there was at least one TRON arcade game - as in, a coin-operated game - that had a totally different concept and which is now mostly deservedly forgotten: http://www.mobygames.com/game/arcade/discs-of-tron http://www.mobygames.com/game/arcade/discs-of-tron There was also a TRON arcade game that was a mismash of mini-games, one of which was the light-cycles: http://www.arcade-museum.com/game_detail.php?game_id=10204 http://www.arcade-museum.com/game_detail.php?game_id=10204 I see from Google that indeed many, many people refer to this "use moving wall to make the other guy crash" style of game as "TRON" now, but TRON actually just put a brand name on a game genre that had been around: http://en.wikipedia.org/wiki/Snake_%28video_game%29 http://en.wikipedia.org/wiki/Snake_%28video_game%29 A home game circa 1977, years before TRON: http://www.mobygames.com/game/atari-2600/surround http://www.mobygames.com/game/atari-2600/surround "Snake" to TRON could actually be one of the earliest, if not the earliest, example of a big-budget studio movie adapting a video game concept. Doing so surprisingly directly. Now, of course, half the movies that come out of Hollywood seem to have action bits that are vaguely video-game inspired.
- kreldjarn 12y agoThanks for the historical input! I actually thought Snake and TRON were two distinct games with Snake being a 'player against environment'-game and TRON being 'player against an NPC'-game.
- sunspeck 12y agoThe TRON/Lightcycle genre is at its very best as a PvP(xN) game. Haven't logged in for years, but there used to be dozens of very active servers running Armagetron Advanced, and it looks like it's still going: http://armagetronad.org/index.php http://armagetronad.org/index.php A very fun, fast paced, social, arcade-like gaming environment for someone not invested enough in gaming to delve into the likes of WoW or similar.
- endgame 12y agoThey had a tournament of this at PAX AUS this year. It's not dead.
- connie_lingus 12y agoan impressive technical achievement, and kudos for the music.
- kolev 12y agoKills Firefox Developer Edition on MacBook Air. I still can see the demo, but the entire browser becomes unresponsive and the only option is to force-close it.
- Gracana 12y agoUses all the CPU my single firefox thread can take, on both my home computer and work computer. I couldn't figure out what was wrong at first because it rendered beautifully and would respond enough to eventually start a(n unplayable) game after I mashed 'x' a bunch. It was only once I tried to close the tab that I realized it was being incredibly unresponsive.
- kreldjarn 12y agoTo be fair, it's incredibly CPU-heavy. It uses an iterative approach to calculate the forces exerted on the grid, so for each frame it calculates the force exerted on each node a set number of times. (See http://en.wikipedia.org/wiki/Verlet_integration http://en.wikipedia.org/wiki/Verlet_integration) However, this shouldn't be so heavy that the Firefox JS engine struggles with it...
- Gracana 12y agoYeah the weird thing is that aside from being unresponsive it seems to run fine. The lines move around and the fabric stretches and waves smoothly. That's on an older i3, and a newer 3.GHz i5. I bet it works properly in chrome. I like Firefox but I always seem to have performance issues with it.
- smrtinsert 12y agospectacular.
- smrtinsert 12y agoThis is some of the cleanest code I've ever seen. What ide/editor do you use and plugins etc?
- kreldjarn 12y agoWow, thanks! I just used Sublime Text 2 (which I admittedly haven't bought so the prompt to buy it pops up every now and then when I save, gulp!). I have a ruler set at 80 chars and try not to surpass it. Also, I have a JSHint plugin installed on Sublime which scans the document every time I save it and checks for missing semicolons, implicitly declared variables, etc.
- maninalift 12y agoyaaaaaaaaaaaaaaaaaarg awesome!
- pimlottc 12y agoVery neat! One minor nit - I didn't know which one of the line was me and died on my very first move...
- thomasfl 12y agoHold it! This is to fast.
- chrisbennet 12y agoImpressive! Is there some way I download/buy the music?