GithubHelp home page GithubHelp logo

cualquiercosa327 / vga_tetris Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaczekanski/vga_tetris

0.0 0.0 0.0 3.78 MB

assembly, atmega8, software vga

License: MIT License

Shell 0.79% Assembly 97.77% C++ 1.44%

vga_tetris's Introduction

VGA Tetris - assembly, atmega8, software vga

front

Yeah, I know. Yet another tetris. But how mine clone is different?

  • Architecture - it's not a PC, smartphone or cellphone, I've created my own platform based on 8bit microcontroller
  • Code - I decided to write whole game in assembly

License: MIT

Specification

  • Processor: Atmega8 (8kB flash, 1kB SRAM)
  • Graphics: 104x120px, 16colors
  • Input: Gamepad from Pegasus (Polish Famicom clone) (8 buttons)
  • Audio: Mono, generated using PWM (unfortunately, not implemented, not enough time)

Why?

Project was made for contest on Elektroda.pl (Retro game). Contest was a good motivation for learning AVR architecture from the low level (assembly).
Also I've learned how to generate VGA image in software and I have managed to carry my project from an idea in my mind to physical, working device.

Result?

Finished and working "console" with clone of Tetris, second place in a contest, above 2000 lines of code in pure assembly, pride from finishing a project (from game project, schematics, PCB to working console).

What is so hard?

The fact, that I don't have a library like SDL or Allegro, where I call function to display image on a monitor. I don't have any functions, operating system or even something like BIOS. Everything was implemented from scratch, including video generation line by line (the graphics card job) where I had to count instruction cycle based, in other case the video becomes desynchronized or was displayed wrong. Next I've implemented high level functions like displaying a tile and later - fonts and images.

Presentation (in Polish):

https://www.youtube.com/watch?v=FwZ4Or7Z6ZU

demo top board schematics

More info (in Polish): http://www.elektroda.pl/rtvforum/topic2177246.html

Linus "lft" Akesson has made a demo on this micro - VGA display, chiptune music, awesome effects, must see! http://www.linusakesson.net/scene/craft/

Zobacz plik "vga_generacja" jeżeli interesuje cie temat generowania obrazu VGA.

vga_tetris's People

Contributors

jaczekanski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.