Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Srb František
Cpp-Game
Commits
f80ea3c4
Commit
f80ea3c4
authored
May 28, 2021
by
Srb František
Browse files
Merge branch 'master' of gitlab.mff.cuni.cz:srbf/cpp-game
parents
5c3573a1
00fbf2e6
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
0 → 100644
View file @
f80ea3c4
Cílem hry je proklouznout mezi hlídači a najít cíl (žlutý kříž)
Ovládání:
*
W/S - pohyb dopředu/dozadu
*
A/D - točení do leva/prava
*
Space - položení sonaru (položení nového odstraní starý)
Vlastní mapy v .txt:
(všechny čísla jsou zadávána celočíselně, složky barev pak čísly v rozmezi [0,255])
1.
map_width map_height
2.
player_start_x player_start_y
3.
goal_x goal_y
4.
_(optional/multiple - Enemies)_
1.
E
2.
Red Green Blue
3.
_(multiple - path by points)_
1.
point_x point_y
2.
wait_time _(in tenth of seconds)_
5.
--- _(triple dashes - start of building objects)_
6.
_(optional/multiple - Walls/Buildings)_
1.
--- _(triple dashes - start of new building)_
2.
Red Green Blue
3.
_(multiple(min=2) - walls by points)_
1.
point_x point_y
Příklad je v CppGame/map1.txt
Debug mode lze přepínat pomocí řádku 12 v souboru CppGame/Scene.h
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment