I Coded Pacman but it's Procedurally Generated

Ғылым және технология

In this video I program a clone of Pacman and use it to create procedurally generated maps!
Pathfinding Website: www.redblobgames.com/pathfind...
LINKS
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Support the channel: ko-fi.com/codenoodles
Itch.io: codenoodles.itch.io/
GitHub: github.com/OfficialCodeNoodles
█▀ █ █ █▄▄ █▀ █▀▀ █▀█ █ █▄▄ █▀▀
▄█ █▄█ █▄█ ▄█ █▄▄ █▀▄ █ █▄█ ██▄

Пікірлер: 332

  • @CodeNoodles
    @CodeNoodles Жыл бұрын

    What do you guys think of my avatar?

  • @OrigamiYoshi

    @OrigamiYoshi

    Жыл бұрын

    I think its cool but maybe if it was less realistic it would be more casual.

  • @juanma9868

    @juanma9868

    Жыл бұрын

    You are basically a vtuber now(?

  • @darkmattercouch6754

    @darkmattercouch6754

    Жыл бұрын

    honestly, no

  • @Xx_babanne_avcisi27_xX

    @Xx_babanne_avcisi27_xX

    Жыл бұрын

    Very cool

  • @aarnijarvelainen8499

    @aarnijarvelainen8499

    Жыл бұрын

    7:42

  • @Neurotrace
    @Neurotrace Жыл бұрын

    Nice! It'd be cool to have a mode where after you eat all of the dots, it generates a new map and you start playing it immediately

  • @noyz-anything

    @noyz-anything

    Жыл бұрын

    it would also be cool to have a CEDX mode where, if you eat all the dots on the left half of the maze, an item appears on the right half, and when you eat that item the left half regenerates into a new shape - and vice versa, of course.

  • @caldercockatoo2234

    @caldercockatoo2234

    Жыл бұрын

    Another thing that would be cool is if each map is infinite, and more ghosts can spawn in based on your distance from the start. Obviously the goal would change from getting all the dots to just surviving as long as possible.

  • @gregritferdjr

    @gregritferdjr

    Жыл бұрын

    It would also also also be cool if there were bigger dots that once eaten it would make the ghosts fly away from you and flash white and blue and while they’re in that state you can eat them too

  • @caldercockatoo2234

    @caldercockatoo2234

    Жыл бұрын

    @@gregritferdjr They already added that.

  • @thebananaspeedruns9275

    @thebananaspeedruns9275

    Жыл бұрын

    @@caldercockatoo2234 you mean like in PAC-Man 256?

  • @DimonKILL
    @DimonKILL Жыл бұрын

    About accuracy of Pac-Man's stuff: *ABOUT GHOSTS* Names: Red - Blinky (Shadow, Oikake, Chaser) Pink - Pinky (Speedy, Machibuse, Ambusher) Cyan/Light blue - Inky (Bashful, Kimagure, Fickle) Orange - Clyde (Pokey, Otoboke, Feigned Ignorance) Target AI: Ghosts calculate the position to the target and take the closest one to go. If the targets have the same distance, they go in this order: Up, Left, Down, Right. The ghosts cannot turn around 180 degrees (it has some exceptions). *SCATTER MODE* The corners for each ghost is ordered like this: Blinky - Top right Pinky - Top left Inky - Bottom right Clyde - Bottom left Blinky rotates around its corner clockwise-only and Pinky turns around counter-clockwise only. Inky and Clyde can turn around in either direction depending on from what part of the maze they went from. *CHASE MODE* Blinky's AI is right, it puts a tile above Pac-Man. Pinky's AI puts its target tile ahead of Pac-Man (like Blinky), but it gets moved 4 spaces ahead of Pac-Man's direction, thus, Pinky's attacking Pac-Man from the front, while Blinky's chasing Pac-Man's tail. Inky's AI is the most complex of them all, cuz it's target tile is connected to Blinky's position and a little bit of Pinky's mix. So, the funny ghost target tile is like Pinky's, but it's 2 tiles ahead, and the target tile inverts Blinky's position from that tile, and this is where the target tile of Inky's is. Clyde has the name off, but the target tile of his is the same as Blinky's unless if it's 8 tiles away of Pac-Man. If Clyde is within the range, it's target tile is placed the same as if it was in Scatter Mode. *FRIGHTENED MODE* When entering or exiting Frightened Mode, the ghosts turn around 180 and turn blue. Their AI is picking random direction (see Target AI about turnaround rule). When Pac-Man touches one of them, they give the points in ascending order (200, 400, 800, 1600), and turn into the eyes, then they go inside the Ghost House on high speed (located in the middle of the maze and blocked by the pink door). While they are in the "Eaten" state, they do not turn blue when entering Frightened Mode. *SOME OTHER INFO* There are two funky parts in the maze (i'll call them areas) that are located to force ghosts to not turn up and go straight to the path. These areas are located above the Ghost House and the Pac-Man's starting area.

  • @DimonKILL

    @DimonKILL

    Жыл бұрын

    Forgot to mention that when ghosts switch modes between Chase and Scatter, they turn around 180 degrees.

  • @danielgbgibson
    @danielgbgibson Жыл бұрын

    don't each of the ghosts follow slightly different AI's?

  • @Spiker985Studios

    @Spiker985Studios

    Жыл бұрын

    And they are rather well documented as well

  • @bobobo6rel

    @bobobo6rel

    Жыл бұрын

    all the ghosts in the original pac man have a different specific ai follow but since cn doesnt want it to be too much to be the original he made it his own

  • @YoloYester94

    @YoloYester94

    11 ай бұрын

    @@bobobo6relyou can still make it your own without it being painfully basic.

  • @midnght9914

    @midnght9914

    10 ай бұрын

    kzread.info/dash/bejne/k6iVqdGtgZrPops.html

  • @psigreen3864

    @psigreen3864

    10 ай бұрын

    ​@@bobobo6rel His pathing should still work with the classic AI. all he'd have to do is change the pathing target for each ghost. and I don't figure it would take a lot of effort

  • @hyperon_ion9423
    @hyperon_ion9423 Жыл бұрын

    Really cool. But, I have a suggestion: there still feels like there is a lot of wasted space with the generation algorithm. You might be able to better use the space by using a different approach. Currently, your algorithm seems to kind of just make paths, and connect them up where they just so happen to connect. I think you could get way better results if you use a method that _focuses_ on how the paths connects and has rules on how those connections occur. I highly recommend taking a look at the “Wave Function Collapse” algorithm, as it’s one of the most powerful and used methods for randomly-generated environments.

  • @PhantomOfficial07

    @PhantomOfficial07

    Жыл бұрын

    Yeah I wish the ghosts didn't all just chase pacman too, in the game only the red one chases you, the others have their own rules on how they approach you

  • @renakunisaki

    @renakunisaki

    Жыл бұрын

    I would have at least mirrored the map and maybe ensured there's always a path that goes around its perimeter.

  • @blueyandicy

    @blueyandicy

    5 ай бұрын

    ​@@PhantomOfficial07i KNEW something was wrong with the ghost AI

  • @unrellated
    @unrellated Жыл бұрын

    I'd have simplified the ghost sprites by drawing just their "sheet" parts without the eyes, and rendering the eyes on top of that. After all, the disembodied eyes are already used for after a ghost is eaten and runs back to the spawn room. Plus, the eyes are the only part of the sprite that changes depending on which direction the ghost is facing, so the sheet would just have the animation of the bottom part doing that weird alternating thing. Heck, you could even have all the ghosts share a single sheet texture of pure white that the renderer recolors based on the ghost's identity.

  • @psigreen3864

    @psigreen3864

    10 ай бұрын

    and even better: each grid uses it's seed to randomly determine each ghost's color. to make them distinct you'll like have to make one ghost color random and then base the other colors off of that

  • @name-nam
    @name-nam Жыл бұрын

    there is a video about pacman ghosts that tells you the different ai for each of them. it turns out that all of the ghosts have different pathfinding algorithms that makes it better at surrounding pacman

  • @lailoutherand

    @lailoutherand

    Жыл бұрын

    Retro game mechanics explained :)

  • @fernandossmm
    @fernandossmm Жыл бұрын

    Also, regarding different ghost behaviour: there's a great video by Retro Game Mechanics Explained that shows how the ghost AI's aren't _that_ complex. Not easy, mind you, it would still be work. But not too difficult either, specially give you already implemented a pathfinding algorithm the only think you needed to do was give them different objectives.

  • @frankdieter9907
    @frankdieter9907 Жыл бұрын

    I love how your avatar has cinammon and sugar instead of some sauce, because I like my noodles with some sugar and cinammon as well sometimes, that's a very nice and unique way to represent yourself as noodles

  • @nathanfisher6925
    @nathanfisher6925 Жыл бұрын

    improvement to procedural map generation: - start with the ghost house where you want it, surrounded by empties 1 randomly select a square with 0 or 1 open sides - randomly select an unconnected side to connect - if connecting this side would create four squares all connected together in a square arrangement, (a "quad") go to 1 - remove the wall - if any square has less than 2 open sides, go to 1 (it's possible to deadlock by creating a map with squares needing more opens that will have to lead to a quad, if that is encountered, just reset and start over) this will generate a board with no quads and all track accessible, but there are probably isolated tracks, and lots of track without forks. also the ghost house will be on its own isolated track. - use your pathing method to identify and label the squares on separate tracks 2 randomly select a square that has an adjacent square that's on a different track - if removing the separating wall would create a quad, go to 2 - remove the wall - combine the tracks - if there are still multiple tracks, go to 2 now all squares are conected on a single track, but there are probably several dead ends and many long runs of unbranching track. if that doesn't bother you, you're done. to open things up, continue: - count all remaining walls 3 randomly select a square with a wall - randomly select a wall to remove - if removing the wall would create a quad, go to 3 - remove the wall - decrement wall count - compare the wall count with some function to adjust "open-ness" of the map. if not open enough yet, go to 3 there may still be areas of the map with only one outlet, but it should be much more open I can't think of a quick way to test for areas of track with no outlets. it's also unnecessary to vary the location of the power pellets or the starting point since there is always track there.

  • @Roshank231
    @Roshank231 Жыл бұрын

    I love content like this, it’s fascinating but also simple to understand. Hope you Keep em coming!

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    Thanks!

  • @ryanzollinger
    @ryanzollinger Жыл бұрын

    Man, despite the fact that this is only your 3rd video, this is great stuff. Keep it up, I enjoy seeng more of what you do! :)

  • @theenchantedgoldenapplekin7979
    @theenchantedgoldenapplekin7979 Жыл бұрын

    Pac-man is my favorite arcade game next to dig dug. I like to view this as the "Pac-man 2" we never got. Also I like your avatar.

  • @KingOfTresune

    @KingOfTresune

    Жыл бұрын

    We don’t talk about Ms pack man

  • @theenchantedgoldenapplekin7979

    @theenchantedgoldenapplekin7979

    Жыл бұрын

    @@KingOfTresune oh yeah I forgot about that

  • @ppoly
    @ppoly Жыл бұрын

    every copy of pac-man is personalized

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    Lol

  • @MichaelHumphrey
    @MichaelHumphrey Жыл бұрын

    Fun fact: you inspired me to make my own multiplayer snakes game! Keep up the awesome videos, I love 'em!

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    That's awesome!

  • @purpleh_123

    @purpleh_123

    Жыл бұрын

    it would still be cool to see a multi-player snake game that functions differently from the other games tho

  • @beamerproxy6494
    @beamerproxy6494 Жыл бұрын

    This is a neat project! Can't wait to see what else you'll do!

  • @kurb0
    @kurb0 Жыл бұрын

    Really great video, plus the explanations you gave were very clear and easy to follow

  • @divine203
    @divine203 Жыл бұрын

    Love the code bullet music...great stuff bro

  • @zachariahm.kemper7406
    @zachariahm.kemper7406 Жыл бұрын

    It be cool if there was an update video adding back the 'personalities' of the different ghosts, as was as maybe porting over some of the additions that were added in later packman games, like the 3d games had mazes as mini levels but they had an increasing amount of hazards, the only thing that sucked was they didn't do the ai, where blinky would head directly to you, pinky would head a couple blocks in front of you(and there was a glitch where if you were looking up she's head to the left an equal amount of blocks as up, inky tries to make a triangle with blinky and pinky blocking you in, Clyde would do something random til he got close to you then he'd get scared and run away

  • @sanssans7392
    @sanssans739210 ай бұрын

    Very cool to see Pac-Man get some love. I made my own clone of Pac-Man, "Pac-Man Infinite" my senior year of high school in which more and more level-sized chunks would be generated as you progress, connected where the tunnels would be. I wanted to use the same tile graphics as the original Pac-Man and discovered that you only needed to distinguish between in-bounds areas, walls, and out-of-bounds areas. Each tile would check a 3x3 area around itself and compare that to a list of which area configuration pairs to which tile. It was surprisingly easy to get the ghosts to navigate very long levels, too.

  • @CodeNoodles

    @CodeNoodles

    10 ай бұрын

    That sounds awesome!

  • @TONYX987
    @TONYX987 Жыл бұрын

    Thanks for making this kind of videos because I learn a lot about programming even if I don’t understand everything you say keep doing this kind of videos because I love them

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    I'm glad you enjoy them!

  • @yeaglaceshorts546
    @yeaglaceshorts546 Жыл бұрын

    I didn’t realize this was your 3rd vid. good job!

  • @JoziGlitzh
    @JoziGlitzh Жыл бұрын

    Some suggestions to make the game better (If you don't like some of them or you think that not all players would like them, make it so you can enable and disable them in a settings menu): -Make time freeze for a little bit after you eat a ghost. -Make vulnerable ghosts flicker when they are about to turn into regular ghosts. -Add a level editor.

  • @emelsonpena1929
    @emelsonpena1929 Жыл бұрын

    You should add a level editor to be able to costumize basically everything even lives and maybe the amount of ghosts but there will have to be a limit and maybe you should add time so yea hope you like it

  • @raspy_mha_fan
    @raspy_mha_fan Жыл бұрын

    Does the classic pacman grid generate on any select seed, like seed 0 produces classic?

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    If you press F1 it uses the classic Pacman grid instead.

  • @owlhatch3812
    @owlhatch3812 Жыл бұрын

    What next? An Ai to play this version?

  • @renakunisaki

    @renakunisaki

    Жыл бұрын

    Would make a fun screen saver. Then port it to NES, and then corrupt it...

  • @sheepishly6942
    @sheepishly6942 Жыл бұрын

    My man, I just thought of the binary bit trick for selecting tiles on my own a couple of days ago. Then I found this video. Nice to know I'm not original, ha ha

  • @sinom
    @sinom Жыл бұрын

    rand() is only bad if it is critical for the number to be actually random like in cryptography or if you want specific distribution patterns (rand has no guarantees as to how random it is. Used to be a problem in old compilers but isn't really anymore). If it isn't you can use it no problem.

  • @NixityNullt
    @NixityNullt11 ай бұрын

    You should keep working on this. Making each ghost move in a unique way like they do in the game, Adding procedurally generated looping (like the entrance/exits on either side of the original board) and different procedures to generate the board in different pattern shapes would be welcome additions

  • @absobel
    @absobel Жыл бұрын

    Your channel is underrated af

  • @eliottmartin4494
    @eliottmartin4494 Жыл бұрын

    thanks for the idea, thanks to this video I also create a procedurally generated pacman but in python but with ghost that moove randomly and with an other map generator that create less hole and I think that it is better

  • @Kratos7560
    @Kratos7560 Жыл бұрын

    I would recommend adding a function that looks for corners of the map to place the power pellets, that way you decrease the chances of getting flanked at those parts of the map. Another idea would be a function that creates branches that connect others together to add more maneuverability to pac man's ability to evade ghosts as having a large square path with not power pellets is a huge risk as you can easily be surrounded by the ghosts.

  • @ambergulleman77
    @ambergulleman77 Жыл бұрын

    fun fact: each ghost has different ai, blinky (shadow) follows you like a shadow, pinky (speedy) follows the tile in front of you, inky (bashful) is basically pinky but works with blinky, clyde (pokey) when in an 8-tile radius with pac man he turns around.

  • @dylanedwards7548
    @dylanedwards7548 Жыл бұрын

    this is very neat the one thing missing is that each ghost acts differently from each other i dont know how well it would work with the random generation though

  • @wn4426
    @wn44268 ай бұрын

    This is so creative I love it

  • @h5melody178
    @h5melody178 Жыл бұрын

    Nice vid man!

  • @zejugames5045
    @zejugames5045 Жыл бұрын

    This would be perfect for Wave Function Collapse like in Townscaper... then the mazes would likely feel more Pac-Man-esque!

  • @DrCryptex
    @DrCryptex Жыл бұрын

    Amazing video

  • @sky8ash
    @sky8ash Жыл бұрын

    The one thing I will point out is that Clyde (The Orange Ghost) in the oringal game is usally just wandering around unless pac-man to close by which would put him into pursuit till pacman got far enough away.

  • @Sparkdroid
    @Sparkdroid Жыл бұрын

    10/10 video i loved it

  • @blainemobius2697
    @blainemobius2697 Жыл бұрын

    Would love to see a version 2 of this

  • @truffled
    @truffled Жыл бұрын

    this is really cool, now all you need to do is write an ai that can play procedurally generated Pacman

  • @paul10724
    @paul10724 Жыл бұрын

    I like your new avatar. You also have good video ideas.

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    Thanks!

  • @PLAYER42_ready
    @PLAYER42_ready Жыл бұрын

    This is really cool but, wouldn’t it be cooler if every time you clear the map it’ll generate a new one? You could have options for this such as; Autochange upon clearing, ask to change when cleared or don’t autochange.

  • @tivvy2vs21
    @tivvy2vs21 Жыл бұрын

    Ahbeef is doing a retrospective on all of the pacman games and has a pretty interesting color corridinated graph explaining his thoughts on each map in the games. He's up to pack mania, check it out Also, this reminds me of world biggest pacman, but that was user created levels

  • @LineOfThy
    @LineOfThy Жыл бұрын

    Fun fact: 3x3 tile connection systems also exist for more complicated setups!

  • @clonefighter1996
    @clonefighter1996 Жыл бұрын

    The decision to use a random tile instead of a pre-set tile at a corner for Scatter Mode from the beginning is genius. Accounting right away for the procedural generation, I see?

  • @schhur
    @schhur Жыл бұрын

    Ok but I have a challenge Add some more ghosts and I have a few ideas Lavender/purple: moves as a group of 3 but they can only go left and right Green: same as purple but they are a group of 4 Glitch: they have random looking textures and go through walls but it takes 3 minutes for them to spawn

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    Cool idea!

  • @quantdev

    @quantdev

    Жыл бұрын

    Isn't that just PacMan 256 ghosts? Like from that one infinite randomly generated game?

  • @Kay-ql2wl
    @Kay-ql2wl5 ай бұрын

    It would be nice if each ghost had its signature unique behaviour so they don’t just become recolours of each other

  • @Punch_Card
    @Punch_Card Жыл бұрын

    "and it somehow did" made me laugh hard 🤣

  • @sanstime
    @sanstime Жыл бұрын

    Awesome 😎👍.

  • @sadbread7261
    @sadbread72619 ай бұрын

    that tile tip was really good

  • @carltonleboss
    @carltonleboss Жыл бұрын

    Nice work.

  • @JustPlayerDE
    @JustPlayerDE Жыл бұрын

    "Wave Function Collapse" is an algorythm which could be usefull to generate more "realistic" pacman maps without some issues you had (except for understanding and implementing it tho)

  • @JustPlayerDE

    @JustPlayerDE

    Жыл бұрын

    after looking at many comments i was not the first it seems

  • @cheesebiscuit6257
    @cheesebiscuit6257 Жыл бұрын

    I really really really love the seed function

  • @mistorbear
    @mistorbear10 ай бұрын

    you could use that code to make an infinite-sized pac-man maze where the goal is to survive as long as possible

  • @pastrylol
    @pastrylol Жыл бұрын

    Good video! I just thought it would be a game that would infinitely generate.

  • @xx4002
    @xx4002 Жыл бұрын

    this is really cool, but I would like to see an actually procedurally generated pacman because currently it isn't procedurally generated its randomly generated, procedurally generated is when it is constantly generating new terrain as you move making the map infinite, like in Minecraft, but you would have to make a set number of dots you have to eat to proceed to the next level, you could also just run away from the ghosts into the distance but this wouldn't be a big problem because you can't avoid winning the level and will spawn back in the middle of the map again and the ghosts will get faster than you, rendering this method useless.

  • @kennyearthling7965
    @kennyearthling7965 Жыл бұрын

    Music choice is giving me Code Bullet vibes

  • @joseph_anton_white
    @joseph_anton_white Жыл бұрын

    A lot of info you showed wasnt quite correct like the scatter mode where they choose "random" positions instead like the original where theyre assigned their own corner (very depressed ghosts indeed) however the main game mechanics arent the main theme in this video. I like that you did in fact change the map so that the map generating program could work, however it also isnt the best as it still generates clumps of dots, i do have an better idea however it would be very difficult to describe it here but ill try. You can start with a ghost house, thats a good idea you had, however you couldve "spawned entities" right in front of the enterance, they would move in a random direction 2 tiles, wherever they land it generates an "open tile". Now what it does is that two rows or columns cant be adjacent to one another but 1 tile apart, however we need a bit more restrictions when they choose where to go, if there is an "open tile " next to it dont ever choose that path, then those "entities" could also have a small chance like 10% to spawn another entity only if theres 1 open tile next to them (which is the one they came from) and they couldnt choose the same path, also they have 10% chance to disappear. However there is a length limit, i would make it global so that new generated entities disappear at the same time as the starting few. Now when they disappear and there are dead ends you can spawn a different type of entity that connects to the closest open tile in a strait line without going backwards. Now a few deatils that i got while writing this is make the entity disappear when it has nowhere to go When you spawn the entities before they start generating make them go in a circle to choose a place (they should move 2 tiles forards of course so that its consistant with the algorithm) once every entity chooses where to go start the algorithm. Also portals would be cool, just check every 2 tiles if there are open tiles on opposite sides of the map and save it, then when you save all those positions choose he middle one. Idk why i wrote this but it just popped inside my head outof nowhere, i would appreciate if anyone does make a system like this. I also hope you understood this or anyone else reading this cuz ive just lost 10 minutes of my life writing this. And now a reward to you for reading this: you've got a new subscriber, your video was very enjoyable! Have a cookie too!!! 🍪🍪🍪

  • @P74_14
    @P74_1411 ай бұрын

    This has me thinking about making a maze like Pac-Man rpg that has different items around a dungeon that is made up of a set number of generated levels and a final fantasy or undertale like combat system and navigation to the next room is done by entering the hallways on the edges of the maze and the pellets could be a currency with many different types of ghosts with different movement patterns and combat abilities with like giant ghost bosses

  • @P74_14

    @P74_14

    11 ай бұрын

    If anyone under the sun would like to make this by all means go ahead that would be awesome

  • @Noted666
    @Noted666 Жыл бұрын

    Tbh, i didnt understand over 50% what ya saying in this video but still find its fun somehow

  • @PolishBagle
    @PolishBagle9 ай бұрын

    This is quite cool.

  • @MinerGritz
    @MinerGritz9 ай бұрын

    codenoodles: prevents branches from touching other branches also codenoodles: lets sub-branches do the exact same thing

  • @prashrad2382
    @prashrad2382 Жыл бұрын

    CodeBullet would be proud 😂

  • @Zakaarus
    @Zakaarus Жыл бұрын

    what if after eating all pellets you have to leave through a gate/the looping end, going out of bounds into the next level seamlessly

  • @darkener3210
    @darkener321010 ай бұрын

    This is really interesting I just wish you actually made the ghost ai how they did in the arcade game rather then just whatever sounded right During chase mode The red one paths straight for pacman The pink one paths 2 spaces ahead of pacman The blue one is weird, it paths to how far the red one is from the pink ones target doubled relative to pacman, something about trying to corner pacman The orange one paths straight for pacman, until he gets within an 8 tile radius of him then he goes for the bottom left During scatter mode The red one goes to the upper right The pink one goes to the upper left The blue one goes to the bottom right The orange one goes to the bottom left

  • @fuckoff9137
    @fuckoff91375 ай бұрын

    5:23 - love how you call it a “Super dot”

  • @Uminagi_XIII
    @Uminagi_XIII Жыл бұрын

    Nice

  • @cabbageder
    @cabbageder Жыл бұрын

    So cool!

  • @theAstarrr
    @theAstarrr6 ай бұрын

    A little inaccurate on ghosts but wouldn't expect you to re-code it after all that work. Scatter mode means each ghost goes to its corner (Orange "Clyde" to bottom left for example). You probably already know each ghost chases Pacman differently. As for Ghost movements, if you know which way they are going, they only need to make a decision when they can turn at an intersection. They never turn around 180 degrees unless a power pellet is eaten, or when switching between chase and scatter. Ghosts always have a target tile unless frightened, which is in the corner during scatter mode. Whichever turn brings them closest to the target tile using a linear line (a^2 + b^2 = c^2) is the one they pick. They prioritize up, then left, then down, then right if distances are equal, iirc - something like that anyway. TLDR it's a lot harder to simulate pacman then it looks, you did a great job!

  • @honeyhoney0125
    @honeyhoney0125 Жыл бұрын

    When are you releasing this? I am very exited to play this!!!!

  • @bigbob_yt
    @bigbob_yt Жыл бұрын

    Cool!

  • @shadowplayer8738
    @shadowplayer873811 ай бұрын

    Woah dude, that concept sounds fun. What software did you use to make this? Unity? Cause it seemed like a fun project to try and learn. Please tell.

  • @CodeNoodles

    @CodeNoodles

    11 ай бұрын

    I wrote this project in C++ with the graphics library SFML. The UI is made with my own library called Glass.

  • @Magic_Man_34
    @Magic_Man_34 Жыл бұрын

    you should optimize the ghost sprites with only body and eyes, probs even further with color shifts

  • @CalebClark-qd5yx
    @CalebClark-qd5yxАй бұрын

    Have you ever thought of using quantum wave function collapse to generate PAC-man mazes? I think it would work more nicely than noise or the branching that you implemented in the video. It would allow for all generated mazes to resemble the original pac-man maze.

  • @ally_cat2271
    @ally_cat2271 Жыл бұрын

    Im actually into this stuff but in minecraft command blocks I made a lot of stuff with command blocks like infinity stones , peashooter and PVZ etc and weirdly enough , TIME LOOPS

  • @dattromboneguy
    @dattromboneguy Жыл бұрын

    I thought the scatter pattern made the ghosts go to their respective corners and then move randomly within it, until the timer runs out

  • @TheEPICMarioBros2
    @TheEPICMarioBros2 Жыл бұрын

    I wonder if there is a seed that generates the original maze

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    Wow, that's thought provoking!

  • @chaosruby9792
    @chaosruby97929 ай бұрын

    i always thought the moral of the story was to find out a way to make the chunks smaller and for the branches to spread more and to figure out how to get the weird bleep thing out of your vocal cords so you can say swear words correctly

  • @paulytheking7365
    @paulytheking7365 Жыл бұрын

    If you ever need any music for your games, just let me know.

  • @edgardeitz5746
    @edgardeitz57464 ай бұрын

    CodeNoodles - You need to develop this further; the maze should be a little more detailed pathwise, you could retrofit the missing PacMan elements (like the fruit), add in stuff from the other games (bouncing fruit, random picking a seed based on Ms. Pac Man multiple mazes, the super prise from PacMan Plus, stuff from PacMan Jr., etc.)

  • @LilCalebW
    @LilCalebW Жыл бұрын

    Niiice

  • @KingOfTresune
    @KingOfTresune Жыл бұрын

    Wish I could code like you

  • @evanbelcher
    @evanbelcher10 ай бұрын

    I wonder how a different approach might have worked where rather than creating random paths, you created random blocks of walls following a set of rules instead.

  • @yeaglaceshorts546
    @yeaglaceshorts546 Жыл бұрын

    Bro I’m coding right now

  • @YoloYester94
    @YoloYester9411 ай бұрын

    8/10 imperfect ghost AI.

  • @bananaman_83
    @bananaman_83 Жыл бұрын

    Cool pizza talks 👍

  • @Jimbo1221
    @Jimbo12219 ай бұрын

    cool vid :0

  • @carrotspace8593
    @carrotspace859310 ай бұрын

    I think instead of creating branches, the better way would be to create walls

  • @EfanzeDev
    @EfanzeDev Жыл бұрын

    It would be neat if seed '256', generated a broken map, similar to how the original arcade game's map broke if you surpassed level 255.

  • @Potentlemon
    @Potentlemon Жыл бұрын

    What’s the outro song?. it sounds really cool

  • @jayronbaello3645
    @jayronbaello3645 Жыл бұрын

    really good stuff

  • @CodeNoodles

    @CodeNoodles

    Жыл бұрын

    Thanks!

  • @jayronbaello3645

    @jayronbaello3645

    Жыл бұрын

    @@CodeNoodles np i mainly found you when watching your first video and then i like the stuf but i didint know it was your fiirst video at the time

  • @jayronbaello3645

    @jayronbaello3645

    Жыл бұрын

    @@CodeNoodles so i just went to watch someting BUT I FORGOT TO SUBSCRIBE

  • @coolman36kmaway34
    @coolman36kmaway34 Жыл бұрын

    Second :)) Its gonna be a good vid

  • @PajamaCat4
    @PajamaCat4 Жыл бұрын

    I’m sure at least one other person has said this but there is a specific algorithm for each ghost during chase mode that is pretty different from what you used, here is a link to a video I watched that explains it kzread.info/dash/bejne/k6iVqdGtgZrPops.html

  • @xyhard8603
    @xyhard8603 Жыл бұрын

    A question, if C# is Object oriented or what ever is called, how i can make a script to control other objects?

  • @LanK111er
    @LanK111er Жыл бұрын

    is this guy the new codebullet.... lol even with the same music... im down lol

  • @DrCryptex
    @DrCryptex Жыл бұрын

    Codebullet vibes be like:

  • @andrewnapolitano8565
    @andrewnapolitano85659 ай бұрын

    If I remember correctly, fangames like this are considered fair use as long as you use a different name, unless you monetize them. You could name this game "Puck-Randomizer". Pac-Man's original name was Puck-Man, but people vandalized the machines to replace the P with an F, so they changed the name of the game & its titular character, & the "Puck" in the name I suggested for your game is an homage to Pac-Man's original name, which isn't copyrighted anywhere in the world, except maybe Japan. So yes, you can release this game, as long as you don't make people have to pay to download or play it, and make any & all DLC that you may release in the future free.

  • @chamberkingston7609
    @chamberkingston76099 ай бұрын

    The next step is turning it into a roguelite

Келесі