Bithack / principia

Open source physics-based sandbox game.
https://principia-web.se
Other
258 stars 25 forks source link

Add "Initial value" field to Memory modules #117

Closed griffi-gh closed 1 year ago

griffi-gh commented 1 year ago

Needs compatability testing, extra properties SHOULD be zero-inited for existing levels... (set_num_properties clears)
existing levels seem to work just fine... but a check may still be needed

rollerozxa commented 1 year ago

What's the usefulness of this? Isn't it already possible to initialise a memory module's value with some circuiting

griffi-gh commented 1 year ago

What's the usefulness of this? Isn't it already possible to initialise a memory module's value with some circuiting

mostly just convinience + makes stuff like pre-inited RAM modules easier to build

griffi-gh commented 1 year ago

also, circuits have a 1 cycle delay