## [LIKO-12 V1.0.0] An open-source fantasy computer made in LÖVE

RamiLego4Game
Citizen
Posts: 73
Joined: Tue Jun 10, 2014 7:41 pm

### Re: [LIKO-12 V0.6.0_PRE_07] An open-source fantasy computer made in LÖVE

Hey all, I've just updated the topic post.

LIKO-12 has been under active development all this time

My works:

Darlex
Citizen
Posts: 84
Joined: Sun Sep 24, 2017 10:02 am
Location: Chile
Contact:

### Re: [LIKO-12 V0.6.0_PRE_07] An open-source fantasy computer made in LÖVE

Wow! This is amazing!

Code: Select all

if sadness>30 then
end


pgimeno
Party member
Posts: 1557
Joined: Sun Oct 18, 2015 2:58 pm

### Re: [LIKO-12 V0.6.0_PRE_07] An open-source fantasy computer made in LÖVE

I saw that PICO-8 had a MazezaM version, so I thought that LIKO-12 should have one too!

mazezam-snapshot.png (7.82 KiB) Viewed 1551 times
Here's the .lk12:
mazezam.zip
MazezaM is a puzzle game with mechanics that may be reminiscent of those of Sokoban. Your goal is to make your way through each room; there are carts in the middle that impede you to do it straight away. The carts are connected row by row (you can only move one row at a time horizontally). In this version, rather than having separate screens, the levels are rooms in a map, which is editable in the LIKO-12 editor (however the camera centre for each room is hard-coded into the program).

Would this be considered for addition to the LIKO-12 games collection?

RamiLego4Game
Citizen
Posts: 73
Joined: Tue Jun 10, 2014 7:41 pm

### Re: [LIKO-12 V0.6.0_PRE_07] An open-source fantasy computer made in LÖVE

pgimeno wrote:
Sat Apr 21, 2018 5:36 pm
I saw that PICO-8 had a MazezaM version, so I thought that LIKO-12 should have one too!

mazezam-snapshot.png

Here's the .lk12:

mazezam.zip

MazezaM is a puzzle game with mechanics that may be reminiscent of those of Sokoban. Your goal is to make your way through each room; there are carts in the middle that impede you to do it straight away. The carts are connected row by row (you can only move one row at a time horizontally). In this version, rather than having separate screens, the levels are rooms in a map, which is editable in the LIKO-12 editor (however the camera centre for each room is hard-coded into the program).

Would this be considered for addition to the LIKO-12 games collection?
Thanks for sharing this !
Yes, I will add it to LIKO-12 games collection.

Just looked at the code, it's very clean and nice, but just 2 things to say:
- Please make the license comment block use --[[ instead of --[=[, It doesn't highlight correctly in LIKO-12
- I saw some TileMap:export(), is it for cloning the map ? If so it would be better to just call TileMap:cut(), without any arguments, which would clone the map.

I've also been working on a sokoban clone for LIKO-12
My works:

pgimeno
Party member
Posts: 1557
Joined: Sun Oct 18, 2015 2:58 pm

### Re: [LIKO-12 V0.6.0_PRE_07] An open-source fantasy computer made in LÖVE

RamiLego4Game wrote:
Tue Apr 24, 2018 3:21 am
Thanks for sharing this !
Yes, I will add it to LIKO-12 games collection.

Just looked at the code, it's very clean and nice, but just 2 things to say:
- Please make the license comment block use --[[ instead of --[=[, It doesn't highlight correctly in LIKO-12
- I saw some TileMap:export(), is it for cloning the map ? If so it would be better to just call TileMap:cut(), without any arguments, which would clone the map.

I've also been working on a sokoban clone for LIKO-12
Thanks for looking into it! I'll change the comment style and look into whether cut() is appropriate here, then submit a PR. Better to discuss this there I think.

RamiLego4Game
Citizen
Posts: 73
Joined: Tue Jun 10, 2014 7:41 pm

### Re: [LIKO-12 V0.6.0_PRE_07] An open-source fantasy computer made in LÖVE

pgimeno wrote:
Tue Apr 24, 2018 9:25 am
Thanks for looking into it! I'll change the comment style and look into whether cut() is appropriate here, then submit a PR. Better to discuss this there I think.
Thanks for the pull requests !

And to the DiskOS games folder

Also made a .png for your game, which is nice to show in the forums

mazezam.png (17.22 KiB) Viewed 1471 times
My works:

pgimeno
Party member
Posts: 1557
Joined: Sun Oct 18, 2015 2:58 pm

### Re: [LIKO-12 V0.7.1_PRE] An open-source fantasy computer made in LÖVE

Thanks a lot for merging it

Since I can't discuss the Map:cut issue there because there's no PR:

I have looked into it, but I'm not sure if it can be used to save/restore the map state. export/import seemed straightforward for that purpose. I guess I could do checkpoint.map = TileMap:cut() to save and then TileMap = checkpoint.map to restore. Is that what you meant? Is it OK to modify the global TileMap?
RamiLego4Game wrote:
Tue Apr 24, 2018 10:53 am
Thanks for the pull requests !
You're welcome, they were waiting in my todo list and this seemed like a good opportunity.

RamiLego4Game
Citizen
Posts: 73
Joined: Tue Jun 10, 2014 7:41 pm

### Re: [LIKO-12 V0.7.1_PRE] An open-source fantasy computer made in LÖVE

pgimeno wrote:
Tue Apr 24, 2018 11:44 am
I guess I could do checkpoint.map = TileMap:cut() to save and then TileMap = checkpoint.map to restore. Is that what you meant? Is it OK to modify the global TileMap?
Yes, it's fine to set that global, But you need to re-clone the map.

This would work: TileMap = checkpoint.map:cut()

Looking again at your code, it's well written, so good code !
My works:

pgimeno
Party member
Posts: 1557
Joined: Sun Oct 18, 2015 2:58 pm

### Re: [LIKO-12 V0.7.1_PRE] An open-source fantasy computer made in LÖVE

Thanks! I'm not happy about hardcoding the resolution. I forgot to clean that up. I'll send a PR to fix these two issues when I can.

I'd appreciate if you post an update when a LIKO-12 version that includes MazezaM is released on itch.io, so I can notify Malcolm Tyrrell and it can be added to the MazezaM page.

Edit: I've finally decided against both changes. The export/import code is pretty straightforward, and using Map:cut() involves many clones, as it has to be cloned both on save and on load as well as on game initialization and start. On the other hand, the print() calls use hardcoded positions, and changing the code to use an automatic text centring function seems a bit overkill, so since these positions are hardcoded, it already depends on a specific resolution anyway.

RamiLego4Game
Citizen
Posts: 73
Joined: Tue Jun 10, 2014 7:41 pm

### Re: [LIKO-12 V0.8.0_PRE] An open-source fantasy computer made in LÖVE

LIKO-12 now has a Github organization: https://github.com/LIKO-12
Most of the repostories has been transfared into the organization, and the main repository is now at https://github.com/LIKO-12/LIKO-12
LIKO-12's Website and documentation are now at https://liko-12.github.io/
My works:

### Who is online

Users browsing this forum: No registered users and 109 guests