Poll

How should stats be displayed

When you click your character
Displayed in menu under/aside/ontop of map
Other (explain in post)

Author Topic: BlockWorld, a clientsided game. - Ingame Screenshot PG9  (Read 8689 times)

why are you using an image for world data that is a bad idea you should be using some other storage form like database with a table which uses unique-index coordinates that are decided by the id and why am i speaking in one sentence without commas this is bad
Damn port why weren't online a minute ago. I was waiting 4 hours for you.

Damn port why weren't online a minute ago. I was waiting 4 hours for you.

uh

i don't know?

brian smith overcomplicates things

Code: (Python) [Select]
print "stuff going down!"
import Image
import math
def mapImage(file):
        image = Image.open(file)
        maxx = image.size[0]
        maxy = image.size[1]
        print str(maxx) + ' ' + str(maxy)
        #return
        image = image.load()
        imagef = Image.new('RGBA', (maxx + 1, maxy + 1), (0, 0, 0, 0))
        imagf = imagef.load()
        mod = 0
        first = True
        r = []
        newx = 0
        newy = 0
        print str(image[0,0])
        for x in range(maxx):
                for y in range(maxy):
                        if first == True:
                                first = False
                        if math.floor((x / 16) + 0.5) * 16 == x:
                                if math.floor((y / 16) + 0.5) * 16 == y:
                                        #print str(newx) + ' ' + str(newy)
                                        print str(x) + ' ' + str(y)
                                        imagf[newx,newy] = image[x,y]
                                        #mod = 0

                                        newx = newx + 1
                                        newy = newy + 1
                        else:
                                if newx >= 5184:
                                        break
                                if newy >= 5184:
                                        break
                                #mod = mod + 1
        imagef.save('image.png')
mapImage('map.png')

silly

Code: (Python) [Select]
import Image
data = {}

img = Image.open('dumb.png')
pix = img.load()

for x in range(image.size[0] / 16):
    for y in range(image.size[1] / 16):
        data[x, y] = pix[x * 16, y * 16]
« Last Edit: August 26, 2012, 03:19:56 AM by Port »


toto, I don't think we are in TorqueScript any more...

toto, I don't think we are in TorqueScript any more...



You don't say?


If Fluffy made the GUI I could finish the client

If Fluffy made the GUI I could finish the client

fluffy must be slow then

fluffy must be slow then
He hasn't started the real thing
Can you tell him to on steam please?

He just gave me the finished GUI with working buttons and stuff.
Though it's missing a lot of stuff.

Ok, I think I'm ready to test some stuff.

Ok, I think I'm ready to test some stuff.
Will you be including anyone else in this test?

Will you be including anyone else in this test?
no lol, just making sure thinsg in the GUI are up and running

no lol, just making sure thinsg in the GUI are up and running
aww :(