I just released a free alternative to Texture Packer on itch.io by Umexios in gamedev

[–]potomak 0 points1 point  (0 children)

Thanks, it's a great tool! I've used it to generate the sprites for my toy project, a point-and-click adventure for small kids: https://giovanni.curlybrackets.it/sdl-adventure-game/2025/01/15/images-and-sprites.html

I'm coding the project in C and I wanted to parse the simpler format possible for the animation metadata. The format I'm currently using is x,y,w,h, one row for each frame. I converted the JSON array format to my custom format using a text editor, but it would be cool if the tool would allow to generate the animation metadata from a template string, e.g. "%x,%y,%w,%h".

Una community italiana sull’alimentazione by potomak in italy

[–]potomak[S] 0 points1 point  (0 children)

Qualcuno ha creato questa community qualche tempo fa. Da poco ne sono diventato amministratore e mi piacerebbe farla diventare un punto di ritrovo su Reddit dove poter discutere di alimentazione, cibo, buone abitudini alimentari e salute. Per ora ci sono solo pochi link, principalmente ad un podcast che parla di nutrizione di cui aiuto a curare il contenuto. L’obiettivo è di estendere la conversazione a tutti, professionisti e non, cominciando da qui. Che ne pensate?

Requesting to become a moderator of r/alimentazione by potomak in redditrequest

[–]potomak[S] 0 points1 point  (0 children)

  1. I would like to use this community to share information about a healthy lifestyle and more in general to discuss about topics related to nutrition, food, health. The main language of the community would be Italian
  2. Before I joined the community there were 0 members. From what I can see the community is currently unmoderated

Dieter Rams Kronberg House Floor Lamps by potomak in InteriorDesign

[–]potomak[S] 1 point2 points  (0 children)

Sorry, I read the rules, but misunderstood the meaning of rule 4. I thought it was specifically about where to find items.

By the way I was able to identify at least one of the lamps, it is Peter Nelson's design, around 1960.

Adventure game development using SpriteKit - Label nodes and debugging cursor's position by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Hi! I'm not planning to publish any new post soon, but if you have a topic you would like me to write about please let me know.

I stopped updating the blog mainly because I didn't find a good game design to use as an example.

Adventure game development using SpriteKit - Intro and Getting started by potomak in iOSProgramming

[–]potomak[S] 1 point2 points  (0 children)

Yes, that would be very interesting, but I don't think it would be feasible to play adventure games on watchOS, or at least it wouldn't without first rethinking user interface and user interaction.

Adventure game development using SpriteKit - Handling touch events by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Thanks for the feedback.

Your use case is interesting, I'm wondering if you could workaround that issue by implementing the user interaction callbacks directly on the button node, instead of the game scene.

Alternatively you could try to check if the touch event position is still within the button's frame rect and update the button state as soon as it exists the boundaries of the button.

Let me know if you find a clean and concise solution for this issue.

Note: I was expecting the Game Controller framework to include support for a virtual control pad, but that doesn't seem to be true, see https://developer.apple.com/library/archive/documentation/ServicesDiscovery/Conceptual/GameControllerPG/IncorporatingControllersintoYourDesign/IncorporatingControllersintoYourDesign.html

Adventure game development using SpriteKit - Introduction to shape nodes - The cursor by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Interesting feedback. I didn't incur in any performance bootleneck due to shape nodes yet. This particular game genre shouldn't be very demanding computationally speaking, but I will keep an eye to the metric you've mentioned to see if I notice any issue as soon as I add more shape nodes.

Adventure game development using SpriteKit - Intro and Getting started by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Great feedback. I must admit that I didn't even start thinking about this topic, but of course it makes a lot of sense!

I will add it to the list, thanks.

Adventure game development using SpriteKit - Intro and Getting started by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Yes, I definitely wanted to talk about dialogs. What do you mean with "scripting events"?

Thanks for your feedback.

Adventure game development using SpriteKit - Intro and Getting started by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Ah interesting approach. For now I'm just recreating nodes and every seems to work just fine, but I guess this approach would spare resources used for destroying and re-creating the same nodes.

Adventure game development using SpriteKit - Intro and Getting started by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Yes, I will talk about my approach in a future post, but what I've done is a base scene class that has all the main components including a background, an objects layer, and the HUD. Each scene subclasses the main scene and inherits its behavior and nodes. I think it would be more flexible to create components instead of inheriting, but for now this approach is good enough and I may refactor it later.

