Coder Social home page Coder Social logo

snakegame's Introduction

SnakeGame

C Language

We have to build a snake game without seeing the codes that are already available on the internet. To do that easily, I propose that it is better to build the game in versions instead of trying to build it all at once. Following are the versions that I think we should make:

  1. Create a simple code that can control the movement of a single character, say "*" (which represents the body of the snake), using wasd keys i.e. on pressing 'd', star should move one step right, on pressing 's' , it should move one step down, on pressing 'w' , it should move one step up, on pressing 'a' , it should move one step left.

    To create the code for this step, I had to again think about it in steps or 'sub-steps' we can say

    So, among the files that are uploaded on git hub, 1.0.0.1.c, 1.0.1.0.c, 1.0.1.1.c, contains the code of this step. 1.0.1.1.c contains the complete code of this step. 1.0.0.1.c, 1.0.1.0.c tells what steps I took to make 1.0.1.1.c

  2. I am currently on this version. Create a code in which the "*" (which represents the body of the snake) moves: right continuously on pressing 'd', down continuously on pressing 's', up continuously on pressing 'w', left continuously on pressing 'a', just like a snake that moves in level 1 (the snake is of size 1) of a typical snake game.

  3. Creating the food for the snake.

  4. The snake should elongate on eating the food.

Subsequesnt versions, we will think.

Happy Developing :)

snakegame's People

Contributors

dvdhruv avatar shivamag00 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.