I Made a Game in One Line of Code

  Рет қаралды 2,514,470

n8dev

n8dev

Күн бұрын

Пікірлер: 2 900
@n8dev
@n8dev 3 жыл бұрын
source code :0 using System.Collections; using UnityEngine; using TMPro; using UnityEngine.SceneManagement; namespace com.N8Dev.Flappy { public sealed class Game : MonoBehaviour { /* PLAYER */ [Header("Player")] [SerializeField] private string PlayerTag = "Player"; [SerializeField] private ParticleSystem PlayerJumpParticles; [SerializeField] private float PlayerJump; [SerializeField] private KeyCode PlayerJumpKey; private Rigidbody2D _playerRigidbody; private bool _isDead; /* PLAYER */ /* SCORE */ [Header("Score")] [SerializeField] private string ScoreTag = "Score"; [SerializeField] private TextMeshProUGUI ScoreText; private int _score; /* SCORE */ /* SPIKES */ [Header("Spikes")] [SerializeField] private string SpikesTag; [SerializeField] private string InstantKillTag = "InstantKill"; [SerializeField] private float SpikeScroll; [SerializeField] private Collider2D SpikeEndCollider; [SerializeField] private Transform SpikeStart; [SerializeField] private float MinY; [SerializeField] private float MaxY; private Rigidbody2D _spikeRigidbody; /* SPIKES */ /* UNITY EVENT METHODS */ private void Awake() { if (gameObject.CompareTag(PlayerTag)) _playerRigidbody = GetComponent(); else if (gameObject.CompareTag(SpikesTag)) _spikeRigidbody = GetComponent(); } private void Update() { if (gameObject.CompareTag(PlayerTag) && Input.GetKeyDown(PlayerJumpKey) && !_isDead) { _playerRigidbody.velocity = new Vector2(_playerRigidbody.velocity.x, PlayerJump); PlayerJumpParticles.Play(); } } private void FixedUpdate() { if (gameObject.CompareTag(SpikesTag)) { _spikeRigidbody.MovePosition(_spikeRigidbody.position - Vector2.right * SpikeScroll); } } private void OnCollisionEnter2D(Collision2D collision) { if (gameObject.CompareTag(PlayerTag)) { if (collision.collider.CompareTag(SpikesTag)) StartCoroutine(Co_Death(0.5f)); else if (collision.collider.CompareTag(InstantKillTag)) StartCoroutine(Co_Death(0f)); } } private void OnTriggerEnter2D(Collider2D collider) { if (gameObject.CompareTag(PlayerTag) && collider.CompareTag(ScoreTag) && !_isDead) { _score++; ScoreText.text = _score.ToString(); } else if (gameObject.CompareTag(SpikesTag) && collider == SpikeEndCollider) { Vector3 __startPosition = SpikeStart.position; __startPosition.y = Random.Range(MinY, MaxY); _spikeRigidbody.position = __startPosition; } } /* UNITY EVENT METHODS */ /* Death */ private IEnumerator Co_Death(float delay) { _isDead = true; yield return new WaitForSeconds(delay); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); } /* Death */ } }
@eddie.z
@eddie.z 3 жыл бұрын
oh god
@n8programs733
@n8programs733 3 жыл бұрын
that made me die
@n8dev
@n8dev 3 жыл бұрын
@@n8programs733 mb
@starleaf-luna
@starleaf-luna 3 жыл бұрын
aa
@starleaf-luna
@starleaf-luna 3 жыл бұрын
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
@pentaguss3231
@pentaguss3231 3 жыл бұрын
Unity: "error occurrred on line : 1" him: thank god it tells me
@n8dev
@n8dev 3 жыл бұрын
LOL what a relief
@spicywings4614
@spicywings4614 3 жыл бұрын
tfw the error occurs on line 2
@richardbullick7827
@richardbullick7827 3 жыл бұрын
At least “error occurred” shows that there’s an error in the first place
@GospodKrompir
@GospodKrompir 2 жыл бұрын
Yeh unity saw 2 lines I guess
@yodigochau
@yodigochau 2 жыл бұрын
you don't know unity
@AndrewDavidJ
@AndrewDavidJ 3 жыл бұрын
Wait, you mean people usually write code on more than one line?!?
@n8dev
@n8dev 3 жыл бұрын
LOL
@Someoneyeeted
@Someoneyeeted 3 жыл бұрын
No people code in only 1 line like shown in this devlog
@n8dev
@n8dev 3 жыл бұрын
;)
@carlosnava1471
@carlosnava1471 3 жыл бұрын
Depends. If it's a simple game, one line is more than enough, but for more serious projects you might want more cocaine that that.
@AndrewDavidJ
@AndrewDavidJ 3 жыл бұрын
@@notrohit No no, not woosh, read what he said again :P Specifically the end part lol
@Makeroni100
@Makeroni100 3 жыл бұрын
Friend: hey want to join me on making a game? Me: sure, how much do you have done? Friend: oh not much, only one script The script:
@n8dev
@n8dev 3 жыл бұрын
LOL
@the-pink-hacker
@the-pink-hacker 3 жыл бұрын
The yandere dev is the friend.
@LaelGames7913
@LaelGames7913 3 жыл бұрын
Hhahahha
@dev-d5600x
@dev-d5600x 3 жыл бұрын
Only one *line*
@ATSM_33
@ATSM_33 2 жыл бұрын
As a coding enthusiast myself, I would actually like to hear about the pain this must've given you, scrolling through the Great Wall of China's code.
@n8dev
@n8dev 2 жыл бұрын
LMAO glad you can relate
@dinoavenger
@dinoavenger 2 жыл бұрын
Did you meant line?
@ATSM_33
@ATSM_33 2 жыл бұрын
@@dinoavenger I was making an exaggeration because it's an entirety of a program's code in a single line, hence the expression "Great Wall of China", since the GWoC is f*cking huge to my knowledge. If you were just asking if I was exaggerating in the first place, then I'm sorry for possibly making this sound like I was calling you an idiot or... something like that. I don't mean any offense.
@deletodraw1944
@deletodraw1944 2 жыл бұрын
Basically imagine this: Your latest english essay, except shorten the paragraphs to one line. good luck reading all that to find your error.
@ChinchillaBONK
@ChinchillaBONK Жыл бұрын
Great Line of Code
@-TheFacelessGamer-
@-TheFacelessGamer- 3 жыл бұрын
I'm looking at those food scenes and I was asking myself if there was a deeper meaning behind them. Nope. I'm pretty sure N8Dev was hungry while editing and wanted us to see what he was cooking up.
@n8dev
@n8dev 3 жыл бұрын
correct, the food was very good :D
@marsopolisnoice
@marsopolisnoice 2 жыл бұрын
@@n8dev I fear nothing, but that thing That thing: It scares me
@thatotherandrew_
@thatotherandrew_ 3 жыл бұрын
I like how half the shots are of your project, and the other half is completely random stuff
@n8dev
@n8dev 3 жыл бұрын
haha thanks
@FrostyBoiFN
@FrostyBoiFN 3 жыл бұрын
u wiykd kuje but 69 likes
@ytcsabidealer8387
@ytcsabidealer8387 3 жыл бұрын
Lol I did not even realise
@urkururear
@urkururear 3 жыл бұрын
test
@juandavid4089
@juandavid4089 3 жыл бұрын
test
@forshovelry2705
@forshovelry2705 3 жыл бұрын
Gotta love how he is lightly stroking random keys rather than typing xD
@n8dev
@n8dev 3 жыл бұрын
LOL yes
@EsquisseBeats
@EsquisseBeats 3 жыл бұрын
I still don’t understand what’s happening in those shot
@n8dev
@n8dev 3 жыл бұрын
@@EsquisseBeats same
@artelislt
@artelislt 3 жыл бұрын
@@n8dev same
@Cyorg13
@Cyorg13 3 жыл бұрын
@@n8dev same
@theemeraldfalcon9184
@theemeraldfalcon9184 3 жыл бұрын
The fact that you didn't call it Flyangle hurts my soul lol.
@n8dev
@n8dev 3 жыл бұрын
sorryyyyyyyyyyy haha
@zurabtsereteli6947
@zurabtsereteli6947 3 жыл бұрын
Tryangle Flyangle
@Wuddigot
@Wuddigot 3 жыл бұрын
Man thats way better than High-Velocity Farting Triangle. Hire him not me. lol
@olegmoki
@olegmoki 2 жыл бұрын
Flappy and Triangle can be either Flyangle, or Trippy.... oh wait
@noeticsparrow6381
@noeticsparrow6381 2 жыл бұрын
lol i vote for Flyangle lmao
@rossjennings4755
@rossjennings4755 Жыл бұрын
I'm impressed that you actually kept this as one line the entire time, rather than writing it normally and then just deleting all the newlines at the end.
@n8dev
@n8dev Жыл бұрын
;)
@TheMartyredextras
@TheMartyredextras 2 жыл бұрын
I had a professor who told me he once had a blind student who would write their code and then have a text reader read it to them to debug. The result was, they had no reason to properly space code so they'd just write it all on one line
@n8dev
@n8dev 2 жыл бұрын
That's actually really interesting
@TheMartyredextras
@TheMartyredextras 2 жыл бұрын
@@n8dev I have no idea whether it was true. The guy was a creep. But it is an interesting story
@L1239-z8l
@L1239-z8l Жыл бұрын
@@TheMartyredextras why was he a creep?
@TheMartyredextras
@TheMartyredextras Жыл бұрын
@@L1239-z8l long story
@thinkingspace3438
@thinkingspace3438 Жыл бұрын
no python i guess
@rubenuijtde
@rubenuijtde 3 жыл бұрын
The title: Making a game The video: Making food im hungry.
@n8dev
@n8dev 3 жыл бұрын
LOL
@kermitenthusiast485
@kermitenthusiast485 3 жыл бұрын
Yes
@NickMirambeau
@NickMirambeau 3 жыл бұрын
I like how to-the-point this was. he literally just went "yea I did it, here's the thing I made, k bye"
@n8dev
@n8dev 3 жыл бұрын
thanks :)
@D4ngrs
@D4ngrs Жыл бұрын
well, plus any random clips inbetween. Not a fan of seeing dogs, food and "fake typing" on a video about coding :D
@isto_inc
@isto_inc 3 жыл бұрын
We were too busy asking if we could, we never stopped to ask if we should.
@n8dev
@n8dev 3 жыл бұрын
LOL so true
@typicalkhaios2475
@typicalkhaios2475 3 жыл бұрын
LOLOLOLOLLO
@青白スタジオ
@青白スタジオ 3 жыл бұрын
@@typicalkhaios2475 What does that stand for?
@typicalkhaios2475
@typicalkhaios2475 3 жыл бұрын
@@青白スタジオ the same as rofl
@simtech_1694
@simtech_1694 3 жыл бұрын
e
@emberkeil6513
@emberkeil6513 2 жыл бұрын
You know what's crazy? When he showed the little guy without the spikes jumping up and down, my mind still genuinely thought it was moving forward, even though there was nothing moving to the left to signify that, the fact that Flappy Bird had such a big effect on my brain that a small character jumping up and down tells my brain it's also moving right is insane to me
@emberkeil6513
@emberkeil6513 2 жыл бұрын
It's like a reverse optical illusion
@n8dev
@n8dev 2 жыл бұрын
Yeah fr
@wiwita63
@wiwita63 Жыл бұрын
I think it's also the eyes of the character, the lines on the triangle are facing right so you've think if it was moving then it's obviously moving to the right and not to the left.
@nodvick
@nodvick 3 жыл бұрын
0:12 yes but a "line of code" is specifically defined. Hop into your visual studio and you can actually do a quick diag and it will tell you how many lines it is, ignoring whitespace.
@n8dev
@n8dev 3 жыл бұрын
yup; I figured everyone would interpretate “one line” as “one straight line of code”, but I see that’s not the case :D
@aptrock327
@aptrock327 3 жыл бұрын
"everyone knows that when you jump white particles come out of your feet" literally died out of laughter
@n8dev
@n8dev 3 жыл бұрын
haha love that
@trinityy-7
@trinityy-7 3 жыл бұрын
you sound sarcastic
@aptrock327
@aptrock327 3 жыл бұрын
@@trinityy-7 really lol?
@trinityy-7
@trinityy-7 3 жыл бұрын
@@aptrock327 yea isnt sarcasm meant to be when something is false?
@randomlightstand
@randomlightstand 3 жыл бұрын
@@trinityy-7 yes
@HenryNWhite-zp5zp
@HenryNWhite-zp5zp 3 жыл бұрын
"I'm not a good artist" proceeds to make really beautiful art that i vould never get even close
@n8dev
@n8dev 3 жыл бұрын
haha thank you
@yourfellowgamer487
@yourfellowgamer487 3 жыл бұрын
lol when making a game I usually get NO INSPIRATION (0:50) other people's artwork, but anyways I made art from his assets. (I didn't directly copy it, I just had a flame in my heart too use the same concept as him)
@CreatorLikeMaster
@CreatorLikeMaster 2 жыл бұрын
I wouldn't get close either.
@HuneeBruh
@HuneeBruh 2 жыл бұрын
they're literally just triangles lmao
@pipcabrap
@pipcabrap 2 жыл бұрын
ITS A TRIANGLE
@fluffystuff
@fluffystuff 11 ай бұрын
Teacher I don't have space to write. teacher: just write on the next line. me:
@oyjuk9192
@oyjuk9192 3 жыл бұрын
If a line of code gives you 4 minutes, imagine with the hundreds that a normal game has
@n8dev
@n8dev 3 жыл бұрын
LOL yeah, generally I like to keep my videos around 6 or 7 minutes; I just didn't want to spend more time than I needed talking about this ;)
@OrgBrent
@OrgBrent 3 жыл бұрын
Working on a console based cinema application together with my project team in C# for university. Got over 600 hours total, nearing the finish of the project.
@EdKolis
@EdKolis 2 жыл бұрын
If I hadn't recently started using Unity, I would have said, "Hundreds? Surely a 'normal' game has at least 10,000!" Why did I not start using Unity sooner?!
@coolfilms3213
@coolfilms3213 3 жыл бұрын
I love how you randomly edit in scenes of you getting cereal and playing with your dog
@n8dev
@n8dev 3 жыл бұрын
haha thank you
@higgsboson8103
@higgsboson8103 3 жыл бұрын
"Did you do it" "Yes" "What did it cost? " "My sanity'
@n8dev
@n8dev 3 жыл бұрын
LOL yeah
@BootifulBlaze
@BootifulBlaze 2 жыл бұрын
1:15 thats my favorite cereal lol idk why im talking about the cereal and not the actual video lol, but good job
@n8dev
@n8dev 2 жыл бұрын
It’s my favorite too 🥣
@TheSphericalSpectacle
@TheSphericalSpectacle Жыл бұрын
@@n8dev Saaaaammmmmmeeeeeeee
@telnobynoyator_6183
@telnobynoyator_6183 3 жыл бұрын
- program game normally - find and replace new lines with empty strings done. A better challenge would be to create a game with just one statement. While not trivial it should definitely be possible.
@n8dev
@n8dev 3 жыл бұрын
yup! maybe I’ll try that in the future ;)
@splitpierre
@splitpierre 2 жыл бұрын
my thoughts exactly. I'm on board, one statement can be indeed a fun challenge..
@thelegend8570
@thelegend8570 3 жыл бұрын
As a person who uses two if statements instead of just one long one, this hurts my soul.
@n8dev
@n8dev 3 жыл бұрын
LOL sorry
@lukebarger9788
@lukebarger9788 2 жыл бұрын
You wanted to get the eggs in the video because you knew they looked real tasty, and you had no other way of showing that fine art to everybody else. So you snuck it in there. RESPECT EARNED!!! And a sub!
@n8dev
@n8dev 2 жыл бұрын
🥳🥳🥳
@PowerOnYT
@PowerOnYT 3 жыл бұрын
1:16 with all of the art finished, i figured it was time for me to eat breakfast
@n8dev
@n8dev 3 жыл бұрын
LOL
@olegmoki
@olegmoki 2 жыл бұрын
i figured it was time for me to start co -ding- oking
@stevemc01
@stevemc01 2 жыл бұрын
Unity: "You've made an error in Line 1." Me taking on n8dev's challenge and having typed enough code to fly an F-35: "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUU--"
@n8dev
@n8dev 2 жыл бұрын
LMAO
@dellicheese8685
@dellicheese8685 2 жыл бұрын
editor n8dev: "im hungry" *cooks omlet* editor n8dev: _“Its free real estate”_ 2:45
@n8dev
@n8dev 2 жыл бұрын
FR
@EdKolis
@EdKolis 2 жыл бұрын
You could make the game harder as you progress by making the top spike and bottom spike closer together, or by making the spikes appear more frequently, or making them move faster. But that might require another line of code! 😉
@n8dev
@n8dev 2 жыл бұрын
Lmaooo right
@EraWaffles
@EraWaffles 2 жыл бұрын
This was really fun to watch, I'd love to see more of your coding adventures
@n8dev
@n8dev 2 жыл бұрын
🙏
@richardbullick7827
@richardbullick7827 3 жыл бұрын
“Chapters” thing: 0:00 Introooooooooo 0:29 My lawyer gets mad at me 0:44 Game idea be like 0:55 Art 1:16 Setting up my script 1:48 Basic game loooooooooooooop 2:13 How this actually works 2:55 More game stuff lol 3:30 Outrooooooooooooooo
@n8dev
@n8dev 3 жыл бұрын
yuppp
@JadwigaBembenek
@JadwigaBembenek Жыл бұрын
All coders and artists these days: but I'm too lazy to do that. Me: being too lazy to be lazy.
@loopy2140
@loopy2140 Жыл бұрын
this is the best clickbait ive ever seen, we all needed it
@TylerGreen
@TylerGreen 3 жыл бұрын
That lawyer’s Aussie accent got to me lol. I wonder how far you could take it with one line of code. Although like you said, I guess technically this game does have more than 1 line of code if you include game engine base code, Post Processing, etc lol. Cool idea though! Can you remake Skyrim in one line of code??
@n8dev
@n8dev 3 жыл бұрын
LOL thanks haha, we’ll see about skyrim 👀
@nathansnail
@nathansnail 3 жыл бұрын
Skyrim has multiple objects all with their own code and the game needs one manager object to do everything so it would be even more of a nightmare making more complex behaviours such as pathfinding. You could probably merge an open source engines code with your games making it truly 1 line.
@n8dev
@n8dev 3 жыл бұрын
@@nathansnail oh goodness haha, that could be fun (painful). I really appreciate you taking the time to give feedback :)
@TylerGreen
@TylerGreen 3 жыл бұрын
@@nathansnail haha I was clearly joking by suggesting Skyrim but I like where this is going!
@c0dertang
@c0dertang 3 жыл бұрын
When you get that "Error on line 1" message... You should host a 1 line game jam!
@n8dev
@n8dev 3 жыл бұрын
LOL I like that idea :D
@Niki1A_
@Niki1A_ 3 жыл бұрын
People will probably just code everything in one script normally and delete the new-lines in the end. I was actually very surprised that you didn't do that and really developed everything within one line.
@c0dertang
@c0dertang 3 жыл бұрын
@@Niki1A_ I didn't even think about that. Wow. That's smart.
@GoobyDev
@GoobyDev 3 жыл бұрын
Thanks for the recommended youtube, now i get to enjoy this cursed content
@n8dev
@n8dev 3 жыл бұрын
haha yes that's awesome
@rubabmubarrat
@rubabmubarrat 3 жыл бұрын
Me: OMG this is too hard I cant pass the test without suggestion Teacher: Just go through this line, you will pass *The line:*
@n8dev
@n8dev 3 жыл бұрын
LOL
@Banzybanz
@Banzybanz Жыл бұрын
*random developers* Nintendo sitting in the corner, staring menacingly
@AlbanianGladiator
@AlbanianGladiator 3 жыл бұрын
me when he hits 10M:Only OG’s will remember
@n8dev
@n8dev 3 жыл бұрын
:D
@hijijij
@hijijij Жыл бұрын
n8dev: “But you probably don’t care, so moving on.” Most true AND funniest youtuber😂😂
@UIPlanet
@UIPlanet 3 жыл бұрын
people out there making a game with over 20000 Lines of code. N8: I'm 19999 parallel universes ahead of you 😎
@n8dev
@n8dev 3 жыл бұрын
LOL
@turbojax07
@turbojax07 Жыл бұрын
Anger every programmer every any% speedrun. Honestly though, great video! The debugging must have been worse than in apps script though...
@alexruedi1995
@alexruedi1995 Жыл бұрын
those collisions are really nice :) great job
@n8dev
@n8dev Жыл бұрын
🙏
@Yanzinator
@Yanzinator 2 жыл бұрын
the worst part is that since its one line of code with no documentation, it is impossible to and will never be updated
@n8dev
@n8dev 2 жыл бұрын
Facts
@_MrNoob
@_MrNoob 3 жыл бұрын
N8, i DARE you to make a game in 0 lines of code.
@ebrahimmomin7518
@ebrahimmomin7518 3 жыл бұрын
I bet I could
@_MrNoob
@_MrNoob 3 жыл бұрын
@@ebrahimmomin7518 do it
@ebrahimmomin7518
@ebrahimmomin7518 3 жыл бұрын
@@_MrNoob alr
@ebrahimmomin7518
@ebrahimmomin7518 3 жыл бұрын
@@_MrNoob I did it
@n8dev
@n8dev 3 жыл бұрын
oh goodness
@JassChess
@JassChess 3 жыл бұрын
Got this in my recommendation, not disappointed🙃
@n8dev
@n8dev 3 жыл бұрын
thanks :D
@OmneAurumNon
@OmneAurumNon Жыл бұрын
btw game mechanics are 100% uncopyrightable. Only the art, writing, etc can actually be copyrighted. So your flappybird clone is completely safe
@animeedits2135
@animeedits2135 3 жыл бұрын
*”TODAY WE WILL BE MAKING A FULLY FUNCTIONAL ALEXA USING 1 LINE OF CODE”* THE LINE:
@n8dev
@n8dev 3 жыл бұрын
lmaooo
@legends389
@legends389 3 жыл бұрын
Awesome =D I just love the "AASDEE" keyboard footage you use on all of your vids lol
@n8dev
@n8dev 3 жыл бұрын
LOL thanks :D
@iandoesallthethings
@iandoesallthethings Жыл бұрын
Fun fact, compilers (including JIT compilers for interpreted languages like Javascript) already condense code to 1 line! So really, the entire front end of KZbin is probably only 1 line of code too.
@jkking3213
@jkking3213 3 жыл бұрын
ctrl + s moment: 3:28
@n8dev
@n8dev 3 жыл бұрын
oh yes
@Anonymous-zp4hb
@Anonymous-zp4hb Жыл бұрын
Blinking animation is nice and easy especially when your player's eyes are just straight monochrome lines. That tiny detail adds so much character imo.
@zachemotcta5798
@zachemotcta5798 2 жыл бұрын
His game with only 1 line of code is better than all my games💀
@n8dev
@n8dev 2 жыл бұрын
💀💀💀
@Themasterofkeys.
@Themasterofkeys. 2 жыл бұрын
2:27 "because the player oveesly is not a spike" That looks like a spike to me......
@n8dev
@n8dev 2 жыл бұрын
Triangle != spike 🥲
@naseemgharibi
@naseemgharibi 3 жыл бұрын
damn man this game looks cool!, for real upload it on steam or whatever and let's play it
@n8dev
@n8dev 3 жыл бұрын
haha thank you; this game is not good enough for steam though ;)
@vinodkumarakula6807
@vinodkumarakula6807 3 жыл бұрын
"How to make a game in one line of code" 1. Write code. 2. Remove all the spaces.
@n8dev
@n8dev 3 жыл бұрын
nahhhhh that’d be cheating ;)
@vinodkumarakula6807
@vinodkumarakula6807 3 жыл бұрын
@@n8dev haha
@cmyk8964
@cmyk8964 3 жыл бұрын
/ //
@ailuromantic
@ailuromantic Жыл бұрын
im a big fan of the random shots of u making urself breakfast
@luucy025
@luucy025 3 жыл бұрын
tutorial:oh dont worry the code is just one line the one line:
@n8dev
@n8dev 3 жыл бұрын
LOL
@dl5498
@dl5498 3 жыл бұрын
0:55 why is this here
@n8dev
@n8dev 3 жыл бұрын
:o
@m1toz1k
@m1toz1k 3 жыл бұрын
YandereDev: **laughs in 170+ lines for a fucking clock**
@n8dev
@n8dev 3 жыл бұрын
LOL
@SoleiLilyn
@SoleiLilyn 3 жыл бұрын
this is why modules exist yandev!
@pudding2675
@pudding2675 3 жыл бұрын
I swear, at some point he just asked himself, sleepdeprived at 4:50am: So, how many if statements can I actually nest and get away with?
@AsATeen
@AsATeen 3 жыл бұрын
You deserve more than 900 subscribers, 900k should do fine! YOU'RE AWSOME!!!!
@n8dev
@n8dev 3 жыл бұрын
thanks so much :D
@dollboy4113
@dollboy4113 3 жыл бұрын
"Simply write the code and then merge all the lines" - vim user that haven't seem the light in months
@n8dev
@n8dev 3 жыл бұрын
LOL
@MsChestnutter1
@MsChestnutter1 3 жыл бұрын
2:55 I play basketball a lot and I can confirm that white circles do emit from your feet when you jump
@n8dev
@n8dev 3 жыл бұрын
LOL good to know
@badgerfish7
@badgerfish7 Жыл бұрын
Man these images are actually really nice looking
@zarifahmed5192
@zarifahmed5192 2 жыл бұрын
The funny thing is yandere dev is basically doing this exact thing for the student ID system 2:31
@n8dev
@n8dev 2 жыл бұрын
💀💀💀💀
@x10creeper52
@x10creeper52 3 жыл бұрын
3:45 sorry, I'll only like if I dislike I didn't like it But I liked it
@n8dev
@n8dev 3 жыл бұрын
I am confused LOL
@AuxenceF
@AuxenceF 3 жыл бұрын
The real fun start when you do one liners in python
@n8dev
@n8dev 3 жыл бұрын
haha yeah
@EmergencyTemporalShift
@EmergencyTemporalShift 3 жыл бұрын
Waaaaait.
@AuxenceF
@AuxenceF 3 жыл бұрын
You can make a loop with a recursive function, there is an inline if and you can store variables as parameters of the function, so its kind of doable
@intenstudios9882
@intenstudios9882 Жыл бұрын
the best part of the video was the dog
@n8dev
@n8dev Жыл бұрын
yes
@hughobyrne2588
@hughobyrne2588 Жыл бұрын
White circles come out of the feet, when the player jumps? I can't be the only one who saw that animation as a fart. Really, I can't be. ... Am I?
@n8dev
@n8dev Жыл бұрын
Lolll
@AlexTheGamer69
@AlexTheGamer69 Жыл бұрын
This is not one line of code. Any code can be written like this if you just remove the white spaces. One line of code should mean 1 statement which ends in a semicolon.
@Harrythe_dukeof_WIZARDS
@Harrythe_dukeof_WIZARDS Жыл бұрын
You may be at the bottom but I found you
@Tovosx2
@Tovosx2 Жыл бұрын
Can u make a game work with one line of code?
@AlexTheGamer69
@AlexTheGamer69 Жыл бұрын
@@Tovosx2 not sure if it's possible in Unity. Maybe something under 5 or 10 lines would be more feasible.
@creationgamers
@creationgamers 3 жыл бұрын
I saw this 1000 times but still find it funny
@n8dev
@n8dev 3 жыл бұрын
haha love that
@aw1lt
@aw1lt 3 жыл бұрын
i am excited to see this
@n8dev
@n8dev 3 жыл бұрын
awesomeeeee
@hikagee
@hikagee 2 жыл бұрын
This project tells us that you really like triangles
@n8dev
@n8dev 2 жыл бұрын
I love triangles
@gholesoul5810
@gholesoul5810 3 жыл бұрын
0:45 flexing nails or something? KEKW
@n8dev
@n8dev 3 жыл бұрын
LOL
@saftigebadewanne5650
@saftigebadewanne5650 3 жыл бұрын
Although I only code VERY simple stuff I can feel the pain!
@n8dev
@n8dev 3 жыл бұрын
LOL
@teamcyeborg
@teamcyeborg 2 жыл бұрын
This is a terrible idea and I love it. Very interesting decision to make art before the game itself, heh.
@n8dev
@n8dev 2 жыл бұрын
Lmaooo thank you
@shambhav9534
@shambhav9534 3 жыл бұрын
The compiler uses the ; and the characters get thrown away so every program(if ) is technically a one liner.
@n8dev
@n8dev 3 жыл бұрын
of course; I figured everyone else would interpret “one line” as “one row” like I did :)
@DeerJerky
@DeerJerky 3 жыл бұрын
in4 Unity says "exception on line 2" after you just finished writing a complicated portion of the code on line 1.
@n8dev
@n8dev 3 жыл бұрын
LOL
@mmh5419
@mmh5419 Жыл бұрын
Back in high school a teacher was talking about how inefficient my project was due its (aprox) 1500 lines of code it had. I made some jokes about deleting all the spaces between each one with friends but never image someone would actually do it. Congrats for your super efficient game 🤘👍
@n8dev
@n8dev Жыл бұрын
Lmaooo thank you
@TheCaptainMoo
@TheCaptainMoo 3 жыл бұрын
Ohohoh yes, I can't wait
@n8dev
@n8dev 3 жыл бұрын
:D
@Marloobie
@Marloobie 3 жыл бұрын
Amazing that I've seen you reply to almost every comment I've seen. Also great work on the video. I may try and get into coding just so I can do something similar as a gag.
@n8dev
@n8dev 3 жыл бұрын
thanks! I would definitely try and learn programming, it’s opened up a ton of doors for me :)
@skurneha7163
@skurneha7163 2 жыл бұрын
literally everybody who's ever touched a piece of programming software: **Unintelligible screeching**
@n8dev
@n8dev Жыл бұрын
LMAO
@thespeedyyoshi
@thespeedyyoshi 2 жыл бұрын
Hecka professional editing ^w^ Love the random B-roll at times to break up the video just a bit.
@n8dev
@n8dev 2 жыл бұрын
:D
@fehlercode03
@fehlercode03 3 жыл бұрын
I love how this video is 4:04 minutes long
@n8dev
@n8dev 3 жыл бұрын
haha same
@proloycodes
@proloycodes 3 жыл бұрын
3:52 captions: "like if you dislike" 😂😂
@n8dev
@n8dev 3 жыл бұрын
well that’s actually what I said haha
@proloycodes
@proloycodes 3 жыл бұрын
@@n8dev oh nvm😅
@JasimGamer
@JasimGamer 3 жыл бұрын
0:07 Almost all langs same😕not only C#
@n8dev
@n8dev 3 жыл бұрын
yup; python and lua are the big ones that do require newlines :)
@stickso
@stickso 2 жыл бұрын
Now trust me this is hard you have to go back and see the errors after a while its gonna get tougher
@n8dev
@n8dev 2 жыл бұрын
Haha yeah
@samanthak.2706
@samanthak.2706 3 жыл бұрын
this was a nice video!! also plus points for the doggo c:
@n8dev
@n8dev 3 жыл бұрын
haha thank you
@tristandreemurr8755
@tristandreemurr8755 2 жыл бұрын
Minecraft commands be like
@n8dev
@n8dev Жыл бұрын
Frr
@coolp7493
@coolp7493 3 жыл бұрын
I AM HERE TO YELL AT N8 BECAUSE I SAID THAT TO HIM ON DISCORD MAKE THE COMMUNITY GAME N8 WE NEED IT
@n8dev
@n8dev 3 жыл бұрын
oh yes
@Dht1kna
@Dht1kna 3 жыл бұрын
2:46, whats up with the random food
@n8dev
@n8dev 3 жыл бұрын
cooking ;)
@checktec9582
@checktec9582 Жыл бұрын
i love it when the last comment in a devlog is that "the game does not have menus or sounds and you can therefore not play it" xD 3:30
@croixwin
@croixwin 3 жыл бұрын
This video is next level!
@n8dev
@n8dev 3 жыл бұрын
thanks!
@KeidonKelley
@KeidonKelley 3 жыл бұрын
Cool! The only problem I had with this is that you didn't juggle three Rubik's cubes in one hand solving them while also typing 250 words per minute with your feet and coding all of this in under an hour typing with one hand. You know other than that this was amazing!
@KeidonKelley
@KeidonKelley 3 жыл бұрын
wait who said he didn't do all of this stuff?!
@n8dev
@n8dev 3 жыл бұрын
LOL thank you haha
@KeidonKelley
@KeidonKelley 3 жыл бұрын
@@n8dev Wow thanks for answering so fast, that usually doesn't happen, I like your content!
@n8dev
@n8dev 3 жыл бұрын
thanks :D I try to reply to everyone haha
@KeidonKelley
@KeidonKelley 3 жыл бұрын
@@n8dev Well that's good!
@bones22inthehouse
@bones22inthehouse 2 жыл бұрын
Can ihave shoutout please
@n8dev
@n8dev 2 жыл бұрын
Shoutout bones22inthehouse
@bones22inthehouse
@bones22inthehouse 2 жыл бұрын
@@n8dev YEAAA
@FREAKBAlT
@FREAKBAlT Жыл бұрын
Next project: “I made an entire game engine in one line of code”
@Nerd0.09
@Nerd0.09 2 жыл бұрын
Your such a underrated KZbinr trust me you are going to hav millions of subs soon!!!+1sub
@n8dev
@n8dev 2 жыл бұрын
🙏🙏🙏
@InfinityBS
@InfinityBS 3 жыл бұрын
I mean technically, you can put your whole game code in a function that has code stored as a text file then in the one line of code you can read that text file, convert it to code, then run it
@n8dev
@n8dev 3 жыл бұрын
sure, but then you miss out on all the pain of doing it this way lmaooo
@InfinityBS
@InfinityBS 3 жыл бұрын
@@n8dev each to their own 😅
@quickstorm8823
@quickstorm8823 3 жыл бұрын
Big brain: Code it normally then remove all the line break
@n8dev
@n8dev 3 жыл бұрын
nahhhh that's cheating ;)
I Made a Game Using ChatGPT
9:51
Rye
Рет қаралды 2,7 МЛН
Making a game where you get sucked into your own (bad) code
23:10
Robert Thomson
Рет қаралды 1,3 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 14 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
I Made My Own Game Engine
6:24
n8dev
Рет қаралды 250 М.
7 DEVS Make a GAME without COMMUNICATING! (we never saw this coming)
20:12
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
1 Year of Learning Game Development In 6 Minutes
6:01
Giedzilla
Рет қаралды 2,5 МЛН
I Made a Zero Player Game
12:30
Sam Hogan
Рет қаралды 10 МЛН
I Made a Video Game With No Computer
6:37
n8dev
Рет қаралды 273 М.
AI Learns to Speedrun Minecraft
21:30
Wifies
Рет қаралды 268 М.
Can you fit a whole game into a QR code?
20:03
MattKC
Рет қаралды 9 МЛН
Can AI Code Minecraft? Watch ChatGPT Try
8:06
BadGameDev
Рет қаралды 1,3 МЛН
I Made a VR Game with PowerPoint
10:06
Emeral
Рет қаралды 679 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН