May 25, 2019, 11:14:12 AM

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

Offline MrmediamanX

  • Full Member
  • ***
  • Posts: 137
    • 3MX Digital
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. 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
;-------------------------------------;

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1828
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 ;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
Until the next time...

Offline MrmediamanX

  • Full Member
  • ***
  • Posts: 137
    • 3MX Digital
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 :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: 581
Re: simple ZXspeccy test/blitz3d
« Reply #3 on: February 26, 2019, 06:58:03 AM »
Nice work  8)

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1773
Re: simple ZXspeccy test/blitz3d
« Reply #4 on: February 26, 2019, 11:33:54 AM »
Nice pixel art.   8)
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline MrmediamanX

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

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1773
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, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline c0d3r9

  • Full Member
  • ***
  • Posts: 112
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 - 8GB Ram - 240GB SSD

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1773
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, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline MrmediamanX

  • Full Member
  • ***
  • Posts: 137
    • 3MX Digital
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 8)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1066
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 :)

Offline Derron

  • Hero Member
  • *****
  • Posts: 2088
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