Published on

Devlog #16 - Market & Art

Started off the week putting together a test project for BabylonJS devs. It shows off flickering/stuttering in their SpriteMap implementation. https://forum.babylonjs.com/t/scroll-a-spritemap/40955/3

Next we released a look at Lighterthief's new map graphics. They are a huge success! I also just gave Lighterthief all the old sprites and icons for him to look over. This gonna be gud!

On to the market. First we need to design some MySQL tables. The first is MarketListing. It needs an id, the id of the account, json of the item, price, duration, time listed. With that setup we need to start implementing all the server side functionality. We'll start with listing an item for sale.

To list an item for sale you must be at least level 30, have the 10% listing fee, and not be at max listings for the account. Once all that is verified, the 10% is taken, and your item is sent into the market.

Now we need the UI to actually call this server side function. 

Lovely isn't it? And now we can list items for sale. Market listings are account wide. The fee is 10% as decided here https://www.patreon.com/posts/what-should-fee-80654171. The maximum market duration is 30 days as decided here https://www.patreon.com/posts/what-should-be-83356558. The minimum price for an item on the market is 100 coins as decided by me.

I went ahead and listed 3 items. Then I wrote the server side code to query MySQL for the listings. I then convert those listings and send them on to the client. The client then converts the data it receives and displays it in the market window.

And then it started coming together. Just a few more pieces of information, some styling, and then we'll add a cancel button.

And that's it for the market this week. It's about 40% and will get to about 90% next week. I'll also start working on quests again to get Noob Island content done.

Now I'm off to make the BabylonJS project build and deploy to Vercel so my teammates can actually playtest the game and their art!

P.S. - For those with 3 Alpha Halos, the 3rd character slot has now unlocked at https://fantasyonline2.com/!

ALERT: Don't forget to vote in the first of many icon style polls! Your vote matters! Shape the future!

https://www.patreon.com/posts/which-icon-style-83568710