Coder Social home page Coder Social logo

petakcc / screeps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from milesbhuff/screeps

0.0 0.0 0.0 323 KB

My current Screeps scripts. Screeps is an MMORTS for programmers; it's played entirely in JavaScript.

Home Page: https://Screeps.com/a/#!/profile/MilesBHuff

License: GNU Lesser General Public License v3.0

JavaScript 100.00%

screeps's Introduction

Screeps

About

My current Screeps scripts.
Screeps is an MMO for programmers; it's played entirely in JavaScript.

Goals

My scripts primarily focus on giving the creeps themselves a sensible AI. I also focus on simplifying production. For example, I use a single "worker" creep, that combines the functions of the traditional harvester, builder, and upgrader. This not only makes it harder to stop production altogether (as every single worker would need to be killed, rather than just the harvesters), but also allows for a more even distribution of labour, by using each worker wherever needed, instead of limiting each one to a specific task. Likewise, where the military is concerned, I have chosen to only use ranged attacks; so only a single role is needed. I also have a healer; these only spawn when the room is under attack.
Generally speaking, I leave construction site placement up to the player, as while some aspects of it are algorithmic, most take true intelligence to do right. Plus, it's fun manually laying out a fort. I have included functions that allow the player to manually mark structures for dismantling, and that allow the player to take a snapshot of the structures currently present in the room -- this snapshot, which can be manually cleared, will then be used to ensure that any destroyed structures are automatically rebuilt.

Copyright

  • Code is licensed under the Third Lesser GNU Public License (LGPL3) license.
  • Non-code is licensed under Creative Commons Attribution-ShareAlike 4.0 (CC BY- SA 4).
  • Everything is Copyright (C) 2017 by Miles Bradley Huff.

screeps's People

Contributors

milesbhuff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.