QL Tinkering

Helpful tips and guides, also new users can ask for help here.
User avatar
Cristian
Aurora
Posts: 965
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: QL Tinkering

Post by Cristian »

Great job, as usual :-)


qbits
Trump Card
Posts: 174
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL Tinkering

Post by qbits »

Hi all,

QBITS PIXELArt Project
Behind this latest coding is the review of 1980’s Retro Games being the background to developing this project. First the use of screen Tiles, in may Games these perform several different functions. As a solid for walls or platforms, then as a flooring where a Sprite moves across or articles that a Sprite moves behind. Other possibilities are to act as Hazards ie not just blocking a route but causing explosions etc. Then as a Reward there may be a limited time when available. All these can now be addressed with each Tile having an Asset label.

Unoccupied Tile areas are background colour. If a Tile is positioned the default Asset is zero (a solid object that forms a barrier). However, by changing the Asset value different actions can take place. In this release numbers above zero act as flooring allowing the Cursor to pass over them. Tile Asset or function is an area that no doubt will be expanded on later, but for now it has just the two 0=Solid for wall etc and 1=Flooring.

The second change is movement between screen, this had a Jump or Switch between screen when moving through an exit point. A new Map screen layout now has the option to Slide where you glide across screens in the horizontal, rather than just Switch. At first I couldn’t get the interaction between the variables to work as intended. I might end up with repeats of half a screen rather than slide into the next.

The Primary screen area has columns x=0 to x=19 the Screens use Columns 0 to 19 and Rows 0 to 11. Going East x=19 pushes the next screen columns 0 to 19 West and visa versa when moving West from x=0. See Code Lines from 1525 PROC Scrn_Slide 1531 PROC PANEast 1541 PROC PANWest and Asset Checks 1575 PROC Tile_Chk

QBITS SCREEN SLIDE R23.jpg

To incorporate the Tile Assets a further addition has been made to the Screen BITMap File.
File management - if a Sprite and Tile _bmp files have been loaded the Save now defaults to respective Sprite or Tile _bmp Filename.

The next objective is to get things working with ‘(T)est Run’. The accompanying pdf file is still being put together with the option of a partial release I hope soon. My biggest headache is in creating and the saving of a fully independent Game built by the QBITS PIXELArt Prog.

For Now!
Provided is QBITS_PIXELArt_AGen4 Plus and two accompanying _bmp files for SPRITE and SCREEN QBPIXAGen4_01 & 02

Suggest after loading go to Tile Mode and Maps and Press # to select Slide mode. Press spacebar and now press # again. Moving the cursor across the screen should slide in to the next. And check out the access over the flooring bottom of screen one.

As usual if you find any error. Things not work as expected. Guidance in Progs functions or just suggestions on any improvments, please relay them in a post.

QBITS
Attachments
QBPIXAGen4.zip
(17.5 KiB) Downloaded 26 times
QBITS Project R23.jpg


qbits
Trump Card
Posts: 174
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL Tinkering

Post by qbits »

Hi All,

QBITS PIXEL Art Project Update

My aim was to produce a RETRO Game making Prog and for this set myself four Stages. Some of my aspirations on reflection were let’s say a little too adventurous for my limited Coding skills. However, for this release:

Stage One code for the Sprite Generator has been tidied up and has two additions FILL and ReColour commands. These can be use with the other SPRITE Frame Edit tools on the Whole Frame or a ReSized Edit area within the Grid Frame.

For Stage Two the Screen TILE Generator, the TILE Attribute arrangement has changed which has led again to some screen changes to layout. The Map screen has a few changes and back in SCREEN TILE Mode with # you can check out SWITCH or SLIDE between screens.

For Stage Three the Action Generator the screen choices have been rearranged to meet new options and the limiting of others. For controlled Sprites you can now toggle between Jump or Fire for action with the Spacebar. This can be check with the Test Option of KEY- CTRL Screen

