OS4 DepotLogo by Marko 
(anonymous IP:,2219) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Development » Library » Misc » libcrtxy.lha


Description: Line-drawing lib for creating retro arcade games.
Download: libcrtxy.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 956kb
Version: 0.0.1
Date: 06 Aug 2008
Author: Bill Kendrick, AmigaOS 4.0 compile by Spot / Up Rough
Submitter: Spot / Up Rough
Email: spot/triad se
Homepage: http://libcrtxy.sf.net/
Category: development/library/misc
License: LGPL
Distribute: yes
Min OS Version: 4.0
FileID: 3921
Comments: 0
Snapshots: 2
Videos: 0
Downloads: 147  (Current version)
147  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
                     README for libcrtxy (CRT X-Y Library)

                  by Bill Kendrick <bill()newbreedsoftware.com>

                         July 29, 2008 - August 3, 2008
                                 Version: 0.0.1



   "libcrtxy" is meant to allow game programmers to develop
   vector-graphics-style games like those from the late 1970s and early 1980s
   (some examples: 'Lunar Lander', 'Asteroids', 'Red Baron', 'Star Wars',
   'BattleZone', 'Quantum', 'Boxing Bugs', 'Speed Freak', 'Star Castle',
   'Black Widow', 'Star Trek', 'Tempest', and 'War of the Worlds'.*)

   It is named after the so-called "X-Y" arcade game displays, such as the
   "Quadrascan" (created by Wells Gardner) and "Amplifone" monitors used in
   Atari vector-based games.*

   I am creating this library with the intent to port a number of my own
   games (clones inspired by classic arcade games) to it: ICBM3D, Vectoroids,
   3D Pong.

   Helper functions are also included for doing fixed-point math (useful
   since your canvas size is not necessarily your screen size, and can be
   used for sub-pixel movement) and trigonometry (since most vector-based
   games involve things rotating).

   * Names are trademarks of their respective trademark and copyright


   libcrtxy is being built on top of libSDL, the Simple DirectMedia Layer
   library (http://www.libsdl.org/), and therefore uses it (and SDL_Image for
   bitmap loading) as a backend. It should be reasonable for someone to
   develop an SDL+OpenGL backend for accelerated graphics.

   libcrtxy really only lets the programmer do two things:
    1. set a background color, and optional background overlay image
       (consider translucent colored overlays in arcade games like 'Star
       Castle' and 'War of the Worlds', and the overlays for games on the
       Vectrex home video game system)
    2. draw lines (vectors) on the screen

   For events (keyboard, mouse, joystick, etc.), your event loop, sound
   effects, etc., you use SDL functions and types directly. For video
   initialization, loading and displaying of bitmaps, and drawing vectors,
   libcrtxy's "XY_" functions and types should be used.


   Depending on the target system (e.g., a high-powered desktop PC or an
   embedded handheld system with a slow CPU and no FPU), various options can
   be set in libcrtxy. On a slow system, fancy visual effects intended to
   simulate an arcade experience can be disabled (anti-aliasing, blurring,

   Screen-size shouldn't matter to game-play, so physical screen size in
   pixels (e.g., 640x480 or 1280x1024) is up to the end-user, or person
   packaging your software for a particular target, as well. Your game logic
   is based around a virtual canvas size, and line positions are given using
   fixed-point values.

   The options that can be set at runtime include:
     * Display settings:
          * Screen width & height
          * Screen depth (16bpp, 24bpp or 32bpp)
          * Window or fullscreen (requested or required)
     * Rendering quality:
          * Alpha blending (on, off, or "fake")
          * Anti-aliasing
          * Backgrounds
          * Bitmap scaling (fast or best)
     * Special effects:
          * Blurring
          * Additive effect

   The options that get used are determined by the following, and should
   occur in this order:
    1. Hard-coded defaults (set at the time libcrtxy is compiled)
    2. System-wide "libcrtxy" configuration file (e.g.,
    3. User's own "libcrtxy" configuration file (e.g., "~/.libcrtxyrc")
    4. Environment variables (e.g., "CRTXY_SCALE=FAST")
    5. System-wide configuration file for the application (e.g.,
    6. User's own configuration file for the application (e.g.,
    7. Command-line arguments (e.g., "some_game --crtxy-bpp 32")

Copyright © 2004-2024 by Björn Hagström All Rights Reserved