Coder Social home page Coder Social logo

Comments (3)

amiantos avatar amiantos commented on June 12, 2024

This is an interesting problem. We don't really want to just allow people to get into a bad state. So letting you turn off the first page at any time wouldn't be great, it would break the game entirely and probably the app to some extent. And letting you turn on first page on any page, so there are temporarily two pages, seems rife with peril as well. Really we need a special function for changing what the first page is, so that they can be swapped and saved to the database at the same time. We can probably use the page list/pages view to allow you to pick a new first page and then do the swap, might not be a big lift.

A question of data integrity: Should a newly created first page have any decisions leading to it removed? No, games can loop, it shouldn't be assumed that the first page has no pages leading back to it by default. I think when a page is anointed the first page, no changes need to be made to it...

from gamebookengine.

amiantos avatar amiantos commented on June 12, 2024

Not sure why it wasn't obvious earlier but... if you're on a page, and you hit "first page" to change it to the first page, it should just prompt you then that this will swap the first page in the game to this page... easy peasy.

from gamebookengine.

amiantos avatar amiantos commented on June 12, 2024

Okay, so I got this rigged up, it'll turn off the current first page and then set the new page... but it seems to not play nicely with the page visualization interface, like it's not redrawing the full graph, probably need to do something special there...

from gamebookengine.

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.