Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit console config #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file modified rushhourGame/.vs/rushhourGame/v14/.suo
Binary file not shown.
Binary file modified rushhourGame/Debug/rushhourGame.exe
Binary file not shown.
Binary file modified rushhourGame/Debug/rushhourGame.ilk
Binary file not shown.
Binary file modified rushhourGame/Debug/rushhourGame.pdb
Binary file not shown.
Binary file modified rushhourGame/rushhourGame.sdf
Binary file not shown.
Binary file modified rushhourGame/rushhourGame/Debug/main.obj
Binary file not shown.
Binary file modified rushhourGame/rushhourGame/Debug/vc140.idb
Binary file not shown.
Binary file modified rushhourGame/rushhourGame/Debug/vc140.pdb
Binary file not shown.
3 changes: 2 additions & 1 deletion rushhourGame/rushhourGame/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ int main() {
DWORD _fdwSaveOldMode, _cNumRead;
GetConsoleMode(_hStdin, &_fdwSaveOldMode);
DWORD _fdwMode = ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT;
SetConsoleMode(_hStdin, _fdwMode);
_fdwMode &= ~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(_hStdin, _fdwMode | ENABLE_EXTENDED_FLAGS);
INPUT_RECORD _irInBuf[128];
while (1) {

Expand Down
Empty file.
89 changes: 0 additions & 89 deletions rushhourGame/rushhourGame/mouse.h

This file was deleted.

4 changes: 2 additions & 2 deletions rushhourGame/rushhourGame/stage.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#pragma once
#include "carBlock.h"

#include "mouse.h"
extern int _map[8][8];
class Stage {
public:

Stage(Car *car) {
car = _car;
for (int i = 0; i < 8; i++) {
Expand All @@ -18,6 +17,7 @@ class Stage {
void setCar(Car *car);
Car* getCar() { return _car; }
void drawCar(Car car,const int status);

private:
Car *_car;
};