Hackers Basement

Decisions taken on a Crypto Game - Designing Storylines

By IggyDotDev | Storylines | 10 Jan 2022



Hello P0xers!

Following up with my last post, where I decided what was the theme of the game and more less what did I wanted to see in it, I started taking some more notes. So far here's what I wrote and some "technical" decisions taken.

Use of Svelte


I decided to use SvelteJS to build this because its easy and waaaay more lightweight than React. Besides I have a love hate relationship with React so... yeah. I think it's great but in the last updates they started to complicate things and started to feel wrong when I coded React (Hooks with useEffects all over the place... Don't worry too much if you don't understand it. It's fine)

 

Use of openStreetMaps vs GoogleMaps


Although OpenStreetMaps data is not always accurate, using their system is free so it doesn't really matter how many API calls you make. In that sense  Free = Good stuff (well at least when you are prototyping with low to non existent budget).  
I started coding in a REPL (Read Eval Print Loop. In short it's an system (nowadays online) where you can code and see results) on the svelte website. From my implementation (on the current build status) this is what I got... 2 position with a radius and placement of a marker. It doesn't do much though but it will eventually. 
 

none


This is just the first step: Show something in a screen. I know it's nothing but believe me when I say there are already heaps of lines of code there. Mainly because:
- You need to get the geolocation for a user
- Create a map view
- Create a layer on top of the map
- Position user marker based on the user location (first step) adding it to the map layer
- Create a radius for the user and add it to the layer
- Create an enemy location, create and position the marker on the map layer
- Render the map in the screen

On top of that you need to get the libraries right. Lightweight libraries make you app load faster so that are bonus points.

 

The old, and loved, World of Warcraft Armory

I remember the old days in World of Warcraft when you could actually see on the Armory your character and see the equipment on it, check its stats, etc. Sadly the Armory disappeared and many, many people were sad. It was really cool! Well, I loved the armory idea so I could maybe bring it back at some point but instead of an armory I will call it "The basement". So often on films and series we see hackers do stuff on their house basement. Kind of a cliche but it's ok.

 

A cardano dapp connector


That's it. No Cardano connection yet. I think I will have to enroll into the Plutus pioneer program to really understand the Cardano blockchain in detail. However, I asked on twitter for an update on the Yoroi Dapp Connector. Yoroi is the lightweight Cardano wallet and they said on June last year that they were doing some work on this but since then, nothing. So I hope to get an answer. Once we could get that dapp connector, we should see heaps of games putting that "connect wallet" button (that connects  metamask to the site) but using Cardano. That connection could be enough to login the user to their account. 


So yeah this is it. As always let me know what are your thoughts about this. I really appreciate that you took the time to read until here. 
Until the next update, stay safe and be blessed. 
Iggy out!


(PS: Photo by Tima Miroshnichenko from Pexels)

How do you rate this article?

2


IggyDotDev
IggyDotDev

Brogrammer and Typescript journeyman interested in anything related to tech. He/him/his.


Storylines
Storylines

Storylines is a blockchain game that is developed with the help of the community. This blog will provide a series of posts that describe the process on how to create a game from scratch.

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.