Skip to content

Commit 4f12ebf

Browse files
Final 3.0 Release.
1 parent e6ec990 commit 4f12ebf

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# php-roguelike
2+
![Logo](docs/images/logo.png)
23

3-
Worst game on the planet.
44

55
## What is this?
66

@@ -21,8 +21,16 @@ This game is done as a part of side-project to show'up some programming skills i
2121

2222
## Purpose
2323

24-
Ok, so I'm a middle aged PHP developer looking for a project or a job. This project should give me head start. :)
25-
Also, it's so fun to fiddle with some side-project and have a time sink for myself.
24+
It's so fun to fiddle with some side-project and have a time sink for myself. I was missing side project and playground/testing area to experiment and keep on track with everything.
25+
I'll produce a roadmap in some time to see some final goal and keep myself motivated.
26+
27+
## Influences
28+
29+
Ok, so in fact I've gathered a few ideas from different games. Most notably you'll see elements from:
30+
- Dungeons and Dragons
31+
- Fallout
32+
- ADOM
33+
- Enter the Gungeon
2634

2735
## Run & build
2836

@@ -40,6 +48,7 @@ bin/build.sh
4048

4149
## Keymap
4250

51+
See: [Keymap](https://github.com/sebastianluczak/php-roguelike/blob/feature/cities-dlc/src/Enum/Game/KeyboardMapEnum.php)
4352
```shell
4453
W/A/S/D - Movement of character
4554
I - Player Interface (WIP)
@@ -53,6 +62,8 @@ R - regenerates the level
5362
P - switches DevMode (required for some output and commands)
5463
R - regenerate a map (DEV_MODE required)
5564
M - DevRoom :D (╯°□°)╯︵ ┻━┻
65+
G - God Mode!
66+
K - Increase MapLevel
5667
```
5768

5869
## Win/Lose conditions
@@ -61,15 +72,15 @@ As all roguelikes - you'll die eventually. It's just part of the process. Your s
6172

6273
## Legend
6374

64-
There're multiple tiles with scattered logic all around the board.
75+
There are multiple tiles with scattered logic all around the board.
6576

6677
```shell
6778
# - Chest or RareChest - guaranteed drop of Item, Gold or Health Potion
6879
$ - Mysterious Man - can do good things for you
6980
* - Boss Fight - be prepared!
7081
o - Altar, drop some gold for a buff or curse
7182
```
72-
TODO: {LEGEND_OF_TILES_AND_SUMMARY_OF_MECHANICS}
83+
Go figure the rest by yourself, see [here](https://github.com/sebastianluczak/php-roguelike/tree/feature/cities-dlc/src/Model/Tile) to get started. No documentation folks :).
7384

7485
## Win strategy
7586
1. Go for Luck > 1

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"symfony/yaml": "5.3.*"
3838
},
3939
"require-dev": {
40-
"php": "*",
4140
"phpstan/extension-installer": "^1.1",
4241
"phpstan/phpstan": "^1.2",
4342
"phpstan/phpstan-doctrine": "^1.0",

docs/images/logo.png

6.82 KB
Loading

src/Service/MapService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function movePlayer(PlayerInterface $player, string $direction, int $mapL
274274
// as it's PoC i'll leave it as it is
275275
// yeah, it's simple collision detection
276276
// nice piece of work to be fair
277-
// (and I should've used cursor from the beggining...)
277+
// (and I should've used cursor from the beginning...)
278278
$xCoordinateRandom = random_int(-1, 1);
279279
$yCoordinateRandom = random_int(-1, 1);
280280
if ($this->getCityMap()->getTile($xcoordinate - $xCoordinateRandom, $ycoordinate - $yCoordinateRandom)->isPassable()) {

0 commit comments

Comments
 (0)