🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

seeking programming partner for ongoing RPG game (javascript)

Started by
6 comments, last by j h 1 year, 8 months ago

I've been designing an RPG game for about 4 years now. I am a self-taught programmer of about novice/intermediate skill. I am looking for a partner to discuss programming with because a few aspects of the game are proving quite challenging. It's not a very complicated game and will not require a game engine because it's pretty much just text based with only some graphics. If you're curious I will send you the github link.

Advertisement

Hook us up with that GitHub repo that you’re talking about.

@taby I prefer to PM the github rather than put it in the thread.

Fair enough. Which parts are difficult for you?

Right now i'm making the map generator prototype which uses 25 tiles, 5x5, 32px x 32px using raw tile data of 0 and 1 to indicate where to draw the tiles. Below is the pseudo code I just wrote to get started.

/*psuedocode

        layer1 = canvas (floor)
        layer2 = canvas (objects)
        layer3 = canvas (player)

        player = 2dcontext

        mapData = {size: 25, width: 5, height: 5, tileWidth: 32, tileHeight: 32}

        mapFloor = [0, 0, 0, 0, 0,
                    0, 0, 1, 0, 0,
                    0, 0, 1, 1, 0,
                    0, 0, 1, 0, 0,
                    0, 1, 1, 0, 0]

        //template for tile data
        tileDataFloor = [{index: 1, floor: true/false, x: 1, y: 1}]

        tileIndex = 0
        canvasCoordinate = {x: 1, y: 1}
        tileCoordinate = {x: 0, y: 0}
        for e in array (mapData['size'])..

            tileIndex += 1
            tileCoordinate['x'] += 1

            if tileIndex == mapData['width']..
                tileCoordinate['x'] = 1
                tileCoordinate['y'] += 1
                canvasCoordinate['x'] = 1
                canvasCoordinate['y'] =+ 32
                start new row

            if e == 0..
                tileDataFloor.push({index: tileIndex, floor: false, x: tileCoordinate['x'], y: tileCoordinate['y']}
                canvasCoordinate['x'] += 32
                continue

            elif e == 1..
                tileDataFloor.push({index: tileIndex, floor: true, x: tileCoordinate['x'], y: tileCoordinate['y']}
                draw grey block {x: canvasCoordinate['x'], y: canvasCoordinate['y']}
                canvasCoordinate['x'] += 32

        */

I am open to all criticism/suggestion. Thanks.

@wizewun1 i'll give you advice. pm me

This topic is closed to new replies.

Advertisement