![]() |
|
KrampusHack 2016 |
Elias
Member #358
May 2000
|
Yay, game submitted in a PM to Onewing! (Hope that's what I was supposed to do.) -- |
Vanneto
Member #8,643
May 2007
|
I'll also be needing a couple of extra days. I thought I'd have the previous week off but I had less time than I hoped for unfortunately! 🎅 In capitalist America bank robs you. |
bamccaig
Member #7,536
July 2006
![]() |
Edgar Reynaldo said: It's hardly a library. It may be a short lived library, but effectively a library is just reusable code and that's what it is. Edgar Reynaldo said: Oh grow up. Allegro implicitly changes global state all the time, and it's your responsiblity to set it back. OpenGL much? In Allegro's case there's likely a performance justification for leaving that state tainted (but heavily documented!): if Allegro were to try to capture the initial state and restore it for each relevant OpenGL operation it would likely cripple the library's performance. That's a valid concern. I think it's terrible that OpenGL bleeds into Allegro 5, but I trust that it's necessary (if it isn't then Allegro shouldn't be doing that either). If it affected your library then you could readily argue that it was justifiable to alter the global state without restoring it, but in this case I don't think that's applicable. The affected bit of your library seems to predominantly initialize state a single time for later, which can certainly absorb the negligible impact of capturing and restoring the state. The runtime cost is much less than the developer cost. Here is global state rearing its ugly head. It's a problem. That is why the industry has agreed that global state is problematic in general and that it should be used sparingly. I imagine that attempting to use this code in a multithreaded program that was "crazy" would be impossible. Perhaps some of that burden would hinge on Allegro, OpenGL, and physical hardware, but to whatever extent is possible, the software should not be a limiting factor. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Elias
Member #358
May 2000
|
It's always per-thread global state (in the case of OpenGL and Allegro), so multi-threading works (it can still be an issue if you change state on one thread and expect it to change on another, of course). -- |
Onewing
Member #6,152
August 2005
![]() |
Hello everybody! Hope everyone enjoyed KrampusHack and more importantly, had a great Christmas! Or...vice versa. I've received several entries. A surprise family event popped up that I'm going to head off to now. I'll send out the gifts this evening and you'll have the rest of the week to play them before the Secret Santas start posting to the allegro.cc Depot forums. ------------ |
Mark Oates
Member #1,146
March 2001
![]() |
We still have to the 1st though, right? -- |
GullRaDriel
Member #3,861
September 2003
![]() |
Yep ! "Code is like shit - it only smells if it is not yours" |
Onewing
Member #6,152
August 2005
![]() |
The original topic says: Onewing said: Send the review back to the secret santa (via me, if your secret santa never revealed their identity). Try to do so before January 1, 2017. The intention here is that the Secret Santa knows that their personalized gift was played and enjoyed by the intended sole recipient before anyone else. January 1st is when all secret santas may reveal themselves to everyone by posting their game on the depot. We decided in this thread to move the submission date back to the 26th (as it was originally). Several people have followed this rule. I'm ready to send the submissions I got, what say you group? ------------ |
Eric Johnson
Member #14,841
January 2013
![]() |
Distribute the submissions which you have already received. Then let the rest trickle out as they become available.
|
Elias
Member #358
May 2000
|
I just updated my .zip to include a windows and a linux executable. If you downloaded it already maybe re-download it, should make it much easier for the recipient to play -- |
Mark Oates
Member #1,146
March 2001
![]() |
Oh noooo... I still haven't finished my game. Well, I'll continue working on it. It appears Santa had a bit of a liftoff delay! -- |
amarillion
Member #940
January 2001
![]() |
Without a deadline, a competition is just a "I'll try to finish a game someday", which is pretty much what I'm doing all year long anyway But I don't want to be negative here. Those of you following the "late" deadline, best of luck! In the mean time, let's open us up some gifts! -- |
bamccaig
Member #7,536
July 2006
![]() |
Certainly the deadline is meant to be motivation for a "hack" event. Obviously a floating deadline is therefore demotivating. That said, the whole event was kind of whimsical this year so if you're motivated to get something done still I don't see the harm. But certainly the next KrampusHack should be more precisely defined. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Onewing
Member #6,152
August 2005
![]() |
bamccaig said: But certainly the next KrampusHack should be more precisely defined.
Ah, but that would be a SantaHack. The spirit of KrampusHack is that it itself is a hacked together event. I have sent out the completed gifts. There were 4 that were done on time and one person said they are delayed. Two people who completed games also received games! ------------ |
Eric Johnson
Member #14,841
January 2013
![]() |
I received my gift. It's a blast to play!
|
Elias
Member #358
May 2000
|
I like my gift a lot - but I don't know how to change key assignments and I can't reach the space bar on my keyboard without letting go of WASD - so it gets extra hard to play -- |
bamccaig
Member #7,536
July 2006
![]() |
What the Hell kind of keyboard do you have?! -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Elias
Member #358
May 2000
|
I use the mouse with the left hand, so WASD is bad in general (since I have to move the right hand over). I always use cursor keys instead. [edit:] [xkeymap] 113=1 114=4 111=23 116=19 (that maps cursor keys to WASD) Let's see how many krampusses I can kill now... -- |
bamccaig
Member #7,536
July 2006
![]() |
Interesting. Are you left handed? -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
LennyLen
Member #5,313
December 2004
![]() |
Elias said: I always use cursor keys instead. Wouldn't IJKL be better, since you can still easily reach the spacebar with your thumb?
|
MiquelFire
Member #3,110
January 2003
![]() |
For most desktop keyboards, yes, but laptop keyboards might have the cursor keys close enough for that not to matter. --- |
Elias
Member #358
May 2000
|
IJKL would work for me - or WASD and having jump on F instead of Space. Anyway, the lesson here is don't hardcode keys -- |
Onewing
Member #6,152
August 2005
![]() |
That's a wrap on KrampusHack! Thanks for participating! Here's some info: Participants that received gifts: Participants that did not get gifts: You can now upload your games to the depot. I can see several people have already done so. Thread credits go to those who completed and provided games. ------------ |
Mark Oates
Member #1,146
March 2001
![]() |
Now we know who's been naughty and who's been nice. [edit] I'm still working on my game loool -- |
GullRaDriel
Member #3,861
September 2003
![]() |
It's still the first of January and I'm packing my entry. UPLOADED FFS ! "Code is like shit - it only smells if it is not yours" |
|
|