Coder Social home page Coder Social logo

hauntedhouse's Introduction

Haunted House

An excercise in porting a C64 BASIC adventure to XC=BASIC.

C64 BASIC is based on Microsoft BASIC.

XC=BASIC is a dialect of C64 BASIC which cross compiles to 6502 machine code through the DASM macro assembler.

The project ports a slighltly modified version of the text adventure "Haunted House", first published in the Usborne book Write Your Own Adventure Programs For Your Microcomputer(1983). The adventure was written for the VIC 20, but I chose to use it as it is a simple program to understand. If you are curious, there are other books in the series with larger adventure games. Check 'em out!

IDE Setup

There are 2 source files of interest in this project. The first is the original C64 BASIC version, the second is the XC=BASIC port. Though not neccessary, each uses a different IDE to ease development.

The C64 BASIC IDE is CBM prg Studio developed by Arthur Jordison. It is a labour of love, and a most satisfying IDE for this purpose. Download it and please consider donating to the project if you find it useful. I know I have!

Use either VICE or Hoxs64 for C64 emulation. Either works well. Many prefer VICE, but I prefer Hox64 as it is more straight forward to use for this purpose.

Configure the path to your preferred emulator. If using Hoxs64, the "Emulator Parameters" setting in CBM prg Studio should be set to:

-autoload %prg

You can then press F5 to compile the source and build a .prg file which will then open and run it in Hoxs64.

For the XC=BASIC side, I use VSCode with the XC=BASIC langauge support plugin. It is rudimentary, but it does give syntax highlighting, snippets and directions on how to add a compile task.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

hauntedhouse's People

Contributors

nogoodboyo avatar

Watchers

 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.