Stage Four is UNDER CONSTRUCTION but you can access the opening screen which is screen one of QBPIXAgen4_02_bmp(if Loaded). Return with [Esc]

To access Files you now require to Press 'F' to bring up the File magenent screen.

As I develop a QBITS Prog I use what you see as my accompanying pdf as a Progress Report on what has been done and further work needed. As sections get completed my document updates resemble more the finished pdf so I thought with that I mind I would Post the pdf version of my work as completed to date. For use and operation of QBITS PIXEL Art please refer to the QBPIXELArt_RGen_doc_pdf.

QBITS
Attachments
QBPIXELArt_RGen_doc.zip
(1.33 MiB) Downloaded 50 times


qbits
Trump Card
Posts: 174
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL Tinkering

Post by qbits »

Hi All,
A Happy Easter to You..

QBITS PIXEL Art Project: Progress
Coding is being check for inconsistencies and refining for the Stage Four of being able to Run a Retro Style Game build with QBITS PIXEL Art Prog and then saving as standalone code. The pdf updated as I go.

As I have been reviewing information on the 1980 Retro Games, I have come to realise many of the 8x8 Bit-map set used by these Game could after some conversion be Imported as QL Character Fonts to the SPRITE Designer (Stage One ) of QBITS PIXELArt. Which I have done and also added a simple scaler to increase their size before adding them to the SPRITE Frames List. From their on you can use the Edit functions to smooth curves, recolour etc.

Have Fun
QBITS
Attachments
QBITS_PIXELArt_RGen.zip
(1.44 MiB) Downloaded 28 times
QBITS PIXEL Art.jpg
QBITS PIXEL Art.jpg (40.16 KiB) Viewed 503 times
QBITSProgs.jpg
QBITSProgs.jpg (31.33 KiB) Viewed 503 times
Last edited by qbits on Sat Mar 30, 2024 9:28 pm, edited 1 time in total.


User avatar
dilwyn
Mr QL
Posts: 2761
Joined: Wed Dec 01, 2010 10:39 pm

Re: QL Tinkering

Post by dilwyn »

Haven't got round to using this software yet, but I'm always impressed with the excellent on-screen presentation of Qbits software.


User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL Tinkering

Post by NormanDunbar »

I agree 100% with what Dilwyn said.


Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
qbits
Trump Card
Posts: 174
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL Tinkering

Post by qbits »

Hi All,
Dilwyn and Norman thanks for the encouraging appraisal of my screen presentations. If only I could extend my codding abilities. The QBITS PIXELArt Project is a steeper learning curve that I anticipated.

However, for the present my attention is drawn to the forthcoming Sinclair QL 40th Anniversary in Germany. I could visit my nice who lives and works there, unfortunately other arrangement need my attention elsewhere. Nevertheless, it started a train of thought about other events in my life.

2019 was a major wedding anniversary for me and a half century for the Apollo Moon mission. Where am I going with this, seems back then I had started reading up on the NAS mission and writing code for a Lunar Lander. I guess due to work at the time I had put it to one side. So my thoughts are perhaps could I revive this as a contribution to the QL’s 40th Anniversary.

The first part I present here it is a QBITS simple Text Lunar Lander Simulator based on early BASIC programs written in the 70’s. The next part which I’m working on is a 2D Graphics controlled display along the lines of the Atari Arcade Game and versions ported to the home computers of the eighties.

Load and run Prog. Press ‘D’ for demo and a safe landing: press ‘S’ and toggle Engine Jets On/Off with Space-bar to reduce gravitational velocity(-) and land safely before your Fuel runs out. If you raise to a (+) velocity this increases height and if above 10,000 the program aborts.

QBITS
Attachments
QBITS_LLSIM_bas.zip
(1.47 KiB) Downloaded 1 time
LLSIM.jpg


User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL Tinkering

Post by NormanDunbar »

I'm rubbish at arcade games. I used to play, well attempt, Lunar Lander in the traveling arcades. Never managed more than a few seconds before impacting the lunar surface.

:(

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Post Reply