October 27, 2021, 04:31:03

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

Offline MrmediamanX

  • Sr. Member
  • ****
  • Posts: 287
    • 3MX Digital
simple ZXspeccy test/blitz3d
« on: February 26, 2019, 04:11:56 »
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)

Code: [Select]
;-------------------------------------;
;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
;-------------------------------------;
« Last Edit: February 26, 2019, 07:25:45 by MrmediamanX »

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2790
  • I mostly code at night... Mostly.
    • SyntaxBomb - Indie Coders
Re: simple ZXspeccy test/blitz3d
« Reply #1 on: February 26, 2019, 04:20:02 »
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 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
Mac mini (2020 ), M1 SoC, 8 GB LPDDR4, 512GB NVMe 
Commodore VIC-20, 1.1Mhz MOS 6502 CPU, 5KB RAM, VIC ( 6560 ) GPU

Until the next time.

Offline MrmediamanX

  • Sr. Member
  • ****
  • Posts: 287
    • 3MX Digital
Re: simple ZXspeccy test/blitz3d
« Reply #2 on: February 26, 2019, 04:24:44 »
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

Offline 3DzForMe

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

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3237
  • elgol
Re: simple ZXspeccy test/blitz3d
« Reply #4 on: February 26, 2019, 11:33:54 »
Nice pixel art.   8)
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 3, pi 4, pi 400, BBC B, C64, ZX Spectrum

Offline MrmediamanX

  • Sr. Member
  • ****
  • Posts: 287
    • 3MX Digital
Re: simple ZXspeccy test/blitz3d
« Reply #5 on: February 26, 2019, 13:12:35 »
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.

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3237
  • elgol
Re: simple ZXspeccy test/blitz3d
« Reply #6 on: February 26, 2019, 23:45:50 »
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.
« Last Edit: February 26, 2019, 23:47:23 by Steve Elliott »
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 3, pi 4, pi 400, BBC B, C64, ZX Spectrum

Offline c0d3r9

  • Full Member
  • ***
  • Posts: 172
Re: simple ZXspeccy test/blitz3d
« Reply #7 on: February 27, 2019, 00:06:16 »
nice retro-retro gfx.
@steve: maybe thats useful for you https://pyxeledit.com/features.php
Desktop: Win10@64bit - AMD Ryzen 5 3400G - MSI B450 Tomahawk - 16GB Ram - 240GB SSD

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3237
  • elgol
Re: simple ZXspeccy test/blitz3d
« Reply #8 on: February 27, 2019, 00:15:05 »
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 3, pi 4, pi 400, BBC B, C64, ZX Spectrum

Offline MrmediamanX

  • Sr. Member
  • ****
  • Posts: 287
    • 3MX Digital
Re: simple ZXspeccy test/blitz3d
« Reply #9 on: February 27, 2019, 06:33:20 »
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 8)
« Last Edit: February 27, 2019, 06:34:57 by MrmediamanX »

Offline iWasAdam

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

Offline Derron

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


bye
Ron

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal