Petri consumes glögg and codes with you

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: Petri consumes glögg and codes with you

Post by JKos » Tue Dec 04, 2012 9:30 pm

WOW, that's really awesome. And you are lightning fast.
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450

User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: Petri consumes glögg and codes with you

Post by JKos » Tue Dec 04, 2012 9:32 pm

How about onKeyPress(key) hook? I can bring you moar glögg (pirusti lisää glögiä). I live in Espoo :D
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450

User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: Petri consumes glögg and codes with you

Post by Diarmuid » Tue Dec 04, 2012 9:32 pm

Whaaaat? Crazy! Petri you are amazing.

User avatar
thomson
Posts: 337
Joined: Thu Sep 13, 2012 9:55 pm
Location: R'lyeh
Contact:

Re: Petri consumes glögg and codes with you

Post by thomson » Tue Dec 04, 2012 9:36 pm

petri wrote:http://i.imgur.com/VdTj3.jpg
And this is how it's done:
Amazing piece of fine work. I bow to your superb coding skills, sir!
[MOD] Eye of the Beholder: Waterdeep sewers forum sources; Grimtools (LoG1 -> LoG2 converter) sources

User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: Petri consumes glögg and codes with you

Post by JohnWordsworth » Tue Dec 04, 2012 9:37 pm

*Bows down to Petri*

That's really awesome. With that in mind a party:onShowMenu(menuScreen={inventory, map}) and party:onHideMenu() hook would be super cool, because then we could show screen elements only when in the inventory (water meter). (Might be possible already?)

Just a quick thought, would the screen coordinates be better as normalised values (0-1) or perhaps we will need a getScreenSize() method to do this ourselves?
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.

User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Petri consumes glögg and codes with you

Post by petri » Tue Dec 04, 2012 9:39 pm

JohnWordsworth wrote:Just a quick thought, would the screen coordinates be better as normalised values (0-1) or perhaps we will need a getScreenSize() method to do this ourselves?
g.width and g.height return the screen dimensions.

User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: Petri consumes glögg and codes with you

Post by JohnWordsworth » Tue Dec 04, 2012 9:40 pm

petri wrote:g.width and g.height return the screen dimensions.
Of course you'd thought of that - I should never had doubted you! :p

Oh man, that GUI code sets everything free. You'll be able to have all sorts of puzzles and even animated items / bars on the GUI. I can picture books of lore and all sorts appearing now :).
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.

User avatar
thomson
Posts: 337
Joined: Thu Sep 13, 2012 9:55 pm
Location: R'lyeh
Contact:

Re: Petri consumes glögg and codes with you

Post by thomson » Tue Dec 04, 2012 9:45 pm

JohnWordsworth wrote:... because then we could show screen elements only when in the inventory (water meter). (Might be possible already?)
We'll soon be able to die out of thirst! Yay! :)
[MOD] Eye of the Beholder: Waterdeep sewers forum sources; Grimtools (LoG1 -> LoG2 converter) sources

User avatar
Kuningas
Posts: 268
Joined: Wed Apr 11, 2012 10:29 pm
Location: Northern Finland

Re: Petri consumes glögg and codes with you

Post by Kuningas » Tue Dec 04, 2012 9:47 pm

Bad news, I don't have any Glögg.

The good news is that amazing things are happening in this topic!
BASILEUS

User avatar
crisman
Posts: 305
Joined: Sat Sep 22, 2012 9:23 pm
Location: Italy

Re: Petri consumes glögg and codes with you

Post by crisman » Tue Dec 04, 2012 9:48 pm

thomson wrote:
JohnWordsworth wrote:... because then we could show screen elements only when in the inventory (water meter). (Might be possible already?)
We'll soon be able to die out of thirst! Yay! :)
Ah, a water bar is exactly what I need for my thirsty script!! ^_^

Anyway, good job Petri! :D

Post Reply