No video

Can I Play Pac-Man Directly On Its Own Source Code?

  Рет қаралды 54,630

icitry

icitry

Күн бұрын

Join me as I create a Quine Game Engine, which allows you to develop games as you would do it normally, except using APIs developed by yours truly, and compiling them using a custom tool that converts your beautiful creations into their most condensed form, to be enjoyed by everyone.
By making use of different techniques and technologies, like the C Language, JavaScript, Rollup.js, Terser, various optimization I attempt to recreate PacMan (the game) in its entirety and have it run as a Quine on its own source code.
Link to the repo: github.com/ici...

Пікірлер: 119
@TheMostOrdinaryPersonOnEarth
@TheMostOrdinaryPersonOnEarth Ай бұрын
KZbinrs keep making game engines, and i'm all for it. I enjoy how long it takes until I don't understand anything, and writing C++ is a small part of my job so you'd think I'd know whats happening
@icitry
@icitry Ай бұрын
Glad you're getting a kick out of it, and hey, welcome to the club, nobody knows what's happening here
@Hellscaped
@Hellscaped Ай бұрын
no clue how but i tried it and blinky escaped the maze lmfao
@icitry
@icitry Ай бұрын
Well now that's something else, thanks for pointing it out - you can submit an issue if you get it to happen consistently
@couldntcreateagoodname
@couldntcreateagoodname 23 күн бұрын
im surprised someone actually recognized the "PIXELS" movie, that movie feels like a forgotten memory
@icitry
@icitry 23 күн бұрын
Well that just can't be, the cinematic masterpiece that is the Pixels movie and its cultural impact are nothing less than absolutely legendary
@lpfan4491
@lpfan4491 18 күн бұрын
Developer:"This is my sourcecode." People:"But can it run Doom!?" Developer: Wat
@alexshonia880
@alexshonia880 Ай бұрын
never stop cooking
@icitry
@icitry Ай бұрын
Oh the kitchen's holding on for dear life but you better believe I'm not letting it chill
@BullyBarua
@BullyBarua Ай бұрын
Now do it in C
@icitry
@icitry Ай бұрын
Is this how little you think I value my mental health? (it probably is)
@lmfao-tp4cx
@lmfao-tp4cx Ай бұрын
real programmers make their own CPU architecture to have their own Assembly language only using transistors and logic gates smh​@@icitry
@icitry
@icitry Ай бұрын
@@lmfao-tp4cx wdym just wait for lightning to strike a rock and you've got a cpu, the rest is dark magic and hexes
@lmfao-tp4cx
@lmfao-tp4cx Ай бұрын
@@icitry nah there is a emacs command and a js framework for that already
@icitry
@icitry Ай бұрын
@@lmfao-tp4cx fair point ngl
@Jakku_Azzo
@Jakku_Azzo Ай бұрын
Next step I guess is finding a way to interpolate the src code over a bitmap of a level in a way that the level is still recognisable , objects are interactable and the game can be played. Then we have cave story Quine
@SomeUsernameSomeoneElseTookIt
@SomeUsernameSomeoneElseTookIt 23 күн бұрын
CAVE STORY!!!!
@farcesable
@farcesable Ай бұрын
I like your result and I definitely couldn't do this myself, but I think what sets some of the others apart is that the code isn't just short, it's readable too. With the JavaScript minifier it ends up looking obfuscated, I don't think there's any short section in there that I could understand on its own. Getting it short and readable is a massive limitation though, so I get what you were saying when you mentioned not wanting to do pong or snake, there's not a lot that can be short and readable outside of games of that era.
@icitry
@icitry Ай бұрын
Happy to hear that! And I totally agree, having it also be readable and actually easy to understand is an art in and of itself.
@JusticeNDOU
@JusticeNDOU Ай бұрын
ooh i took a very long time to realize what directly on its own source code meant
@icitry
@icitry Ай бұрын
Ohh, did I take too long to get into the explanation? Or maybe the subject itself is a bit convoluted?
@JusticeNDOU
@JusticeNDOU Ай бұрын
@@icitry next time try a game that constantly rewrites its source code
@raphaeld9270
@raphaeld9270 Ай бұрын
@@JusticeNDOU Maybe replacing state machine with self-modifying code 🤔
@hyperkiko
@hyperkiko Ай бұрын
you should make the background text also include the html (and css if it exists) to be able to just select the whole background, paste it in an html file and run it
@icitry
@icitry Ай бұрын
Actually it includes them. The only HTML I haven't included is the one for the page displaying the script as I considered that to be outside of the game itself - but I can definitely see your point
@Roxve
@Roxve Ай бұрын
insanely cool idea diff in my TODO list when i finish my language
@JamesTDG
@JamesTDG 28 күн бұрын
Now I want to see someone make this run Tetris. As for doom, I don't think running its source code in this program would be very entertainng
@icitry
@icitry 27 күн бұрын
Hey, with a big enough screen, who knows
@UpsTubeTheYouTuber
@UpsTubeTheYouTuber 23 күн бұрын
"Playing on their games source directly code" Godzilla had a stroke reading this and died
@KaiDotBurokai
@KaiDotBurokai 17 күн бұрын
Okay but can it [insert overused joke here]
@MysticMicrowave
@MysticMicrowave 9 күн бұрын
Okay but can it solve world hunger?
@ChairGuyTf2
@ChairGuyTf2 8 күн бұрын
Can it run doom?
@justansmg4fan254
@justansmg4fan254 9 күн бұрын
This is very interesting to someone who has no clue what you’re talking about
@DsiPro1000
@DsiPro1000 Ай бұрын
See you cowboy, someday, somewhere!
@justpigzilla
@justpigzilla 24 күн бұрын
what a ride! really satisfying to see it finally run haha
@HelloKittyFanMan
@HelloKittyFanMan Ай бұрын
Huh, interesting, sort of! Thanks!
@icitry
@icitry Ай бұрын
Glad to hear that, thanks as well!
@anon_y_mousse
@anon_y_mousse Ай бұрын
I would think it'd be easier to do in C since you could just issue ANSI escape sequences directly to modify the terminal output. I doubt I could make it a true quine, but I'll see if I can't at least do a terminal version of Pac-Man. Let's see if I have any time to actually read the research on ghost movements.
@icitry
@icitry Ай бұрын
I actually did just that 😅 (you can check out the repo), the issue was creating a general solution that could properly compress code for any game. But yeah, creating a full fledged C Quine for Pac-Man would be quite the feat (considering my solution is still not a 1:1 copy even at that size).
@Psycheux_
@Psycheux_ 20 күн бұрын
I'm so glad I'm nyot the only person to say "eargasm"
@dotdashdotdot668
@dotdashdotdot668 Күн бұрын
1:19 YOU.
@HelloKittyFanMan
@HelloKittyFanMan Ай бұрын
But what about when Clyde's position is 8, _itself,_ tiles away from Pac-Man, Icitry?
@icitry
@icitry Ай бұрын
Oh, that'd still be Pac-Man's position. My bad, I somehow let that slip by 😅
@cvabds
@cvabds Ай бұрын
Well, twmpleOS does that natively
@icitry
@icitry Ай бұрын
Ok let's not compare the work of man to that of the Gods now shall we?
@cvabds
@cvabds Ай бұрын
@@icitry I wish people didn't get fixated about the religious part of it. I wish there was someone like you who could just do pure coding without restrictions on it. Call it HeresyOS haha
@Monkeymario.
@Monkeymario. 21 күн бұрын
6:16 remove all whitespac3 characters and shorten variable and function names
@Jack-ov4mb
@Jack-ov4mb 17 күн бұрын
Eargasm quality audio? Street fighter 2 Guile's theme gives me an eargasm and gets me hyped with just 16 bits.
@Skullkid16945
@Skullkid16945 Ай бұрын
You think someone could make a rendering engine using a terminal that supports sixels as the output? Could use sixels to render the game in the terminal directly with more clarity, although possibly limited in colors. Would work for certain art style games though or older games that already have limited colors.
@icitry
@icitry Ай бұрын
Definitely, I don't see why it wouldn't work, and I'm sure there'd be plenty of fans of the style
@TravTrevTV
@TravTrevTV 17 күн бұрын
the last level of pacman:
@12354fdw
@12354fdw Ай бұрын
Making it in C. A very bad idea
@icitry
@icitry Ай бұрын
You tell me... At least it was kinda fun in hindsight
@theevilcottonball
@theevilcottonball Ай бұрын
As someone who wrote a hello world PE windows executable with just a hex editor, I would say C is pretty nice...
@majinya6199
@majinya6199 13 күн бұрын
But can it run Crysis?
@th1v5
@th1v5 Ай бұрын
here is your algorithm boost
@georgerogers1166
@georgerogers1166 Ай бұрын
Do Super Mario World in Super Mario World.
@icitry
@icitry Ай бұрын
... in Super Mario World
@georgerogers1166
@georgerogers1166 Ай бұрын
Ace vulnerability.
@champion_ofcloud-var
@champion_ofcloud-var 27 күн бұрын
@@icitry yeah seems doable
@ponali.mememaker
@ponali.mememaker 16 күн бұрын
i'm trying to send a comment, but everytime i try to do so it automatically gets deleted, but not for my client. trying to edit those unexisting comments results in the "Returned error" error. i tried editing one of my existing comments and it stayed for a while, but now it's gone...?
@RobertTheFoxxo
@RobertTheFoxxo 20 күн бұрын
baba is you
@Bonini000
@Bonini000 18 күн бұрын
What have i understood from this? Hey, look, there is a game in ASHII! 😅
@BoxAnims2
@BoxAnims2 17 күн бұрын
Doom. You have to.
@SquidBeatsSB
@SquidBeatsSB 11 күн бұрын
Do doom for old times sake
@MarkRayers
@MarkRayers Ай бұрын
Make it in javascript or html, those are interpreted, or any interpreted language, bam, running from source
@Nobodyever_434
@Nobodyever_434 21 күн бұрын
9:08 cuisgravida buttholeispregnant (cu is butthole in portugues and gravida is pregnant in portugues)
@HelloKittyFanMan
@HelloKittyFanMan Ай бұрын
"...I thought to myself..." As opposed to "thinking to someone else" here in mortality?
@oofiyea4444
@oofiyea4444 20 күн бұрын
cool now do it on dooms source code
@EriksGarbage
@EriksGarbage 20 күн бұрын
WEIRD AL⁉️⁉️⁉️⁉️⁉️⁉️⁉️
@cupajoe99
@cupajoe99 13 күн бұрын
0:30 am i colorblind? i cant see it as a clock
@icitry
@icitry 12 күн бұрын
Sorry you had to find out this way
@404Foundnt
@404Foundnt 9 күн бұрын
ok but can it run doom?
@tower9602
@tower9602 Ай бұрын
I think interpreted languages do just that
@Vincent_Bloodstone
@Vincent_Bloodstone 14 күн бұрын
ok but can it run doom
@Duckyy.
@Duckyy. 17 күн бұрын
Can it run doom
@the-protogen-of-the-sky
@the-protogen-of-the-sky 9 күн бұрын
Can it run DOOM?
@kubaoko008
@kubaoko008 19 күн бұрын
damn.
@Mega9466
@Mega9466 29 күн бұрын
I absolutely hate that you made me lose the game
@icitry
@icitry 28 күн бұрын
welp better luck next time, player o7
@justpigzilla
@justpigzilla 24 күн бұрын
i have also lost the game
@im-Anarchy
@im-Anarchy 28 күн бұрын
what's your source of all knowledge? wikipedia surfing? reddit? or what?
@icitry
@icitry 28 күн бұрын
I generally break down the problem into really small parts, based on which I start googling around - and of course getting side-tracked and discovering new stuff that may or may not help me for another project. It's all really the sum of all the stuff I'd studied prior.
@artwork-studios
@artwork-studios Ай бұрын
I wanna make a dotnet game engine please teach basics if you can
@icitry
@icitry Ай бұрын
Hey! Gonna be honest, I'm not really the best suited to do that. I'd recommend checking out someone like The Cherno - they delve pretty deep into proper game engine development.
@Pacman009
@Pacman009 16 күн бұрын
Don’t play me 😡
@Axcyantol
@Axcyantol 28 күн бұрын
what was that intro
@icitry
@icitry 27 күн бұрын
Just the creative genius of Weird Al himself
@anotherpromotor
@anotherpromotor 13 күн бұрын
really funny that you made me lose the game
@SirMatthew
@SirMatthew 28 күн бұрын
Now do it in binary
@icitry
@icitry 27 күн бұрын
Better yet, why not in unary
@Firstname-d6g
@Firstname-d6g 17 күн бұрын
​@@icitrywhat is stopping ya from doing it using photons
@gavinleonard-ru1uj
@gavinleonard-ru1uj 26 күн бұрын
IM FAT 0:00
@nikolasg4210
@nikolasg4210 28 күн бұрын
Doesn't work on Ubuntu can you add support for Linux
@icitry
@icitry 28 күн бұрын
Which part exactly?
@nikolasg4210
@nikolasg4210 28 күн бұрын
@@icitry the exe part (and the .c part because the c part only seems to work on Windows API)
@icitry
@icitry 28 күн бұрын
@@nikolasg4210 Oh I see. Thing is, that's just intended to be a prototype, so there is no plan to make it cross-platform. You are free to play around with it and port it to use Linux-specific APIs, but the main focus is the JS implementation.
@nikolasg4210
@nikolasg4210 28 күн бұрын
@@icitry ok
@Esiv0_
@Esiv0_ 28 күн бұрын
bet you cant run doom on its source code
@icitry
@icitry 27 күн бұрын
I'm sure someone brave enough will take on that challenge sooner or later
@nkacey2000
@nkacey2000 Ай бұрын
can it run doom
@icitry
@icitry Ай бұрын
unironically, yeah it should
@untitiled_user
@untitiled_user Ай бұрын
I see a pin, can i have it?
@cheesepop7175
@cheesepop7175 Ай бұрын
spongebob is a kid's show, adults should not watch it
@icitry
@icitry Ай бұрын
lies, deception
@cheesepop7175
@cheesepop7175 Ай бұрын
@@icitry spongebob mostly has no mature content so it's not an adult's show
@DiamondKittyCat
@DiamondKittyCat 29 күн бұрын
oh shut it.
@hunterchichester5720
@hunterchichester5720 29 күн бұрын
​@@cheesepop7175 lmao no I'ma keep on watching spunch bop
@cheesepop7175
@cheesepop7175 28 күн бұрын
@@hunterchichester5720 based on how you misspelled spongebob you're probably a kid so that means you can still watch spongebob
AI Learns to Speedrun Mario
8:07
Kush Gupta
Рет қаралды 777 М.
AI Learns How To Play Doodle Jump
12:02
Tyler Mommsen
Рет қаралды 275 М.
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 35 МЛН
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 19 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 58 МЛН
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 67 МЛН
Reverse Engineering Game Code from the Neutral Zone
40:59
Retro Game Mechanics Explained
Рет қаралды 603 М.
We Recreated CIA Technology, It Was Surprisingly Easy (Microdots)
17:26
The Thought Emporium
Рет қаралды 546 М.
I Made a CRT Game Boy
20:44
James Channel
Рет қаралды 434 М.
I ported THOUSANDS of apps to Windows 95
51:54
MattKC
Рет қаралды 1,1 МЛН
Can I Create Video Games Using SQL? (No Game Engine)
20:58
icitry
Рет қаралды 126 М.
T-Poses, A-Poses, Other Weird Poses and Why
10:02
Doodley
Рет қаралды 298 М.
Harder Drive: Hard drives we didn't want or need
36:47
suckerpinch
Рет қаралды 1,6 МЛН
A truly 2D game isn't what you think it is...
13:23
NivMiz
Рет қаралды 41 М.
I Made Pac-Man with just Redstone!
29:54
mattbatwings
Рет қаралды 508 М.
Which is Safer? Black Mesa or Aperture Science?
25:07
Mauricio Jara
Рет қаралды 681 М.
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 35 МЛН