Author Topic: zedd physics  (Read 2358 times)

0 Members and 1 Guest are viewing this topic.

Offline jonjetjon

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
zedd physics
« on: March 05, 2012, 12:28:53 pm »
alright, so i have been trying to make a simple program with zedd
so my code looks something like this sorry if it is not accurate, i had to type this up real fast


.PHYS8XP


[FFFFFFFFFFFFFFFF]->pic1


[010101010101010101010101010000000000000000000001010000000000000000000001010000000000000000000001010000000000000000000001010000000000000000000001010000000000000000000001010101010101010101010101]->gdb0tm


24->gdbowd
//not exactly sure of what that does


1->gdb0cl
8->gdb0sp
L1->gdb0vr
4->gdb0fr


[e7bde74242e7bde7]->str0sp


loadz(0,15
addz(40,40,8,8,8,0
repeat getkey


clrdraw
for(q,0,7
for(w,0,11
q*12->d
if {gdb0tm+d+w}=1
pton(W*8,Q*8,pic1
end
end
end
simz()
dispgraph


return
prgrmzedd


lbl clz
return

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: zedd physics
« Reply #1 on: March 05, 2012, 12:37:55 pm »
The released beta for Zedd uses tiles that are 4x4 and not 8x8.  Either you will have to modify Zedd to use 8x8 tiles or accommodate your tilemap for 4x4 tiles.  Your sytnax looks very good though, so it looks like the single issue is the tile size.  Apologies on the tile size, as the released version is only a Beta and doesn't have 100% of the features or flexibility that the final project will have. 

The lines you will be wanting to change will look like:
Code: [Select]
:If {T+θ/2/2*GDB0WD+(S/2/2)+GDB0TM} or {T+θ/2/2*GDB0WD+(S+C-1/2/2)+GDB0TM}And you will want to all the /2/2 into /2/2/2
Code: [Select]
:If {T+θ/2/2/2*GDB0WD+(S/2/2/2)+GDB0TM} or {T+θ/2/2/2*GDB0WD+(S+C-1/2/2/2)+GDB0TM}

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: zedd physics
« Reply #2 on: March 10, 2012, 08:28:51 am »
Welcome to the forums!
I'm not a nerd but I pretend: