feat/TD-001-init-repo

This commit is contained in:
gre-ilya 2026-02-28 14:28:56 +05:00
commit b27cbed0bb
5 changed files with 67 additions and 0 deletions

15
.gitignore vendored Normal file
View 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
View 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
View File

@ -0,0 +1,16 @@
# Go Hamster
Это калька на одноимённую игру с телефона Samsung SGH-C100, играл неё в
далёком детстве :), решил реализовать в качестве упражнения. Инструментом
для реализации этюда выбрал Object Pascal. Осталось доделать одну механику
и оптимизировать перерисовку объектов. Лучше всего играть в терминале
xterm.
## Сборка
```bash
make
```
## Запуск:
```bash
make play
```

14
src/Makefile Normal file
View 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
View File

@ -0,0 +1,5 @@
program go_hamster;
begin
writeln('Repo init')
end.