🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Asteroids HTML edition (AsteroidZ)

Asteroidz ported from Blitzbasic to HTML

by chao51

Advertisement

This is a preview of the html version of a game called AsteroidZ, which is an Asteroids clone I made earlier on Blitzbasic.

NOTE: This is a for-fun project only. Browser support is only Edge and Chrome. It may work elsewhere, but I won't test it.

See the short video below.

https://youtu.be/VxBF2hoixRc

Test online:

https://joystickandcursorkeys.github.io/game1/examples/games/asteroids/index.html


This older Blitzbasic version is currently defunct, since it suddenly stopped working, due to something with free memory calculations.

I did not want to find another “Basic” variant, to convert it to, and neither did I want to go very low level, and go to C or C++, so I I am porting it to Javascript, with the benefit of it being multiplatform out of the box.

I did not want to use a game engine like Phaser or such. I tried with Phaser, but was just not happy, and a little bit eager to port my own minimalistic game engine, which I had written for the program, in Blitzbasic.

Current bugs that are being worked on:

#1 Asteroids get into overlapping mode, making them bounce very quickly, creating a buzzing noise. This happens offscreen, so you cannot see it.

#2 Mysterious border around the play canvas appears.

#3 Get proper music (currently it's just a random mp3 which I downloaded from a website that claimed it was royalty free).

Fun facts:

#1 The asteroids themselves were rendered some 20 years ago on my old Amiga.

#2 The background graphics are more or less a test of my html pixel drawing program called “hyperpyxel"

Last updated August 15, 2021
Status
Released
Platforms
Engine
Other
Release Date
October 26, 2020
Advertisement