Git Product home page Git Product logo

tinysnake-game's Introduction

๐Ÿ TinySnake

Little game "Snake" for Windows in C (.EXE size is 3.5 kilobytes)

Requirement Minimum
Operating system Windows 95
Processor Any 1 GHz CPU
Memory 1 mb
Hard drive space 3.5 kb free

A little about the gameplay

  • The borders do not kill the snake, but teleport to the other side of the map
  • 10 points for each apple
  • Use the English keyboard layout to control
  • Don't resize the window during gameplay if you don't want to break the renderer
  • You have to enjoy the game

Enjoy! ;)

tinysnake-game's People

Contributors

dosx-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tinysnake-game's Issues

EXE works, code doesnt

I tried executing the code with VSCode's Terminal and the real one, but yet i get this error (gcc):
snake.c:11:9: warning: "FOREGROUND_BLUE" redefined
11 | #define FOREGROUND_BLUE 0x01
| ^~~~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/windows.h:74,
from snake.c:8:
C:/msys64/mingw64/include/wincon.h:119:9: note: this is the location of the previous definition
119 | #define FOREGROUND_BLUE 0x1
| ^~~~~~~~~~~~~~~
snake.c:12:9: warning: "FOREGROUND_GREEN" redefined
12 | #define FOREGROUND_GREEN 0x02
| ^~~~~~~~~~~~~~~~
C:/msys64/mingw64/include/wincon.h:120:9: note: this is the location of the previous definition
120 | #define FOREGROUND_GREEN 0x2
| ^~~~~~~~~~~~~~~~
snake.c:13:9: warning: "FOREGROUND_RED" redefined
13 | #define FOREGROUND_RED 0x04
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/wincon.h:121:9: note: this is the location of the previous definition
121 | #define FOREGROUND_RED 0x4
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib/libmingw32.a(lib64_libmingw32_a-crtexewin.o): in function main': C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexewin.c:67:(.text.startup+0xbd): undefined reference to WinMain'
collect2.exe: error: ld returned 1 exit status

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.