Skip to content

Commit eb06bec

Browse files
Merge pull request #40 from sebastianluczak/feature/cities-dlc
Feature/cities dlc
2 parents adf2791 + 4f12ebf commit eb06bec

File tree

1,107 files changed

+149850
-5306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,107 files changed

+149850
-5306
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@
1010
/.idea
1111
/db/data/*
1212
###< symfony/framework-bundle ###
13+
14+
###> friendsofphp/php-cs-fixer ###
15+
/.php-cs-fixer.php
16+
/.php-cs-fixer.cache
17+
###< friendsofphp/php-cs-fixer ###
18+
19+
###> squizlabs/php_codesniffer ###
20+
/.phpcs-cache
21+
/phpcs.xml
22+
###< squizlabs/php_codesniffer ###

.php-cs-fixer.dist.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in(__DIR__)
5+
->exclude('var')
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@Symfony' => true,
11+
])
12+
->setFinder($finder)
13+
;

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM php:7.4-cli
22
COPY . /app
33
WORKDIR /app
44
RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable mysqli
5+
RUN pecl install xdebug && docker-php-ext-enable xdebug
56
RUN apt update
67
RUN apt install -y wget netcat zip
78
RUN wget -O composer-setup.php https://getcomposer.org/installer

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

bin/analyze.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
vendor/bin/php-cs-fixer fix src/
3+
vendor/bin/phpstan analyse src

composer.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,35 @@
1313
"doctrine/doctrine-bundle": "^2.4",
1414
"doctrine/doctrine-migrations-bundle": "^3.2",
1515
"doctrine/orm": "^2.10",
16+
"friendsofphp/php-cs-fixer": "^3.3",
1617
"fzaninotto/faker": "^1.9",
1718
"irfa/php-gatcha": "^2.1",
1819
"myclabs/php-enum": "^1.8",
1920
"nesbot/carbon": "^2.54",
21+
"phpdocumentor/reflection-docblock": "^5.3",
2022
"porthou/dicebag": "^0.1.0",
23+
"squizlabs/php_codesniffer": "*",
2124
"symfony/console": "5.3.*",
2225
"symfony/dotenv": "5.3.*",
2326
"symfony/flex": "^1.3.1",
2427
"symfony/framework-bundle": "5.3.*",
2528
"symfony/messenger": "5.3.*",
2629
"symfony/monolog-bundle": "^3.7",
30+
"symfony/property-access": "5.3.*",
31+
"symfony/property-info": "5.3.*",
2732
"symfony/proxy-manager-bridge": "5.3.*",
2833
"symfony/redis-messenger": "5.3.*",
2934
"symfony/runtime": "5.3.*",
35+
"symfony/serializer": "5.3.*",
3036
"symfony/validator": "5.3.*",
3137
"symfony/yaml": "5.3.*"
3238
},
3339
"require-dev": {
34-
"php": "*",
35-
"symfony/maker-bundle": "^1.34"
40+
"phpstan/extension-installer": "^1.1",
41+
"phpstan/phpstan": "^1.2",
42+
"phpstan/phpstan-doctrine": "^1.0",
43+
"symfony/maker-bundle": "^1.34",
44+
"timeweb/phpstan-enum": "^3.0"
3645
},
3746
"config": {
3847
"optimize-autoloader": true,
@@ -66,7 +75,8 @@
6675
],
6776
"post-update-cmd": [
6877
"@auto-scripts"
69-
]
78+
],
79+
"php-cs-fixer": "php-cs-fixer --config=./.php_cs"
7080
},
7181
"conflict": {
7282
"symfony/symfony": "*"

0 commit comments

Comments
 (0)