Skip to content

Commit

Permalink
Implement release tools
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Jul 31, 2019
1 parent 8dd35cc commit 8269e5c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pinpog
pinpog
pinpog-*
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
VERSION=1.0

.PHONY: all
all: pinpog
qemu-system-i386 -monitor stdio pinpog

pinpog: pinpog.asm
nasm pinpog.asm -o pinpog

.PHONY: dist

dist: pinpog-$(VERSION).tgz pinpog-$(VERSION).zip

pinpog-$(VERSION): pinpog README.release.md
mkdir pinpog-$(VERSION)
cp pinpog pinpog-$(VERSION)/
cp README.release.md pinpog-$(VERSION)/README.release.md

pinpog-$(VERSION).tgz: pinpog-$(VERSION)
tar fvc pinpog-$(VERSION).tgz pinpog-$(VERSION)/

pinpog-$(VERSION).zip: pinpog-$(VERSION)
zip -r pinpog-$(VERSION).zip pinpog-$(VERSION)

.PHONY: clean
clean:
rm pinpog
41 changes: 41 additions & 0 deletions README.release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# PinPog

Our goal is to write a game that fits into 512 bytes bootloader and
works in 16 bit real mode on any IBM PC compatible machine without any
Operating System.

- Development is done on https://twitch.tv/tsoding
- Archive of the streams: https://www.twitch.tv/collections/VAcjkyTlqRVXuA

## Run the game in QEMU

Install [qemu](https://www.qemu.org/) first.

```console
$ qemu-system-i386 pinpog
```

## Making Bootable USB stick on Linux

**WARNING! THE AUTHORS OF THE GAME ARE NOT RESPONSIBLE FOR ANY DAMAGED
HARDWARE. SEE LICENSE FOR MORE INFORMATION.**

1. Get a USB stick (at least 512 bytes Kappa)
1. Plug it in
1. Find the block device of the USB drive using something like
[lsblk](https://linux.die.net/man/8/lsblk)
1. Use [dd](https://linux.die.net/man/1/dd) to write the image to the
USB drive: `sudo dd if=./pinpog of=/dev/<usb-drive>`

## Controls

- `a`, `d` - move racket sideways,
- `f` - restart the game,
- `space` - toggle pause.

## Support

You can support my work via

- Twitch channel: https://www.twitch.tv/subs/tsoding
- Patreon: https://www.patreon.com/tsoding

0 comments on commit 8269e5c

Please sign in to comment.