Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#1 2018-08-17 11:33:09

G.E.R.
Member
From: Russia, Krasnodar
Registered: 2017-12-26
Posts: 177

Write and read data from files

Need to understand that player will not pass all levels one-time.
I think than we must think about the possibility of working the engine with a files. It's necessary for save settings or game progress in permanent memory.
For example, it may be looks like save-page in Sonic Mania.
Is this idea possibly?

Offline

#2 2018-08-17 23:23:44

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: Write and read data from files

Yes, something like that will be available for SurgeScript.

Unrestricted access to the file system open security issues and won't be provided, but a solution for working with in-game progress will. Unity has the concept of PlayerPrefs. I believe we can come up with something similar.

By the way (just as a curiosity), you can emulate such a system with the old API using save_level.

Offline

#3 2018-08-19 09:49:28

G.E.R.
Member
From: Russia, Krasnodar
Registered: 2017-12-26
Posts: 177

Re: Write and read data from files

Also, I ask to you add an opportunity in editor mode to save a level map in PNG file

Offline

#4 2018-08-19 22:36:42

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: Write and read data from files

That is useful. How do you do this today?

Offline

#5 2018-08-20 06:56:42

G.E.R.
Member
From: Russia, Krasnodar
Registered: 2017-12-26
Posts: 177

Re: Write and read data from files

Screenshots from the level editor and junction they in photoshop

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org