Xojo game now in webpage

I have now ported the game I wrote in Xojo into JS. You can try it here
https://zonepirates.com/

WASD to move and enter to fire!

I’ve had to abandon the Xojo code as there are issues refreshing a canvas in a timer on Windows.

The web version however Is evolving.

7 Likes

The way you have programmed it is not the classical one… Also makes no sense. The is no brakes or reverse engines in the space (current S). People also are used to space-bar to fire. So I propose ASD only as turn-left, thrust, turn-right; and ENTER or SPACE-BAR to fire.

Updated, you can shoot with SPACEBAR and also S shows the thrust and plays the audio for it.

just a heads up, if you run out of power (top left bar) you will not be able to use the thrusters. You gain power by getting into close orbit of a planet.

The S key thrust is firing from some random direction, not from behind of the ship.

Well… Good luck.

I think that you should evolve discussions on some indie game dev forum. As this project is not a Xojo one anymore, at some point it will be considered too out of scope blending some light rule breaks of the forum if we extend talks in here. :wink:

1 Like

That’s why its off topic, Once the canvas object works again in Xojo Windows I will port it back. There multiple fire modes now.

a space game i made in game maker for a contest. (html5 for desktop pc)
https://gamejolt.com/games/ufo/635488
AppGameKit is also a nice tool to make simple games.

1 Like

Nice, I have kept mine at the moment to all Vector based, as i want to see if I can get it to run on an ociliscope!

i will
add to thrusters two the front for breaking.

Usually spaceships brakes just turning around 180° and thrusting.

Yes, extra thrusters just for braking is extra weight. Of course, you better hope that the gyroscopes work.

The gravity model is very accurate.

You can do this also, note the thruster will push the asteroids away from you too. They have some force which is passed on. The same with the explosions , you will see the missiles impart some of their energy into the particle system.

If you are skilful, you can get your ship and missiles into a stable orbit!


My AI adventure game creator is near completion, this is 100% in Xojo.

3 Likes

Well,I know that we are in the field of the fantasy, but in no little bit near to reality a spaceship will have thrusters for breaking a full speed ship. They may have small little ones just for directional purposes at very delicate small speed like docking somewhere.

Better invent another fantasy thing for that, like “Force field cannon”…

Unusable on a French keyboard.

1 Like

Do you know what keys you need i will add them

ZQSD

But it would be nice to be able to use keyboard arrows.