Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

DEV C++ if you can push the box Mini Game

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

DEV C++ if the realization of push box Mini Game, many novices are not very clear, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

Push box Mini Game (based on DEVC++)

# include#include#include#include using namespace std;void Game_Menu (HANDLE hout); void Game_description (HANDLE hout); void gotoxy (HANDLE hout, int x, int y); int DrawMap (HANDLE hout); void Move (HANDLE hout); int finish (); void setmap (int n); void color (int m); bool flag = true;int pass = 1; define R 10#define C 10#define framex 20#define framey 14 int map [R] [C] = {0} / / checkpoint 1 int map1 [R] [C] = {{0ret 0pr] [C] = {{0pr] [C] = {{0ret 0pr] [C] = {{0ret 0pr] [C] = {{0pyrrt0], {0pje 3je 3pm 1pm 0}, {0pr 0pm 1pm 1pm 1pm 1}, {1pr 1pm 4pm 4pm 1pm 1pm 1}, {1pm 1pm 5pm 5pm 5pm 1pm 0Q 0}, {0remie 0remiere 0rem 1pm 1pm 0pm 0} / Map 2 (checkpoint 2) int map2 [R] [C] = {{1pome 1PM 0pm 0PM 0pm 0pm 0}, {1PM 5PM 0PM 0PM 0PM 0}, {1PM 4PM 4PM 1PM 1PM 1PM 0}, {1pm 0PM 4PM 1PM 1pm 3pm 1PM 0}, {1pm 1PM 0pm 0pm 1PM 3PM 3pm 0}, {0PM 1J 0J 0J 0J 0rec 3pm 3pm 0}, {0PM 1J 0J 0J 3pm 3pm 0}, {0J 1J 0J 0J 0J 3pm 3pm 0}, {0pm 0rem 0rem 0rem 0}, {0co co mlmmmcet 0rem 0rem 0}, {0pr et et 1pr 1pr 0} {0pr 1pr 1pr 0QI 0QI 0} / Map 3 (checkpoint 3) int map3 [R] [C] = {{0pyrrt0] int map3 [R] [C] = {{0pyrrt0] [R] [C] = {{0meme0pyrrhen1}, {0pje 1pje 1pje 1pje 1pyrr1}, {0pr 0pr 1}, {0pr 0pr 4pr 4pr 4pr 4e 0pr 4pm 0pr 1}, {1pr 1jue 4je 4je 1pm 1pm 1}, {1pr 1jue 4J 0je 1pm 1pm 1}, {1pr 1pr 0rem 0rem 0rem 1}, {1pr 1pr 1pr 0},} Void Game_Menu (HANDLE hout) {/ / Game start menu system ("cls"); gotoxy (hout, framex, 1); cout

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report