Code Monkey home page Code Monkey logo

c64fireplace's Introduction

PETSCII Fireplace - Commodore 64

This is a small animated petscii fireplace written in 6502 Assembly (using Kickassembler) on the Commodore 64.

I made it mainly to learn a bit about the C64 and 6502 Assembly so this is most definetly not the most efficient way of doing it

Screenshot

How to run it

You need to install Kickassembler and run the following command:

java -jar KickAss.jar -odir ./bin entry.asm

(Replace "KickAss.jar" with the path to the assembler)

After compiling you can use VICE to run it:

x64 bin/entry.prg

You should also be able to run it on a real C64 using a Ultimate II+ or recompiling it as a Disk or Tape image (Didn't figure out how to do that).

Changing the image

Background image

The Background image was created using Petmate. You can open the PetsciiFireplace.petmate file in Petmate and export a KickAssembler assembly file named fire.asm using Petmates export menu.

Changing behaviour

The fire generation is hardcoded in assembly by generating random numbers you can change the values in entry.asm at the next: label where the probability for a character, position and color is defined.

The values at the firechars: label define the 8 possible characters that can apper, to extend or shorten this list you have to modify the RandomFireLine macro. Modifying it without changing the length can be done without changing the code.

The speed is defined by the ticktime constant.

c64fireplace's People

Contributors

feldim2425 avatar

Watchers

 avatar  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.