feat/TD-001-init-repo
This commit is contained in:
commit
b27cbed0bb
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
# Ignore all
|
||||
*
|
||||
# Unignore all with extensions
|
||||
!*.*
|
||||
# Unignore all dirs
|
||||
!*/
|
||||
# Unignore Makefile
|
||||
!Makefile
|
||||
### Above combination will ignore all files without extension ###
|
||||
|
||||
_autobanners_m.pas
|
||||
*.swp
|
||||
*.o
|
||||
*.ppu
|
||||
|
||||
17
Makefile
Normal file
17
Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
build:
|
||||
cd src && $(MAKE)
|
||||
|
||||
play:
|
||||
cd src && $(MAKE) play
|
||||
|
||||
clean:
|
||||
cd src && $(MAKE) clean
|
||||
|
||||
# After that you can use in VIM Ctrl-] and Ctrl-^ on functions and procedures
|
||||
tags:
|
||||
ctags src/*
|
||||
cd src/ && ctags *
|
||||
|
||||
wc:
|
||||
cat src/*.pas | wc -l
|
||||
|
||||
16
README.md
Normal file
16
README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# Go Hamster
|
||||
Это калька на одноимённую игру с телефона Samsung SGH-C100, играл неё в
|
||||
далёком детстве :), решил реализовать в качестве упражнения. Инструментом
|
||||
для реализации этюда выбрал Object Pascal. Осталось доделать одну механику
|
||||
и оптимизировать перерисовку объектов. Лучше всего играть в терминале
|
||||
xterm.
|
||||
|
||||
## Сборка
|
||||
```bash
|
||||
make
|
||||
```
|
||||
|
||||
## Запуск:
|
||||
```bash
|
||||
make play
|
||||
```
|
||||
14
src/Makefile
Normal file
14
src/Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
FPC = fpc
|
||||
|
||||
GAME_SRC = gohamster.pas
|
||||
|
||||
all: gohamster
|
||||
|
||||
play: gohamster
|
||||
./gohamster
|
||||
|
||||
gohamster: $(GAME_SRC)
|
||||
$(FPC) $@.pas
|
||||
|
||||
clean:
|
||||
rm *.o gohamster
|
||||
5
src/gohamster.pas
Normal file
5
src/gohamster.pas
Normal file
@ -0,0 +1,5 @@
|
||||
program go_hamster;
|
||||
|
||||
begin
|
||||
writeln('Repo init')
|
||||
end.
|
||||
Loading…
Reference in New Issue
Block a user