Code Monkey home page Code Monkey logo

retro-snake's Introduction

Retro-Snake Easyx版本 运行环境VS2017

部分文件说明

Easyx 版本: EasyX库(附带graphics.h) 2018春分版 (2018-3-21)

Github查看代码会有乱码 代码格式为GBK ( VS默认字符集。。。)

Snakeprev.h**

  1. 蛇节点声明 struct snake;
  2. 蛇存储结构链表 snake * snakelist(int,int*);
  3. 增加节点方法 void addsnake(snake *);
  4. 绘画蛇身 void drawsnake(snake *,char);
  5. 清空蛇 void clearsnake(snake *);

mapgraph.h

主要是页面布局 背景(box map)的制作 布局

main.cpp

主要方法如下

void welcomegraph();//欢迎界面
void Finish();//结束界面
int clickcontrol();//鼠标控制
void Movingsnake(char);//蛇身移动控制
void Changesnakebody(int ,int );//蛇身改变控制
void Eating();//吃到食物的操作
int Deadjudge();//死亡判断

运行截图

  • Start

Start

  • Run

Run

  • Over

Over

注意事项及运行说明

WASD: 来操控蛇的上下左右移动 注意打开英文输入
初始界面: 用户名及密码只是模拟 回车键确定输入
EXE目录: exe文件在debug目录下 release发布因为其优化运行出错
To Be Continue...

Easyx 下载地址 https://www.easyx.cn/downloads/
更新 2018-9-10

retro-snake's People

Contributors

anonymity-5316 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.