Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Hi, and thanks for the first post on the forum! Your English is fine, I understood the idea well: games made of ASCII art that run in the SIMPL console, like terminal games.

Good news: your blinking cat already works in SIMPL today. A sprite can be an array of strings, one per row, and a small FUNCTION can replace part of a row. Paste this in GU{I}DE, press Run, then type Pet it:

// Blinking cat: an ASCII-art sprite in the console
// The sprite is an array of strings, one per row
DECLARE Cat : ARRAY[1:3] OF STRING
DECLARE Wish : STRING

// Replaces the first Found in Text with Changed
FUNCTION Replace(Text : STRING, Found : STRING, Changed : STRING) RETURNS STRING
    DECLARE Position : INTEGER
    FOR Position ← 1 TO LENGTH(Text) - LENGTH(Found) + 1
        IF MID(Text, Position, LENGTH(Found)) = Found THEN
            RETURN MID(Text, 1, Position - 1) & Changed & MID(Text, Position + LENGTH(Found), LENGTH(Text))
        ENDIF
    NEXT Position
    RETURN Text
ENDFUNCTION

PROCEDURE DrawCat()
    DECLARE Row : INTEGER
    FOR Row ← 1 TO 3
        OUTPUT Cat[Row]
    NEXT Row
ENDPROCEDURE

Cat[1] ← "    A-----A"
Cat[2] ← " =( 0     0 )=___)"
Cat[3] ← "    !-----!-----!"
CALL DrawCat()

OUTPUT "What do you want to do with this cute cat?"
OUTPUT "[ Pet it | Do nothing ]"
INPUT Wish
IF UCASE(Wish) = "PET IT" THEN
    Cat[2] ← Replace(Cat[2], "0     0", "-     -")
    CALL DrawCat()
    OUTPUT "Purr..."
ELSE
    OUTPUT "The cat goes back to sleep."
ENDIF

The cat first looks at you, then closes its eyes when you pet it:

    A-----A
 =( 0     0 )=___)
    !-----!-----!
What do you want to do with this cute cat?
[ Pet it | Do nothing ]
    A-----A
 =( -     - )=___)
    !-----!-----!
Purr...

What SIMPL can’t do yet is clear the console or redraw in the same place, so each new frame appears below the old one. A Replace function in the string library and a way to clear the console are now on my list of ideas. I can’t promise when, but your post is the reason they are there.

For real-time games (keys without Enter), the Canvas is still the way: KeyDown and KeyPressed read the keyboard while the game runs.

Hello its me i made a new account because the other is locked on my computer I just wanted to say thank you and ask if a mobile version (as apk file not google play download) is in your plan because I would love to use simpl on the go 

also an epub version of the guide would be good

The manual is now available as an EPUB e-book: you’ll find it on the SIMPL page, next to the Windows and Linux downloads. It’s tested with Thorium Reader and Google Play Books. Let me know how it reads on your device!

Hi, and thank you so much for your kind words, I’m really glad you enjoy SIMPL.

About a mobile version: an APK would be interesting, but it isn’t a matter of packaging what’s already there. SIMPL’s interface would have to be rebuilt from scratch for touch screens to offer the same level of UX, and that’s a big job. Right now I’m focused on expanding and refining the Windows and Linux versions. The same goes for a possible browser version: building the UI without constraints of any kind is what allowed me to refine it and set it up exactly the way I wanted, and to me that’s a central part of the user experience, which is so often spoiled by interfaces that aren’t well thought out or user-friendly.

That said, I don’t rule anything out, so I may well consider these suggestions in the near future.

An EPUB version of the manual, on the other hand, is a great idea and much more within reach: I’ll look into it for an upcoming release, so you can read it on your phone or e-reader on the go.

Thanks again for the feedback!

I'm happy to hear this and with a epub version you could take the guide out of the mobile version so it would left more space for the others ui elements and I understand that its hard to create a new interface especially for something as big as Simpl

Thanks! It’s an interesting idea, and it would make things simpler on a phone. Still, I’d rather keep the manual inside SIMPL in any version: opening an example straight into the editor, or jumping from an error to its explanation, is one of the things that help most when learning. The EPUB would be a companion for reading on the go.

Thanks again for the suggestions!