Navi - a message library (6/11 demo)

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: A message system

Post by KingRecycle »

I'd like to see more of this. I would love to use it in projects.
User avatar
litearc
Citizen
Posts: 57
Joined: Thu May 17, 2012 12:40 am

Re: A message system

Post by litearc »

@Roland_Yonaba: I'll add that in next.
@T-Bone: A face-pic option would work best if the message box is a certain size. Right now, that changes with the number of lines, but I'll add in an option where you specify the number of lines the message box holds and it handles the rest. Then it'll be easy to add face-pics.
@KingRecycle: As you wish! Just implemented "choices".
Attachments
message system choices
message system choices
choices.png (25.27 KiB) Viewed 3942 times
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: A message system

Post by TechnoCat »

Hey, I like this quite a lot more than my Message in a Bottle library.
I love me some self-typing text dialogs.
Also, how did you do the colors?
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: A message system

Post by Roland_Yonaba »

litearc wrote:@Roland_Yonaba: I'll add that in next.
Nice!
I like the way you added "choices" feature by the way...
Why not setting up a Github?
User avatar
litearc
Citizen
Posts: 57
Joined: Thu May 17, 2012 12:40 am

Re: A message system

Post by litearc »

@TechnoCat: Thanks! This is geared more towards RPGs, so scrolling text is important. I really like the look of Message in a Bottle, though. I might have different window skin options and have one like that. The colored text and other features are parsed and processed when the message is created. The text is separated into "blocs", which are blocks of text of one color. Then, when the message plays, the text is displayed on a per bloc instead of a per character basis, which greatly reduces the processing demand. Hope that helps.

@Roland_Yonaba: I've never used github. Since this is a small project and only I'm working on it, I'm not sure of the use. The source code is available to you either way. The next release will be in a few weeks and like before, will have simple examples for all the features.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: A message system

Post by TechnoCat »

litearc wrote:@Roland_Yonaba: I've never used github. Since this is a small project and only I'm working on it, I'm not sure of the use. The source code is available to you either way. The next release will be in a few weeks and like before, will have simple examples for all the features.
If you think it will greatly slow you down, don't use it. (for now)

But, the use of it is so we can subscribe to it and see changes more easily by email or RSS reader. We also can fork it and submit pull requests along with bug reports with inline discussion. It really brings the community to your code. http://bitbucket.org is also a good one.

Hardon Collider is a pretty good example. https://github.com/vrld/HardonCollider
See all changes to the code: https://github.com/vrld/HardonCollider/commits/master
See specific changes to changeset: https://github.com/vrld/HardonCollider/ ... b2de00bb85
Someone helping out by suggesting new ideas: https://github.com/vrld/HardonCollider/issues/14
Code written by someone else is being pulled into the main repo: https://github.com/vrld/HardonCollider/pull/8
Issues are neatly organized into open and closed categories: https://github.com/vrld/HardonCollider/ ... state=open

Github has a lot more to offer too.

But still, the bottom line is if you think it will slow you down, go ahead and not do it.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: A message system

Post by Ref »

Very interesting project.
Afraid I'm not too good at explainations so just created a temporary 'LOVE' to show what I'm suggesting.
All changes are commented.
Just thought that the window location should be more easily modified and that it's size should reflect what is being displayed.
Got the width to work but I'm sure you can do a better job on height.
Great idea!
Attachments
gameVarient.love
Slightly modified version of game.love
(26.92 KiB) Downloaded 126 times
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: A message system

Post by Roland_Yonaba »

litearc wrote: @Roland_Yonaba: I've never used github.
A couple of days ago, i would have said : "me too".
Anyway I tried it, and now I can't live without. :ultraglee:
litearc wrote: Since this is a small project and only I'm working on it, I'm not sure of the use.
Well don't say that. It maybe small, but it stands for a purpose, and does it well. A *lot* of people use Löve without having a account on that board, and might be interested in this. Plus, Github let people monitor your progress, commit after commit. Experienced people could help, giving comments, tips on the source.
But I'm not saying "do this now!"... but just "would you please consider that ? "
litearc wrote: The next release will be in a few weeks and like before, will have simple examples for all the features.
Great! :neko:
TechnoCat wrote: Hardon Collider is a pretty good example. https://github.com/vrld/HardonCollider
See all changes to the code: https://github.com/vrld/HardonCollider/commits/master
See specific changes to changeset: https://github.com/vrld/HardonCollider/ ... b2de00bb85
Someone helping out by suggesting new ideas: https://github.com/vrld/HardonCollider/issues/14
Code written by someone else is being pulled into the main repo: https://github.com/vrld/HardonCollider/pull/8
Issues are neatly organized into open and closed categories: https://github.com/vrld/HardonCollider/ ... state=open
Hey, how come i'm not in your list ? :ultrahappy: https://github.com/Yonaba
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: A message system

Post by coffee »

Github offers more options and features but there's one thing that could make a big point for Bitbucket. All project with free accounts in GIT must be open-source. That's fine for example keep public libraries but if eventually you need do some private repository (closed-source project, only for backup remotely a project or even something that you don't want yet to release now) you can do it for free in Bitbucket and so have public/private projects with same account.
Roland_Yonaba wrote: A couple of days ago, i would have said : "me too".
Anyway I tried it, and now I can't live without. :ultraglee:
BTW some (not-boring) git tutorials advised?
User avatar
litearc
Citizen
Posts: 57
Joined: Thu May 17, 2012 12:40 am

Re: A message system

Post by litearc »

Wow, ok, you guys convinced me! I'll try to put it up by the next release. I'm still new to lua and learning, so if people actually spend time looking through my code, it'd be really helpful.

@Ref: I hadn't implemented it the message box function in the first release. It's in there now and the dimensions are automatically set based on the width of the longest line and the number of lines. Thanks though.
Post Reply

Who is online

Users browsing this forum: No registered users and 68 guests