November 27, 2020, 05:42:19 AM

### Author Topic: simple ZXspeccy test/blitz3d  (Read 1285 times)

#### MrmediamanX

• Full Member
• Posts: 242
##### simple ZXspeccy test/blitz3d
« on: February 26, 2019, 04:11:56 AM »
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.

Code: [Select]
`;-------------------------------------;;ZX_SPECTRUM_TESTGraphics 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=TrueGlobal roomX=1,roomY=0;-------------------------------------;While KeyDown(1)=FalseCls():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#,1If KeyDown(203) x#=x#-0.3:LFT=True:RHT=FalseIf KeyDown(205) x#=x#+0.3:LFT=False:RHT=TrueIf KeyDown(200) y#=y#-0.3If KeyDown(208) y#=y#+0.3If(x#<-62) Then x#=630:roomX=roomX-1If(x#>630) Then x#=-62:roomX=roomX+1If(y#<-97) Then y#=475:roomY=roomY+1If(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#"+roomYFlip()Wend;-------------------------------------;`

#### Qube

• Hero Member
• Posts: 2565
• I mostly code at night... Mostly.
##### Re: simple ZXspeccy test/blitz3d
« Reply #1 on: February 26, 2019, 04:20:02 AM »
Hmm, I really need to do some iso tile map stuff, you've inspired me

Another quick glance at the screen shots and.... But but but, it breaks the ZX's max 2 colours per 8x8 block - Sacrilege
Mac mini ( 2018 / 2020 ), 3 GHz 6-Core Intel Core i5, 16 GB 2667 MHz DDR4, 1TB NVMe, eGPU Radeon Pro 580 8 GB, LG Ultragear 27GL83A-B 27 Inch
Commodore VIC-20, 1.1Mhz MOS 6502 CPU, 5KB RAM, VIC ( 6560 ) GPU

Until the next time...

#### MrmediamanX

• Full Member
• Posts: 242
##### Re: simple ZXspeccy test/blitz3d
« Reply #2 on: February 26, 2019, 04:24:44 AM »
Another quick glance at the screen shots and.... But but but, it breaks the ZX's max 2 colours per 8x8 block - Sacrilege

heh heh true I would have made them all one color but  untold unto me thign blapham-mus-ness-ness

#### 3DzForMe

• Hero Member
• Posts: 1136
##### Re: simple ZXspeccy test/blitz3d
« Reply #3 on: February 26, 2019, 06:58:03 AM »
Nice work

#### Steve Elliott

• Hero Member
• Posts: 2858
• elgol 2021
##### Re: simple ZXspeccy test/blitz3d
« Reply #4 on: February 26, 2019, 11:33:54 AM »
Nice pixel art.
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, C64, ZX Spectrum Next.

#### MrmediamanX

• Full Member
• Posts: 242
##### Re: simple ZXspeccy test/blitz3d
« Reply #5 on: February 26, 2019, 01:12:35 PM »
Nice pixel art.

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.

#### Steve Elliott

• Hero Member
• Posts: 2858
• elgol 2021
##### Re: simple ZXspeccy test/blitz3d
« Reply #6 on: February 26, 2019, 11:45:50 PM »
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.
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, C64, ZX Spectrum Next.

#### c0d3r9

• Full Member
• Posts: 166
##### Re: simple ZXspeccy test/blitz3d
« Reply #7 on: February 27, 2019, 12:06:16 AM »
nice retro-retro gfx.
@steve: maybe thats useful for you https://pyxeledit.com/features.php
Laptop: Win10@64bit - i3 2x2Ghz - 8GB Ram - 1TB HDD
Desktop: Win10@64bit - AMD Ryzen 5 2400G - MSI B450 Tomahawk - 16GB Ram - 240GB SSD

#### Steve Elliott

• Hero Member
• Posts: 2858
• elgol 2021
##### Re: simple ZXspeccy test/blitz3d
« Reply #8 on: February 27, 2019, 12:15:05 AM »
Thanks mate, but it's a side project I'd like to take on myself.
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, C64, ZX Spectrum Next.

#### MrmediamanX

• Full Member
• Posts: 242
##### Re: simple ZXspeccy test/blitz3d
« Reply #9 on: February 27, 2019, 06:33:20 AM »
Quote
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.

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

• Hero Member
• Posts: 2001
##### Re: simple ZXspeccy test/blitz3d
« Reply #10 on: February 27, 2019, 07:50:52 AM »
It looks very nice - I really like the separation of the tiles. it gives it a much more interesting look

#### Derron

• Hero Member
• Posts: 3262
##### Re: simple ZXspeccy test/blitz3d
« Reply #11 on: February 27, 2019, 09:42:38 AM »
Think the separation is required to stay within the color restrictions of the 8x8 pixels grid.

bye
Ron