20 ms·
1D Pac-Man
- Dwedit 3y agoTook me a while to realize that it treats a (potentially repeating) key press as the condition to turn around, which badly messes with you if you assume the game has direct control.
- saint11 3y agoIt's really cool how they managed to make an interesting mechanic with such a big limitation
- darajava 3y agoSo much fun! And well implemented. What did you use to build it?
- philomath_mn 3y agoI am guessing it is a demo for this lib: https://github.com/abagames/crisp-game-lib https://github.com/abagames/crisp-game-lib
- msephton 3y agoNot really a demo but one of the games he (Kenta Cho) has created using his own library. Imagine it as his yoga or meditation practice. The outlet for his creativity. The Crisp Gane Lib framework allows him to implement game ideas extremely quickly with little friction. Gameplay first!
- noduerme 3y agoLooks like a custom-built game library they designed atop Pixijs https://abagames.github.io/joys-of-small-game-development-en/tools/for_browser.html https://abagames.github.io/joys-of-small-game-development-en... [edit] It seems that Pixi is one rendering method, and the graphics themselves are abstracted via a "terminal" and "view" class, so the engine focuses on positioning art rather than handling sprite draws directly. It's a nice set of opinionated choices. In particular, implementing collisions for 2D sprites. I built a game engine like that with particles and collisions (and particle collisions!) in AS3 on top of Starling at one point... sadly, I can't make games with it anymore.
- roughly 3y agoThat's more fun than I expected it to be! I like all the little subtle choices - how the ghost respawns, the speed of the ghost vs pac-man, the time it takes for the ghost to flash. It's simple, but I could feel myself learning the timing as I played and working through the strategy, such as it was.
- runnr_az 3y agoClever!
- sbisson 3y agoSomeone has read the impossible game sections of Iain Banks’ Walking On Glass…
- jerf 3y agoShould be named ·--· ·- -·- ··- ·--· ·- -·- ··- . ("Paku paku" in morse, though I changed the characters to be more obviously plausibly one dimensional themselves so your favorite converter may not work.)
- OakNinja 3y agoAmazing game! Is it possible to get a higher score than 29?
- jebarker 3y agoYep, I got 30 EDIT: 450 :)
- GauntletWizard 3y agoI got 533; There's a bonus multiplier that builds the more times you eat the ghost (I think?)
- jncfhnb 3y agoPretty sure it’s based on rows cleared not ghost eats
- skrebbel 3y agoYes
- bagels 3y agoYes, trivially.
- jagged-chisel 3y ago701
- eastbound 3y agoYes, it does integer-overflow. I mean on the d axis, but on the points axis.
- bru 3y ago816.
- aidos 3y ago1274, so yes.
- bagels 3y agoControls would be better if left arrow went left, and right arrow went right. As is, they both toggle, which can lead to wrong inputs when trying to stall (left/right in succession)
- hinkley 3y agoI was trying to figure out why I despise the controls. I think you are right. The first time I hit left it did something, the second time it ignored me.
- throitallaway 3y agoAs a button masher (go left, go left!) this is infuriating.
- FpUser 3y agoSame here
- stavros 3y agoI tried to find the source so I could change this, but it doesn't seem to be in the samples dir, at least not by that name.
- fabiensanglard 3y agoYup, that was frustrating!
- pesfandiar 3y agoLooks like the creator is following a one-button game design philosophy. https://dev.to/abagames/how-to-realize-various-actions-in-a-one-button-game-fak https://dev.to/abagames/how-to-realize-various-actions-in-a-... Source: https://github.com/abagames/crisp-game-lib/blob/master/src/input.ts https://github.com/abagames/crisp-game-lib/blob/master/src/i...
- jader201 3y agoThat may make sense for some games, but for a game that has two directions, it makes less sense. Probably better to completely disable the arrow keys -- or better, limit it to the spacebar -- to reinforce single-button design. Or, just intuitively support left & right.
- BD103 3y agoAnother interesting thing by the same person that got pretty popular on HN: The Joys of Small Game Development https://news.ycombinator.com/item?id=37799387 https://news.ycombinator.com/item?id=37799387
- prhn 3y agoWow, that's fun. I wish I could articulate why the music and dying sound effect are both so great. The gameplay has a great rhythmic feeling to it. It's also really tense. I scream every time that damn ghost catches me. The best part is when I die I feel like I made a dumb mistake, and that if I improved just a few things I could be way better. Too many games these days give you the allure of depth and complexity by making things difficult in the wrong ways.
- PaulHoule 3y agoIt's pretty, I'll give it that. I don't feel like it was my mistake when I got killed often, for one thing the ghost is faster than me, sometimes respawns right next to me, ...
- prhn 3y agoIsn't the ghost spawn at least somewhat predictable? I think it picks the farthest edge from where you ate it. Also, it only spawns at the edges, so don't eat the ghost near the edge if you're not sure where it will spawn. Yes the ghost is faster than you, but it can't wrap around the stage like you can.
- brianpan 3y agoYou just need to use your eyes. ;D
- glhaynes 3y agoThe best part is when I die I feel like I made a dumb mistake, and that if I improved just a few things I could be way better. I think I've heard Miyamoto talk about that. When the frustration is all with yourself (rather than with the game itself), and you just know that if you try one more time, that'll be the one where you won't make any dumb mistakes. I think it's the cornerstone of every action game that appeals to me.
- IggleSniggle 3y ago
- samstave 3y agoWONDERFUL. It better be landscape only on mobile. Add a pitfall bomb (what was that game that created a hole for the critters to fall into, and you could walk over them, but the climb out and the hole heals in a short period... ? Let the ghosts to fall in a hole, then you can place more than one ghost on the path, but you need as many "hole bombs" as there are ghosts on screen+1 (or N)... to not make it rage quit-worthy.
- tremarley 3y agoMost people use their phone in portrait mode. If it were Landscape Only, it would create unnecessary friction.
- jerf 3y ago"what was that game that created a hole for the critters to fall into, and you could walk over them, but the climb out and the hole heals in a short period..." Lode Runner: https://www.youtube.com/watch?v=PWwyhymcDxI https://www.youtube.com/watch?v=PWwyhymcDxI
- evolve2k 3y agoYeah that was fun. Reminds me of 1D Doom that was shared here a while back.
- thomastjeffery 3y agoIt was hard until I realized that the ghost doesn't change when you cross the edge of the screen. After that, it turned into an uninteresting stalemate. The controls really need to be edited, though. Left should be exclusively left, and right exclusively right. Having them both toggle makes input the primary challenge.
- jncfhnb 3y agoStalemate is a loss. The goal is to get points, not survive X seconds.
- deleted 3y ago[deleted]
- thomastjeffery 3y agoThat's unfortunate, because it adds a second dimension to strategy.
- hnlmorg 3y agoI found the input really intuitive. Personally I preferred it to having invisible zones on the touch screen that react differently
- thomastjeffery 3y agoI used a keyboard, not a touchscreen. I'm not sure if/how that is different.
- hnlmorg 3y agoFair point. I could see how that might be confusing if the arrow keys aren't mapped to what you would expect.
- jiveturkey 3y agofun! for a fleeting moment anyway.
- mongol 3y agoNext Flappy Bird in my opinion
- tremarley 3y agoAgreed
- throw_m239339 3y agoLOL, exactly what I thought...
- zwetarhtet 3y ago[flagged]
- tremarley 3y ago‘1D Pac-Man’ is a great name. It made me click on this link because it made me think “how can Pac-Man be 1D?”
- lanewinfield 3y agoPeople who liked 1D Pac-Man also liked Wolfenstein 1-D https://en.wikipedia.org/wiki/Wolfenstein_1-D https://en.wikipedia.org/wiki/Wolfenstein_1-D
- yreg 3y agoApparently here, but I don't know how to get past the menu. https://archive.org/details/wolfenstein-1-d https://archive.org/details/wolfenstein-1-d
- jncfhnb 3y agoNice game! I managed to 6,600 points Per my experience The optimal strategy is to deprioritize eating the ghost. You can get some nice streaks sometimes eating him but it generally doesn’t help. What you want to do is use the power up to collect the middle dots. The sides you can collect safely on reflexes alone. By about 3000 points it becomes impossible to recover if you don’t pick up the middle and have consumed your power up. Eating the ghost is ok if it happens incidentally. Because you’re trying to use the power up to collect the middle that often means the ghost will be further from the middle than you when you finish a line. So finish a line, then 180 immediately to collect the middle again. The worst case is you end up with your power up ending just as you’re finishing a line and you are on the side. But up until very high point values I think it’s always safe to grab the power up as it tends to be on the sides. Edit: 6800 Might play more if other HNers step up their game :)
- auselen 3y agoCame here to say 520 (;・∀・)
- russellbeattie 3y agoHeh. My first or second game, I just happened to get like 650 points. And then spent the next 20 minutes trying to figure out what the hell I had done. Turns out you can sometimes get into a rhythm where you don't even have to turn for a while and score a lot of points. OP's score is just ludicrous.
- nvy 3y agoIs the upside down A supposed to be a bird's beak?
- NooneAtAll3 3y agoit's a smile
- jncfhnb 3y agoIf you’re on iOS, add the Japanese keyboard and hit the lower left most key, then expand autocorrect to get a big array of such emoticons.
- justinl33 3y agoThis is so fun! Makes me feel like I’m conducting a 1 dimensional random walk. Who knows, maybe this is being used to generate pseudo stock prices or something.
- snshn 3y agoGenius
- b0bb1z3r0 3y ago[dead]
- deleted 3y ago[deleted]
- stephenhandley 3y agoLove this, mechanics and music are great! One suggestion would be to not care what key is pressed, maybe just have any key change direction?
- thraxil 3y agoSee also Line Wobbler by Robin Baumgarten: https://www.youtube.com/watch?v=9dufXuWDjLU https://www.youtube.com/watch?v=9dufXuWDjLU 1D dungeon crawler hardware game.
- KingMob 3y agoI've played it at Wonderville in NYC! It's surprisingly deep for such a minimal experience. https://www.wobblylabs.com/line-wobbler https://www.wobblylabs.com/line-wobbler
- TuringNYC 3y agoPac-Man meet Flatland (https://en.wikipedia.org/wiki/Flatland https://en.wikipedia.org/wiki/Flatland)
- wkjagt 3y agoThis is wonderful. Very nice execution, and super addictive. I kind of want to do a Commodore 64 version now.
- msephton 3y agoIf you do it please consider porting Crisp Game Lib, the framework used to create this game, which will net you hundreds of new C64 games in one go.
- quickthrower2 3y agoCan a C64 efficiently run JS?
- arlasoft 3y agoAbsolutely not. It can do a lot of things but any interpreted language is going to run at a snail's pace, especially not one designed specifically for the C64. Each game really needs to be written in isolation in assembly to work round the limitations, e.g. some might need a sprite multiplexor, some might not.
- arlasoft 3y agohttps://arlagames.itch.io/paku-paku-c64 https://arlagames.itch.io/paku-paku-c64
- mrb 3y agoI have been looking for 1D game ideas to implement on an addressable RGB LED strip. 1D pacman seems perfect, as it's instantly recognizable even with a single-pixel pacman and ghosts, by using the right colors.
- gojomo 3y agoYour comment reminded me… Long ago – early 80s – UHF & cable-syndicated TV station WPIX (NY) offered live broadcast call-in videogames controlled by the caller's voice yelling "pixx!". Here's a peek of some of the forms it'd take: https://www.youtube.com/watch?v=UJN9eM84Rq8 https://www.youtube.com/watch?v=UJN9eM84Rq8 "Behind the scenes, the voice activation was really operators in the control room pushing the buttons." :) The simple control of this 1D PAKU-PAKU game (or others you're considering) could be wholly voice-operated. (A fun trigger word nodding to an old 'Friends' episode might be: "Pivot!") With modern voice-recognition/voice-printing, it might even be possible to have a multiplayer game where even though N players are all yelling the same trigger-word, the recognition disambiguates the speaker to control only their sprite. Or, use a larger vocabulary of control-words for more actions. 'Nibbler' with yelled commands "Up!"/"Down!"/"Left!"/"Right!" might be diabolically frustrating.
- gojomo 3y agoAnother thought: have the 1D RGB strip spin around its long-axis to enable rapid LED cycling to stroboscopically plot the domain in 2D, despite the action & rendering array being "only 1D".
- mrb 3y agoVery cool ! I like the idea of voice controls. Right now I have a 22-foot long LED strip on the fascia of my house. I was thinking of putting a physical button for visitors or random pedestrians to play the games, but voice control would be more fun.
- meta-level 3y agoA colleague of mine made this: https://twitter.com/LarsMichelsen/status/1430218030727024641 https://twitter.com/LarsMichelsen/status/1430218030727024641 And those you probably found already: • https://codeduino.com/projects/games/1d-pong-game/ https://codeduino.com/projects/games/1d-pong-game/ • https://hackaday.io/project/185011-twang-esp32-led-strip-1d-game https://hackaday.io/project/185011-twang-esp32-led-strip-1d-... also this one would be great to have it on an led strip: • https://www.youtube.com/watch?v=3xx7sgNVE-A https://www.youtube.com/watch?v=3xx7sgNVE-A
- veganjay 3y agoLove it! I like seeing Pac-man put into strange scenarios. I made a slightly similar (1.5d?) game for the CHIP-8. Pacman can only go left and right, but the ghosts fall from the sky. https://veganjay.itch.io/falling-ghosts https://veganjay.itch.io/falling-ghosts
- pcwelder 3y agoKudos for building this. Highly rewarding and elegant. Initally I thought 200 was good. Ended up on 11k after half an hour or so.
- readyplayernull 3y agoGood game. I also played 3D Pacman in DOS in an IBM PS1, this was years before Wolfenstein and Doom. Today we have come full circle! https://m.youtube.com/watch?v=ajWIYW-wk6U https://m.youtube.com/watch?v=ajWIYW-wk6U
- havkom 3y agoBrilliant game!
- j2kun 3y agoNice. Now do it on a Mobius band: there's a "ceiling" and "floor", and when you go out the left, you end up on the ceiling on the right, and vice versa. Two ghosts chasing you, one on the ceiling and one on the floor.
- qkhhly 3y agothis is surprisingly engaging!
- rdoherty 3y agoThis reminds me of the book Flatland which is about what a 2 dimensional universe would be like and the experience of a 3 dimensional entity visiting it. Great read! https://en.wikipedia.org/wiki/Flatland https://en.wikipedia.org/wiki/Flatland
- neilv 3y agoI wonder whether anyone has done a Pac-Man variant inspired by Flatland. Say, a powerup temporarily turns the screen to 3D, with the ghosts only perceiving the 2D slice. Pac-Man might be a cone that can 'shrink' to squeeze around ghosts, can jump through 3rd dimension to 'teleport', can move back and forth between different 'levels' floors in a building, etc.
- rdoherty 3y agoThat would be really cool! Kinda like Super Paper Mario.
- vikingerik 3y agoIt's not exactly Flatland or everything you describe, but there is an old arcade game named Pac-Mania where Pac can jump over the ghosts in 3D but they only move in 2D.
- xtracto 3y agoCarl sagan has a good video on that : https://m.youtube.com/watch?v=UnURElCzGc0 https://m.youtube.com/watch?v=UnURElCzGc0
- brcmthrowaway 3y agoIs PacMan also in the public domain?
- eachro 3y agoThat was surprisingly fun. Nice job!
- PeterHolzwarth 3y agohttps://en.wikipedia.org/wiki/ABA_Games https://en.wikipedia.org/wiki/ABA_Games Oh, I had completely forgotten about aba games (the work of Kenta Cho) for some years until seeing this HN post! He has been making little mini-games and posting them on his site (both browser-based and windows-based) for more than 20 years now. Here's his games (I always liked Torus Trooper): https://www.asahi-net.or.jp/~cs8k-cyu/index.html https://www.asahi-net.or.jp/~cs8k-cyu/index.html
- IggleSniggle 3y agoHoly cow. Tumiki Fighters was one of my favorite games a long long time ago. I remember there "only" being 3 or 5 games though! Even then I thought this was brilliant work
- gchaincl 3y agoIt seems that perfection is attained, not when there is nothing more to add, but when there is nothing more to take away.
- hoosieree 3y agoTired of 0d pacman? Try -1d pacman!
- nonfungibleuser 3y agois there a leaderboard? I just got 69,420 points
- menzoic 3y agoThought it was a joke at first, then I realized it’s viable
- deadbabe 3y agoWould it still be 1D if there was a spot on the wall where you could step through and rotate to a tunnel on another 1D plane?
- mrb 3y agoHere, I found it fun to write a small bot to play automatically. Just paste this JS code in the dev console. It reached 9000 points on my first attempt to let it run. Feel free to tweak the code to make pac-man survive longer :-) function bot() { /* direction of the enemy: to our right (1) or to our left (-1) */ dir = (enemy.x > player.x) ? 1 : -1; /* if pac-man... */ if ( /* ...has no powerup or powerup expires in less than 10 "ticks" */ powerTicks < 10 && /* ...is headed toward enemy */ player.vx == dir && /* ...is too close to enemy */ abs(player.x - enemy.x) < 25 && /* and if enemy's state is not "eyes flying back" */ enemy.eyeVx == 0 ) { // "ArrowUp" or any arrow key reverses the direction of pac-man document.dispatchEvent(new KeyboardEvent('keydown', {code: 'ArrowUp'})); document.dispatchEvent(new KeyboardEvent('keyup', {code: 'ArrowUp'})); } } setInterval(bot, 100); The strategy is ultra simple. Every 100 ms it evaluates the situation and chooses to move away from the enemy (ghost) if it's too close to it, and has no powerup (or if the powerup is expiring very soon). The corner cases where pac-man dies is the game difficulty progressively increases (the ghost becomes faster) until you eat it, so sometimes some pellets are left in the middle and pac-man doesn't have enough time to eat them until the ghost reaches it. The ghost will progressively get faster and faster and death is guaranteed. You could improve the code by tempting the ghost to get close to one edge, then cross over to the other edge and quickly eat the middle pellets. Also, as soon as new pellets are added, one should prioritize eating the middle pellets. Also, one could add code to detect the powerup pellets, and chose to NOT move away from the ghost if it calculates it can eat the powerup pellet before the ghost reaches pac-man.
- irjustin 3y agoThis is super awesome! The trouble I ran into was after eating the ghost, the spawn point of the new ghost was too close to my current position and simply sped over me. With this and all the considerations you've noted above, I'd probably throw an ML solution at it - imagine it takes less coding time.
- pushedx 3y agoThe script took, at most, 5 hours to write (inclduing the time for this poster to play the game, understand the game, reverse engineer the game, and implement a bot). What type of "ML solution" to the same problem would take less than 5 hours?
- indigodaddy 3y agoThis is rather brilliant, congratulations
- quickthrower2 3y agoBrutally small amount of time as ghosts.
- deleted 3y ago[deleted]
- pants2 3y agoIn college I made a 1D space invaders game - but it ran on an Arduino (with one physical 'shoot' button) and was played on an 8foot RGB LED light strip. I had it mounted on a wall and I would catch students and professors playing it from time to time during the quarter. It was surprisingly fun. This pac man game would be awesome to play on an LED strip as well!
- chupapimunyenyo 3y agoIt's still 2D
- amayne 3y agoIf Pac-Man and the ghost positions are on the x axis, what is the y axis used for?
- Chaosvex 3y agoIt's a 2D game with one axis of movement. Technically correct and all that.
- emehrkay 3y agoI was expecting the same game, but from paceman's pov. so you'd see a small line for the dot and a bigger line behind it for the ghost. After thinking about it, I think the game would function the exact same as the lined one, just a drastically different perspective.
- cush 3y agoThis is way more fun than it should be.
- tempestn 3y agoSurprisingly fun.
- ugh123 3y agoLOVE IT! Could even be 'multi player' with someone else controlling the ghosts
- paulnpace 3y agoBetter than the Atari 2600 version of Pac-Man.
- JetSetIlly 3y agoSpeaking of which, this 1D version would translate very well to the 2600
- dukeofdoom 3y agoDo 1D Chess next
- jmartrican 3y agoThis game is so much fun. Amazing.
- msephton 3y agoThe developer of this game is Kenta Cho. He's been making games like this for 20+ years. In 2021 he used his Crisp Game Lib to create 111 one button games! That's one every ~3 days. For me, he's the greatest active game designer in the world today.
- turblety 3y agoReally interesting: https://github.com/abagames/111-one-button-games-in-2021?tab=readme-ov-file https://github.com/abagames/111-one-button-games-in-2021?tab...
- annor 3y agoGreat music as well! you sold his craft for me!
- msephton 3y agoAnd the music in all his Crisp Game Lib games is randomly generated!
- sakesun 3y agoRefreshingly simple, yet incredibly fun and engaging. Truly genius. Building this game could be a very good programming excercise as well.
- megalottachoc 3y agoAnd just like that, I can kiss my productivity goodbye for the rest of the day. Sent from my cheap-arse $99 Android phone.
- jonnycomputer 3y agoAlmost completely broken on Firefox 121/Mac OS. I was wondering what the fuss was about because it was just a mess. But threw it up on chrome, and looks completely different... Also there is a weird latency thing if you hold the direction key down and then switch to the other direction.
- Liquid_Fire 3y agoWorks perfectly for me on Firefox 121 on Mac OS (although maybe it was fixed after you commented?).
- jonnycomputer 3y agoNo, I don't think so. Here is a screenshot of what it looks like to me: https://drive.google.com/file/d/1C35Wc8toNQ9RN6ylOZ_bK6IRUjbdMqZk/view?usp=sharing https://drive.google.com/file/d/1C35Wc8toNQ9RN6ylOZ_bK6IRUjb... However, when I loaded it in a new firefox profile it worked fine. A little confused because I tried running it with dev tools loaded and cache disabled and I still had the problem, but I have to think that the problem has something to do with adblock/privacy badger and some stored data. But maybe disable cache doesn't apply to the local storage API.
- deleted 3y ago[deleted]
- dbg31415 3y agoBugs… Ghost spawns to never be on a player. It’s not fair. The big dots should give X seconds of ghost eating ability, not just make the existing ghosts edible. That way new ghosts that spawn instantly after you eat a big dot wouldn’t hurt you.
- justinl33 3y agoI find playing this super ironic having just read this HN post about A* pathfinding tricks in video games https://news.ycombinator.com/item?id=38833658 https://news.ycombinator.com/item?id=38833658
- pkdpic 3y agoAbsolutely fantastic, please make a version for Playdate or gameboy DMG and put it on itch.io for $10-$100 so I can give you money for this case study in gameplay perfection. It's so beautiful and inspiring that one lone coder can still make something with so much joy and playability in an era of multimillion dollar games that take the work of hundreds of people for years on end. This is a tribute to humanity itself, well done.
- jmclnx 3y agoThat is so cool and fun!
- gooseyard 3y agoI haven't been this angry since QWOP, gold star
- namuol 3y agoThe game's designer/developer, Kenta Cho[1], has made countless experimental games for decades. I'd nearly forgotten about his work until I saw this post, and I'm very happy to see that he hasn't stopped with experimental game design after all these years, and I have a huge backlog of games to play[2]. [1] https://en.wikipedia.org/wiki/ABA_Games https://en.wikipedia.org/wiki/ABA_Games [2] http://www.asahi-net.or.jp/~cs8k-cyu/index.html http://www.asahi-net.or.jp/~cs8k-cyu/index.html
- smusamashah 3y agoThese are amazing. I use to play a space shooter game long time ago where you capture the incoming bullets by holding click and throw them back at correct angle. It was single button and mouse movement. Looking at these games, it feels like that one must have been by the same guy.
- quickthrower2 3y agoNow someone do hyperbolic pacman!
- dusted 3y agonot as "1D" as I'd imagined, but much more fun. I'm still toying with the idea of making a game that "renders" a 1D projection of a 2D space. (yes, I know, the line would be infinitely thin, I'll compromise on that by stretching it vertically so it's visible)
- anilakar 3y agoHangs latest Firefox developer edition, could not get past the loading(?) screen.
- KingOfCoders 3y agoWhat a genius game!
- KingOfCoders 3y agoSomehow this reminds me of the Kung Fu Master arcade, which in this sense wasx also 1D.
- nivertech 3y agoArtifcial constraints/trade-offs creating new unexpected properties. Examples: - up to 21 million Bitcoins limit - Artificial scarcity - original 140 character limit for tweets, later expanded to 280, then removed for paid users - up to 500 users per group in WeChat groupchat - ip· o· gram. ˈlipəˌgram, ˈlī- : a writing composed of words not having a certain letter (as the Odyssey of Tryphiodorus which had no alpha in the first book, no beta in the second, and so on) - wireframes vs realistic prototypes (low-fidelity vs high-fildelity) - monochrome UI for smartphones to remove distractions - feature phones vs smartphones - 1D Pac-Man - etc.
- Snawoot 3y agoNo waka-waka - no fun.
- sgfgross 3y agoA leaderboard would make it more addictive.
- block_dagger 3y agoThat’s 2D
- MrYellowP 3y agoThe noise is a serious dealbreaker. If it wasn't for that horrible noise, I'd still be playing. which is weird, but I really like the game.
- kqr 3y agoI wonder if this would be more intuitive if the playing field was a circular arc rather than a wrapping line.
- DaveSapien 3y agoThis was way more fun than it should be. Wonderful! Reminds me of Linelight on Steam and my game Kanso, both have 1D game mechanics (but with 2D visuals).
- SnoweKari 3y agomrb's venture into the world of 1D Pac-Man with an auto-playing bot is a neat twist on a classic, complete with shared JavaScript code for all to tweak. Then AnotherGoodName steps in, tweaking the bot to dodge those pesky edge-case issues, skyrocketing the score into six digits. mrb's response to this upgrade? A cool 'Of course! Nice.' - a nod to the joys of collaborative coding and the magic that happens when minds meld over games and code.
- EugeneTays 3y agomrb's journey into automating 1D Pac-Man turns a nostalgic game into a coder's playground, sharing their JavaScript bot that impressively scored 9,000 points on its maiden run. Enter AnotherGoodName, who amps up the game by fine-tuning the bot's edge strategy, blasting the score through the roof. mrb's reaction to this ingenious tweak? A simple yet appreciative 'Of course! Nice.', showcasing the spirit of collaboration and innovation in the programming community.
- Jesstannon 3y agoDiving into mrb's 1D Pac-Man bot adventure is like stepping into a coder's dream, complete with a shareable JavaScript code that's ripe for tinkering. Along comes AnotherGoodName, who cleverly tweaks the code, turning a good run into an epic high-scoring saga by solving those tricky edge cases. mrb's reaction, a simple 'Of course! Nice.', captures the essence of community-driven coding - where one good idea sparks another, and everyone's game levels up!
- AIboxed 3y agoThe evolution of mrb's Pac-Man bot through community input, especially AnotherGoodName's contribution, is a perfect example of the power of collective brainstorming in tech. It's like watching a good idea become great through teamwork!
- SnoweKari 3y agoI'm loving this thread about the 1D Pac-Man bot. mrb starts with a great concept and then AnotherGoodName comes in and boosts its performance. It's like a mini hackathon in here!
- MartnMay 3y ago[dead]
- asmmoto 3y agoCan you write the 3d version of it?
- aziaziazi 3y agoI get a free ~50% slowdown (constant and consistant lag) if playing with low power mode activated (iOS/safari).
- ICHIROKASAHARA 3y agosびゃぶbs
- jader201 3y agoI don’t know if anyone else noticed, and I’m not sure whether this is intentional, or maybe the dev found it too hard to do well in browser-based games, but it seems like most of his games don’t sync the sound with actions happening in the game. For example, in Pac Man, the dots chomping sound seems like it’s just a repeating sound that is toggled on and off, vs. actually syncing with the timing of chomping the dots. Also, if you check out his other web-based games [1], you’ll notice the same thing — the actions (by tapping) cause a sound that is just repeated at a pre-set rhythm that doesn’t sync with when you tap. It’s subtle, but can actually have an adverse affect on the performance of the game. I often use sound feedback as a way of timing, and when this doesn’t match what I’m doing, it can definitely throw me off my rhythm. The Timber Test game [2] is a perfect example of this, particularly on the later levels where you need to cut the log into equal fractions, but the sound timing is always the same, making beeps in unequal intervals. [1] https://www.asahi-net.or.jp/~cs8k-cyu/browser.html https://www.asahi-net.or.jp/~cs8k-cyu/browser.html [2] https://abagames.github.io/crisp-game-lib-11-games/?timbertest https://abagames.github.io/crisp-game-lib-11-games/?timberte...
- Darth_Guappi 3y agoThis has NO business being this fun, you sunnofabitch!
- aungko 3y ago30000
- dorus42 3y agoMy 12 year old son remade this game today in Scratch using Lego: https://scratch.mit.edu/projects/946299317/ https://scratch.mit.edu/projects/946299317/
- dorus42 3y agoMy 12 year old son spend today making this game in Scratch, creating the graphics with Lego: https://scratch.mit.edu/projects/946299317/ https://scratch.mit.edu/projects/946299317/
- fennecfoxy 3y agoBruh, the ghost moves faster than you do! But this is a pretty cool idea, difficulty level spikes after the first screen though, especially if you waste the power pellet, then because the ghost moves as fast or faster it becomes impossible to goad it to either side enough that you can get the remaining pellets.
- dbg31415 3y agoFound another small bug... When you eat a ghost, the dots under the ghost don't get eaten. So you skip over 1-2 dots at higher levels when eating a ghost. Then you have to go back to snag them.
- tritiy 3y agoIt does not seem to work on my side. I get a blank canvas with 0 on top left and HI 0 on the top right. Everything else is blank. In developer tools I've noticed that one of the GET on the main.js script is returning 404 so maybe that is the problem?
- CritterM72800 3y agoSame here. It seems to be broken at the moment.
- developer65537 3y agoI reached over 110000 points by below code. We may can reach 50000 by average. Basic strategy is that player turns lately as possible so that enemy can't catch with a distance in a bit. However, this strategy has extremely weak point, that is if yellow feed remains in the center of screen, player can't reach forever. I'm not so interested in this game already. But I think this can improve to close perfect, which player can infinitely escape from enemy, by considering "Offense" aspect, like player's invincible mode and enemy's escape mode. function bot() { dir = enemy.x > player.x ? 1 : -1; const Xp = player.x; const Xe = enemy.x; const pvx = player.vx; const escaping = (Xp < Xe && pvx < 0) || (Xp > Xe && pvx > 0); const escD = Xp < Xe ? Xp : 100 - Xp; const Vp = player.vx * 0.5 * difficulty; const evx = enemy.eyeVx !== 0 ? enemy.eyeVx : (player.x > enemy.x ? 1 : -1) * (powerTicks > 0 ? -1 : 1); const Ve = evx * (powerTicks > 0 ? 0.25 : enemy.eyeVx !== 0 ? 0.75 : 0.55) * difficulty; const VRatio = abs(Ve / Vp) === 0.5 ? 1.1 : abs(Ve / Vp); console.log(VRatio); const minD = (VRatio - 1) * escD + 3 * (VRatio + 1) + difficulty; const D = abs(Xp - Xe); if (!escaping && D <= minD) { document.dispatchEvent(new KeyboardEvent("keydown", { code: "ArrowUp" })); document.dispatchEvent(new KeyboardEvent("keyup", { code: "ArrowUp" })); } } setInterval(bot, 10);
- developer65537 3y agoOh my gosh. How you all paste codes normally? lol
- sargstuff 3y agoIMHO, needs an appropriate stack of single row of microfluidics display[0][1] instead of single crt row. An appreciation of 'Alice in Wonderland' quantum decision making might help too. ---- [0] https://www.youtube.com/watch?v=ncfZWqPm7-4 https://www.youtube.com/watch?v=ncfZWqPm7-4 [1] https://pubs.rsc.org/en/content/articlelanding/2019/lc/c9lc00160c https://pubs.rsc.org/en/content/articlelanding/2019/lc/c9lc0...