Archipelago - Addition of pirate ships and forts v0.8
Some new updates for Archipelago - the seafaring and trading turn-based strategy game that I have been working on: forts and pirate ships!
Pirate ships roam the seas, attacking and raiding cargo ships for their treasures. Keep away from them if you want to fulfil your contracts!
Forts are stronger settlements with cannons and will provide a safe sea harbour into which pirate ships cannot enter.
This contribution includes:
- Addition of pirate ships to the board and inclusion of pirates within the sequence of turns
- Automation of pirate ship activity when their turn is reached
- Pirate ships target any cargo ships within their reach
- Otherwise pirate ships move the maximum distance possible with the wind on each turn
- The capability to turn off visibility of activated tiles so pirate ship moves can be seen to be autonomous
- The CSS design of forts and their inclusion on the board
![Screen Shot 2018-03-28 at 23.45.36.png](https://steemitimages.com/640x0/https://cdn.utopian.io/posts/53bf30df19661c8ff80f28bde4032e7a416fScreen_Shot_2018-03-28_at_23.45.36.png)
For a full view of the current state of the game see my github-hosted page:
https://miniature-tiger.github.io/archipelago/
Background details of the project and a list of previous updates can be found at the end of this contribution post.
New Features covered by this Contribution
Addition of pirate ships
The main new complexity added by the pirate ships is that their movement is automated rather than based on user input. This required some automated decision making so that the pirate ship movements are logical. As a starting point for this methods were written to:
- Capture the positions of all pirate ships on the board
- Determine if any cargo ships are within range for capture
- Determine to which tile the pirate ships should sail if no cargo ship is in range (based on maximum distance with the minimum cost of wind)
- Loop through each pirate ship and determine which action should be carried out (capture ship takes priority then move)
- Automate the existing "manual turn" code to run the pirate turns without user inputs
![Screen Shot 2018-03-29 at 00.01.36.png](https://steemitimages.com/640x0/https://cdn.utopian.io/posts/6119216bd4e1e993a87b3fdc84be22d3c5ffScreen_Shot_2018-03-29_at_00.01.36.png)
The code changes for this part of the update are covered here:
https://github.com/miniature-tiger/archipelago/pull/23/commits/0200fd2d6d6d4718f7b6a66c94cc5512c319cbfd
The main code to manage automated movement of pirate ships has been added in a new javascript file: pirates.js
CSS design of forts
Forts are stronger settlements with cannons and will provide a safe sea harbour into which pirate ships cannot enter.
This contribution includes the CSS design of the fort. Future work will cover the harbour and the restriction of pirate ships from entering.
![Screen Shot 2018-03-29 at 00.12.22.png](https://steemitimages.com/640x0/https://cdn.utopian.io/posts/7746d65f395cde393946b0b60349412556c3Screen_Shot_2018-03-29_at_00.12.22.png)
The forts code is covered within this commit:
https://github.com/miniature-tiger/archipelago/pull/22/commits/04b40c3b9df51cce8f04b9ae505f474d9c1413ec
It is mainly CSS design within the pieces.css file.
That is all for this update. If you have any queries please drop them in the comments or contact me on discord.
Details of the Archipelago Project
What is the Project About?
Archipelago is a new project that I have been working on. The aim is to develop a seafaring and trading turn-based strategy game. Players will guide their ships around the islands, searching for goods to aid construction of ships and their bases, trading with the central market and each other, and avoiding hazards like pirates and whirlpools.
Technology Stack
The project is a browser based game:
- Mechanics: Javascript
- Visuals: HTML and CSS initially but will be revisited later once I'm happy with the basic gameplay
Previous Updates
- 0.1 Setting up the initial game board and website structure for the game:
https://utopian.io/utopian-io/@miniature-tiger/archipelago-a-seafaring-and-trading-turn-based-strategy-game - 0.2 Adding ships and ship movement
https://utopian.io/utopian-io/@miniature-tiger/archipelago-a-seafaring-and-trading-turn-based-strategy-game-adding-ships-and-ship-movement - 0.3 - Compass added, wind changes, multiple piece movements, game surround
https://utopian.io/utopian-io/@miniature-tiger/archipelago-update-to-0-3-compass-added-wind-changes-multiple-piece-movements-game-surround-updated - Update 0.4 - Ship transition effects and direction
https://utopian.io/utopian-io/@miniature-tiger/archipelago-update-0-4-ship-transition-effects-and-direction-plus-minor-updates - Update 0.5 - Icon bar updates and settings panel
https://utopian.io/utopian-io/@miniature-tiger/archipelago-update-0-5-icon-bar-updates-and-settings-panel - Update 0.6 - Player Dashboard plus Forests and Ironworks
https://utopian.io/utopian-io/@miniature-tiger/archipelago-update-0-6-player-dashboard-plus-forests-and-ironworks - Update 0.7 - First Project Milestone Complete!
https://utopian.io/utopian-io/@miniature-tiger/archipelago-first-project-milestone-complete
Roadmap
For the short term roadmap the first main goal of getting ships on the board and moving at different speeds under the influence of the compass is COMPLETE!
Work has already begun on the second stage which is land squares and goods discovery and delivery contracts including the player dashboards. Work has also begun on adding pirates and conflicts.
Phase 1 - Board and ship movement: COMPLETE!!!
- Board set up - COMPLETE
- Basic ship creation: functionality and graphics - COMPLETE
- Manual ship movement and board updating - COMPLETE
- Basic compass creation: functionality and graphics - COMPLETE
- Turn based activity of ship movement - COMPLETE
- Logic of length of longer moves around obstacles - COMPLETE
- Chaining together transitions to allow graphics of longer moves - COMPLETE
- Refactoring to allow CSS transitions layer above "refresh" layer - may not now be necessary - for consideration in future.
Phase 2
Land Squares and Resources:
- Dashboard of player pieces and resources - COMPLETE
- Resource tiles (forest, iron, flax, gold etc) - in progress: forest and ironworks added
- Summaries of produce and populations and functioning for each Resource
Contracts for delivery:
- Semi-random (equitable) generation of trade delivery contracts
- Creation of trade settlements
- Dashboard for contracts
- Mechanics for contract sign-up
- Mechanics for contract delivery
The long term roadmap is still to be fully fleshed out but includes:
- Building: (recipes, times etc)
- Islands (naming: for describing location ot pieces, trading settlements)
- Central trading centre:
- Conflicts:
- Pirates:
- Scoring:
Contact / Contribute
You can get in touch with me on discord if you would like to contribute.
You can find the current state of the game here:
https://miniature-tiger.github.io/archipelago/
The repository for the project is here:
https://github.com/miniature-tiger/archipelago
Have fun!
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Thank you.
Congratulations! This post has been upvoted from the communal account, @minnowsupport, by miniature-tiger from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.
If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.
Hey @miniature-tiger I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
It would be great to see you at the London Crypto Currency Show on 14th April! The following projects are coming to present:
@utopian-io Read their blog about the show:
@esteemapp Read their blog about the show:
@stach Read their blog about the show:
@steempress Read their blog about the show:
Also @allasyummyfood, @stephenkendal, @anarcotech & I will present. The event doors open at 09.30am and the Steem Project presentations start at 10.15am and finish at 11.30am.
There will be loads of cool steemians including some graffiti artists at our stand at the event all day where there will be presentations on the hour until 16.00. The after party starts at 17.00 at the Novotel Hammersmith.
See some blogs about the event HERE & HERE
Click here for free steemian ticket
Thanks for sharing valuable post.
I continue follow your post.
I appreciate your contest