Skip to content

Commit

Permalink
added timtris (broken)
Browse files Browse the repository at this point in the history
  • Loading branch information
leuat committed Apr 12, 2024
1 parent 163d313 commit c007851
Show file tree
Hide file tree
Showing 33 changed files with 2,432 additions and 0 deletions.
50 changes: 50 additions & 0 deletions Publish/tutorials/TIM/timtris/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore

# Node artifact files
node_modules/
dist/

# Compiled Java class files
*.class

# Compiled Python bytecode
*.py[cod]

# Log files
*.log

# Package files
*.jar

# Maven
target/
dist/

# JetBrains IDE
.idea/

# Unit test reports
TEST*.xml

# Generated by MacOS
.DS_Store

# Generated by Windows
Thumbs.db

# Applications
*.app
*.exe
*.war

# Large media files
*.mp4
*.tiff
*.avi
*.flv
*.mov
*.wmv

43 changes: 43 additions & 0 deletions Publish/tutorials/TIM/timtris/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# TimTris v0.9

This repository contains source code written in [TRSE](https://lemonspawn.com/turbo-rascal-syntax-error-expected-but-begin/) by Nicolaas Groeneboom.

TimTris is a Tetris clone for TIM-011, school computer from Ex-Yugoslavia. Original Tetris is by Alexey Pajitnov.

Game uses graphics libraries written by me, and file libraries partially adapted from MESCC code by Miguel Garcia Lopez, both part of TRSE.

PTX Player is by S.V.Bulba, adapted to TIM-011 by Marko Šolajić. To compile it, you'll need [ZASM](https://k1.spdns.de/Develop/Projects/zasm/Distributions/).

"Tetris 2 Red Dawn" music is by Frantisek Fuka.

Many thanks to Marko for helping with various TIM stuff and Mićko for TIM-011 MAME emulator!

## Requirements

Working TIM-011 (there maybe 10 or less left in the world, so not a huge crowd) with AY sound card (needed if you wan to hear music).

Oooor...

MAME emulator, compiled from latest GitHub source, version 0.263 or later.

## Running

On real machine, after boot, type <r> <Return> to start it, and switch to lower case letters if needed.

On emulator, run it with:

```
mame tim011 -window -v -r 720x512 -switchres -exp ay -flop1 <image_name>.img
```

and do the same as on a real machine.

NOTICE: Computer needs around 30-40 seconds before anything shows on screen, so be patient!

## TODO

* File library still cannot save content, needs debugging/fixing (so high score cannot be saved)
* Adjustments to graphics (mostly cropping)
* Adding cursor keys as input (not yet fully supported by emulator)
* Game sometimes freezes/exits, but that one is so far observed only in emulator, not on real machine, needs more investigating

6 changes: 6 additions & 0 deletions Publish/tutorials/TIM/timtris/ayplayer/make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Uses https://k1.spdns.de/Develop/Projects/zasm/Distributions/

./zasm ptxplay.asm -o ptxplay.bin

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit c007851

Please sign in to comment.