simple ZXspeccy test/blitz3d

Started by MrmediamanX, February 26, 2019, 04:11:56

Previous topic - Next topic

MrmediamanX

just a simple test currently with no collison.... extra resource's can be found below.
the x and y rooms are assigned as an image which switch depending on the roomx and roomy variable.
there's currently no cap as to how far one can move  .... a little trick was to use screen wrapping for the ply image/sprite
to give the illusion of moving into a new room/cell while adding to or deducting from the roomx/y variables. If any one wants to use or build on this code in anyway shape or form
by all means feel free i'm cool with it ... credit no required. 8)

;-------------------------------------;
;ZX_SPECTRUM_TEST
Graphics 640,480,32,2
;-------------------------------------;
Global PLY=LoadAnimImage("PLYSTND.png",36,63,0,2),FLR=LoadImage("floor.png"):FRT=LoadImage("floor2.png"):NUL=LoadImage("floor3.png")
Global x#,y#,LFT=False,RHT=True
Global roomX=1,roomY=0
;-------------------------------------;
While KeyDown(1)=False
Cls():HidePointer()
;-------------------------------------;
If roomX=0 DrawImage(NUL,0,0)
If (roomX=1 And roomY=0) DrawImage(FLR,0,0)
If (roomX=2 And roomY=0) DrawImage(FRT,0,0)
If roomX=3 DrawImage(NUL,0,0)
;-------------------------------------;
If roomX=1 And roomY=-1 DrawImage(FRT,0,0)
If roomX=1 And roomY=1 DrawImage(FRT,0,0)
If roomX=2 And roomY=-1 DrawImage(FLR,0,0)
If roomX=2 And roomY=1 DrawImage(FLR,0,0)
;-------------------------------------;
If (LFT=True) DrawImage PLY,x#,y#,0 Else DrawImage PLY,x#,y#,1
If KeyDown(203) x#=x#-0.3:LFT=True:RHT=False
If KeyDown(205) x#=x#+0.3:LFT=False:RHT=True
If KeyDown(200) y#=y#-0.3
If KeyDown(208) y#=y#+0.3
If(x#<-62) Then x#=630:roomX=roomX-1
If(x#>630) Then x#=-62:roomX=roomX+1
If(y#<-97) Then y#=475:roomY=roomY+1
If(y#>475) Then y#=-97roomY=roomY-1
;-------------------------------------;
;Color 255,0,0:Text 0,0,"x#"+x#:Text 0,20,"y#"+y#:Text 0,40,"ROOMx#"+roomX:Text 0,60,"ROOMy#"+roomY
Flip()
Wend
;-------------------------------------;
It's a thing that doe's when it don't..

Qube

Hmm, I really need to do some iso tile map stuff, you've inspired me ;D

Another quick glance at the screen shots and.... But but but, it breaks the ZX's max 2 colours per 8x8 block :o - Sacrilege :P
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

MrmediamanX

Quote from: Qube on February 26, 2019, 04:20:02
Another quick glance at the screen shots and.... But but but, it breaks the ZX's max 2 colours per 8x8 block :o - Sacrilege :P

heh heh :D true I would have made them all one color but  untold unto me thign blapham-mus-ness-ness ;D
It's a thing that doe's when it don't..

3DzForMe

BLitz3D, IDEal, AGK Studio, BMax, Java Code, Cerberus
Recent Hardware: Dell Laptop
Oldest Hardware: Commodore Amiga 1200 with 1084S Monitor & Blitz Basic 2.1

Steve Elliott

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

MrmediamanX

Quote from: Steve Elliott on February 26, 2019, 11:33:54
Nice pixel art.   8)

thanks man I used Graphic gale to make em ... it's a pretty neat tool.
If I stick with making 2d games, i'll be using that most if not all the time now.
It's a thing that doe's when it don't..

Steve Elliott

#6
Quote
thanks man I used Graphic gale to make em ... it's a pretty neat tool.

Ah right I'm using Photoshop, and for animation it's awful.  Just switched to AGK's animation facilities and will produce something myself for sprite animation after the comp.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

plenatus

nice retro-retro gfx.
@steve: maybe thats useful for you https://pyxeledit.com/features.php

Steve Elliott

Thanks mate, but it's a side project I'd like to take on myself.   :)
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

MrmediamanX

#9
QuoteAh right I'm using Photoshop, and for animation it's awful.  Just switched to AGK's animation facilities and will produce something myself for sprite animation after the comp.

wait ... GGale or photo shop? I suppose it depends on how one use's it I guess. Im able animate in gale relatively well ... mainly due to having unorthodox techniques, one method is similar to rotoscoping but using a series of dot's/joint points akin to verts.
all & all best luck man ... it's cool 8)
It's a thing that doe's when it don't..

iWasAdam

It looks very nice - I really like the separation of the tiles. it gives it a much more interesting look :)

Derron

Think the separation is required to stay within the color restrictions of the 8x8 pixels grid.


bye
Ron