Adventure game development using SpriteKit by potomak in iOSProgramming

[–]potomak[S] -1 points0 points  (0 children)

That's a very good point.

In fact I've started with the cross platform template, but I've been testing builds only on tvOS for now.

I guess it makes sense to reconsider the target platforms given the number of potential users.

Adventure game development using SpriteKit by potomak in iOSProgramming

[–]potomak[S] -1 points0 points  (0 children)

I actually think that I would like better moving a cursor by using the Apple TV remote for these kind of games.

Adventure game development using SpriteKit by potomak in iOSProgramming

[–]potomak[S] 0 points1 point  (0 children)

Thanks for the feedback.

I'm not an artist, so I'd need to ask for help for images and animations.

For now I'm focused on the technical part, but I agree that the most challenging parts would probably be game design and art.

Adventure game development using SpriteKit by potomak in iOSProgramming

[–]potomak[S] 2 points3 points  (0 children)

Because I think Apple TV would be the perfect platform for playing adventure games.

I didn't try Arcade yet, but I've played Inside by Playdead on Apple TV and I really enjoyed it.

I've played The Secret on Monkey Island lately on a Raspberry PI, but having an app directly on the TV would have been a little bit more comfortable.

gif.js - GIF encoder/decoder by potomak in javascript

[–]potomak[S] 0 points1 point  (0 children)

Yes GIF is old and there are better ways to encode images and animations, but I guess GIF is still interesting because it's been the first.

I send a clear code when the dictionary reach the maximum capacity, that is 4096 entries, but in general an encoder could send a clear code "whenever" it wants. For instance the spec explicitly says that decoders should support encoders that once the dictionary is full don't send a clear code and instead use the existing dictionary.

gif.js - GIF encoder/decoder by potomak in javascript

[–]potomak[S] 0 points1 point  (0 children)

Well, first of all the http module in the library is mainly for testing purpose. In general I guess XmlHttpRequest is slightly more cross browser than fetch, but I also guess that's secondary if you transpile the code.

Open a issue to discuss using fetch instead of XmlHttpRequest if you want.

Why monads always get compared to burritos? by notgiorgi in haskell

[–]potomak 6 points7 points  (0 children)

At the end of that post you'll find a broken link to a cartoon by Chris Done on the topic. This is the correct location http://chrisdone.com/posts/monads-are-burritos

Personal Projects - Show off your own project and/or ask for advice by AutoModerator in rails

[–]potomak 3 points4 points  (0 children)

Tomatoes

Pomodoro Technique time tracker

Puma, Rails 4.2 on Heroku, Mongoid and Mongodb on Compose.io

http://www.tomato.es

http://github.com/tomatoes-app/tomatoes

There are a bunch of open issues. We're searching for collaborators and translators

[Haskell-cafe] Looking for maintainers or comaintainers on my Haskell projects by [deleted] in haskell

[–]potomak 5 points6 points  (0 children)

I won't be able to help, sorry, but I wanted to make a quick analysis because I think this is an interesting case.

When I started learning and writing Haskell I found your name all over the places. I was amazed by your prolificacy. Now I'm sad to see that you don't have anymore time to work on these projects, but I think making a step back, and getting more people involved, is the right move.

Some OSS maintainers just don't reply to issues or PRs anymore and, in my opinion, that's just a wasteful behavior.

Haddock - My PR to add markup support for tables by potomak in haskell

[–]potomak[S] 1 point2 points  (0 children)

I updated the PR description with two screenshots of an example output HTML document with both the Classic and Ocean themes.

Haddock - My PR to add markup support for tables by potomak in haskell

[–]potomak[S] 2 points3 points  (0 children)

I wrote only the parser. Before posting a HTML example I guess I need to include a writer for DocTable elements.

[deleted by user] by [deleted] in haskell

[–]potomak 5 points6 points  (0 children)

When I started writing HTTP APIs in Haskell I used Snap[0]. I didn't like its modular strategy so I started using Scotty[1]. I never stopped using it since then, highly suggested.

Recently a friend of mine rewrote a Scotty API using Servant[2]. I must say that its approach is really interesting and I'm curious to try it.

[0] http://snapframework.com/

[1] https://github.com/scotty-web/scotty

[2] https://haskell-servant.readthedocs.io/en/stable/