Create Snake Game C#

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 55

  • @beeondandelion
    @beeondandelion 3 года назад +5

    Hands down one of the best codes I have seen. I mean it has a small bug or two but it's really easy to understand and to change it however I want to. Thanks!

  • @avataric2901
    @avataric2901 4 года назад +18

    This is a really cool video! I’ve been learning C# for a little bit now, but I can’t fully understand everything you are doing. Can you make a lengthier video where you explain what you do?

  • @mattbritton6222
    @mattbritton6222 3 года назад +1

    Thanks @Ahmad Kandil. A nice project, and easy to follow video. And a good result - works great, exactly as it should.

    • @mattbritton6222
      @mattbritton6222 3 года назад

      My only feedback would be;
      1. Comment your code
      2. Where you say Snake[Front] = Snake[Back] this was a very clever solution, but sometimes what is clever and elegant is less useful than what is clear and easy to follow. Comments would help, or use a simpler (less clever) solution.
      3. Thanks so much for sharing...you have done well.

  • @diesel42069
    @diesel42069 3 года назад +2

    how do you move it? for some reason for me it doesnt move. i tried the whole keyboard and everything

  • @depressedutchman
    @depressedutchman 3 года назад +6

    hi, great video. for me a beginner programmer it goes a little fast tho.

  • @mr.chururutskipmakliw7767
    @mr.chururutskipmakliw7767 3 года назад +1

    I encode it properly but the snake is not moving when a press da arrows keys, Anyone who can help me? Thanks

  • @vrg17_
    @vrg17_ 5 месяцев назад

    Hi, Timer timer = new Timer(); it says error and the snake isn't moving and i don't know why, can someone help me?

  • @dhruvpillay4109
    @dhruvpillay4109 4 года назад +3

    Would be more ironic if it were on python

  • @VeikkoRuopio1983BazzDog
    @VeikkoRuopio1983BazzDog 2 года назад

    Can u help me?? When food spaws second time my worm can`t pick it.

  • @reidswan9601
    @reidswan9601 4 года назад +5

    1:45 what is that menu. I’ve been going crazy over it. What did you open there

    • @A2andil
      @A2andil  4 года назад +5

      in visual studio 2019, it open automatically

    • @Pilgrim182
      @Pilgrim182 3 года назад

      @@A2andil Is it possible to use Visualstudio 2013??

    • @A2andil
      @A2andil  3 года назад

      @@Pilgrim182 i think it's possible

    • @Pilgrim182
      @Pilgrim182 3 года назад +1

      @@A2andil thanks!

  • @krish5840
    @krish5840 4 года назад

    if you want to run it first download c# form visual studio because then it cannot run on chrome or edge they are the preinstalled running apps so download that and use terminal to run

  • @renukamboj567
    @renukamboj567 3 года назад

    Got an error -
    error while trying to run project could not load file or assembly 'snake' or one of its dependencies. The module was expected to contain an assembly manifest.
    Please solve it

    • @A2andil
      @A2andil  3 года назад +1

      download Games and you'll find snake game
      Link in description

  • @stupidthingsnetwork
    @stupidthingsnetwork 2 года назад

    how can i improve the controls and how can i add a restart function

  • @jakubdlouhy1002
    @jakubdlouhy1002 3 года назад +1

    Hi, could you make something like restart button, so when you lose, you can play next one?

  • @davide7764
    @davide7764 2 года назад

    hi, could you explain what it is boll[,] = visit ?

  • @luisyepez221
    @luisyepez221 11 месяцев назад

    THANKS

  • @aaronwye4585
    @aaronwye4585 3 года назад +1

    why when i go to change the with, it goes back to 0 may i ask ?

    • @SW-uk3mg
      @SW-uk3mg 3 года назад +1

      Add a space in the text box

    • @JacobJacob2
      @JacobJacob2 3 года назад

      Turn off Auto Size, it's at the top of the properties.

  • @TyClarkHTX
    @TyClarkHTX 4 года назад

    When I create a windows forms it pops up a script instead of a blank page like yours so I'm lost from the start

    • @csabadezsi7950
      @csabadezsi7950 4 года назад +1

      r u sure u used Windows Forms Net.Framework? And not ConsoleApp Net.Framework?

  • @hassanghani7131
    @hassanghani7131 3 года назад

    Brother can you tell me how to access the code on my visual studio

  • @leonsimic2585
    @leonsimic2585 3 года назад

    Can someone say what is the use of this available list? What does it do?

    • @A2andil
      @A2andil  3 года назад +1

      all blocks except snake body blocks

  • @MrHL5
    @MrHL5 3 года назад

    i didnt understand single thing. i only know syntax of c#

  • @marcosMaxherculano
    @marcosMaxherculano 9 месяцев назад

    Como eu faço para ter a matéria em PDF?

  • @Mr_Cawed
    @Mr_Cawed 2 года назад

    tanks bro 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰👏

  • @minecraftnub8891
    @minecraftnub8891 2 года назад

    is is lbl?

  • @ruppokemon2560
    @ruppokemon2560 2 года назад

    how do you make it restart once you lose?

    • @A2andil
      @A2andil  2 года назад

      the easiest way, you can call Initial method inside GameOver method

    • @ruppokemon2560
      @ruppokemon2560 2 года назад

      @@A2andil i get that but idk how to really code

    • @A2andil
      @A2andil  2 года назад

      @@ruppokemon2560 you can handle this in hit method, move method if is game over
      and don't forget to reset all global variables

  • @faisal.k01
    @faisal.k01 3 года назад +1

    6:36

  • @hussamel-hwary8037
    @hussamel-hwary8037 10 месяцев назад

    Wow, nice video

  • @Hari-gt6lv
    @Hari-gt6lv 4 года назад

    Good video. I expect a lot c# project from you

    • @A2andil
      @A2andil  4 года назад +1

      thank you.

  • @thienlaptrinh5041
    @thienlaptrinh5041 4 года назад +1

    Can i have your code, please ?

    • @A2andil
      @A2andil  4 года назад +1

      Link in description

    • @thienlaptrinh5041
      @thienlaptrinh5041 4 года назад +1

      @@A2andil but i can't download in that link. Can you help me ?

    • @A2andil
      @A2andil  4 года назад +1

      link: codeload.github.com/A2andil/Games/zip/master

    • @thienlaptrinh5041
      @thienlaptrinh5041 4 года назад +1

      @@A2andil Thank you very much

  • @israelrios8166
    @israelrios8166 4 года назад

    great video. more code and less talk.

  • @rafa-xg2nj
    @rafa-xg2nj 2 года назад

    Que programa es este?

  • @jhud8575
    @jhud8575 3 года назад

    Very Cool!

  • @MenaRamyEnaeet2512
    @MenaRamyEnaeet2512 4 года назад

    3a4 and keep going