paranoiax / LSD

Little Sticky Destroyer
http://paranoiax.github.com/LSD/
7 stars 1 forks source link

[Menu] Make options save and load (filesystem) #16

Closed paranoiax closed 12 years ago

paranoiax commented 12 years ago

Working! One thing left: Make use of saved resolution and fullscreen settings.

qaisjp commented 12 years ago

I really should add the Menu to the other version, it'll speed things up (definitely), can you give a quick overview of how this menu system works.

Btw, anyone can see this code and play it without paying... piracy alert!

paranoiax commented 12 years ago

Take a look at https://github.com/josefnpat/lovemenu for how the menu system works.

I've just implemented a system to save and load the settings in options.lua.

In main.lua from line 284 to 305 are the "switches" for the default values.

Lines 307-404 are the actual menu items.

The callback starts at line 1022.

But if you take a look josefnpat's framework it should be pretty much self explanatory.

Oh and I also made some changes to the original menu.lua (nothing important though).

About Piracy: Not even one 1% of potential customers are able to do anything with the source ;)

What needs to be done though, if you want to carry things over to your bitbucket repo, is implementing the level selector. You'll probably need to hack away quite a bit.

josefnpat commented 12 years ago
But if you take a look josefnpat's framework it should be pretty much self explanatory.

Thanks! (Yes, I stalk repos.)

paranoiax commented 12 years ago

=)