Giter Club home page Giter Club logo

Comments (4)

hackedpassword avatar hackedpassword commented on July 21, 2024

Your first idea does seem practical. Think we've been looking for an undo function for a while, might happen one day. As for shapes, that doesn't seem practical since the brush can scale 1-5 tile radius, and you could potentially use another smaller size to carve into a bigger brush. Using combinations of brushes and floodfill you should be able to get the desired result.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on July 21, 2024

Map editor already has a long list of to-do's: https://github.com/yairm210/Unciv/blob/master/core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt#L45-L60

... and back then I didn't even bother to write down the undo, seemed too costly to me. Back then the normal game didn't have undo either. Needs either a complete transaction system with rollback-able change descriptors, or a deep clone per undo level -> RAM. Or autosave each mini edit step to disk...
Shaped brushes - far too complicated. As you can see I had thought of a "hexagonal copy-paste" brush type...

But the first todo is more important and unless someone deals with that first (and it doesn't seem like a fun pastime to me either atm), I'd vote against any other changes.

from unciv.

hackedpassword avatar hackedpassword commented on July 21, 2024

So is it infeasible to retain the last map click action and pass that back as a forward-motion negation of the same action?

from unciv.

hackedpassword avatar hackedpassword commented on July 21, 2024

Actually, that sounded like a good idea, til loss of tile info wouldn't be restored. Just Gotta Do It Right

from unciv.

Related Issues (20)

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.