Code Monkey home page Code Monkey logo

pixelshooter's Introduction

Pixel Shooter

A simple two-player atari game fully coded with x86 16-bit assembly.
Developed for the Microprocessor course in the college.

Description

The purpose of the game is to either kill the enemy, or to survive with more health than the enemy before the time ends (60 seconds). The health bar of each player is at the top right and left corners of the screen. At the top centre, the timer is shown. Each player shoots red bullets, which are relatively faster than the player's movement. If the bullet hits the enemy player, his health decreases (1 rectangle from the health bar is removed). Each player can move freely across his area. However, he cannot pass the Trench, or walk though the obstacles. Obstacles can be destroyed by shooting at them several times. Obstacles have their own health that decreases by each hit.

screenshot

Game Versions

Phase 1 Version

The game is played on one computer, each player has different controls, the left player moves with w-a-s-d and shoots with q.
The second player moves with the keyboard arrows and shoots with /, ofcourse the controls can be changed from the code by changing the scan code of each button.

Final Version

The game is played on two distinct computes connected with serial port or with ethernet cable.
This version supports 2 levels of playing and it also support chatting.

Download

Phase 1 Version, Final Version.
You can run the game using DOSBox on newer versions of windows,
because the game uses 16-bit registers which is deprecated for newer versions of windows.
to run the game correctly, make cpu speed on DOSBox at least 16000 cycles.
You can run the final version of the game on the same PC or on two distinct PCs.

Run the game on the same PC:

  1. Write on DOSBox options serial1 = directserial realport:COM1, save it, then open DOSBox.
  2. Write on DOSBox options serial1 = directserial realport:COM2, save it, and open a new DOSBox window.
  3. You now have two windows like if they were opend on two distinct PCs.

Run the game on two distinct PCs:

  1. Connect the two PCs by using ethernet cable.
  2. On the first PC write on DOSBox Options: serial1=nullmodem port:23
  3. On the second PC write on DOSBox Options: serial1=nullmodem server:<IPv4 PC1> port:23
  4. To know the IPv4 of the first PC, use this link

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.