LD13 December 5–8, 2008

Screen capture on Mac?

Quick question for any Mac users.

Is there any software that can take a desktop screenshot at regular intervals (once per minute?) and save it to a folder?  I would like to do a timelapse, but recording a video file over two days seems a bit too risky.

Tags: mac, osx

Comments

05. Dec 2008 · 16:02 UTC
You could improve the naming convention, but running the following as a Ruby script will do:
05. Dec 2008 · 16:03 UTC
Oh, and you’d probably want to sleep 60 seconds, not 1. :)
Diragor
05. Dec 2008 · 16:53 UTC
Or you could just use cron or launchd to run that screencapture command every minute.
05. Dec 2008 · 17:33 UTC
Ah, thanks for the responses… but I’m not really sure how to run Ruby scripts on the mac, nor how to run cron jobs on my mac. Sorry! o_o;
Devon
05. Dec 2008 · 18:42 UTC
how about applescript?
05. Dec 2008 · 19:42 UTC
Ah, the applescript almost works… but only saves one screen! D: I can’t seem to figure out how to fix that.
05. Dec 2008 · 20:35 UTC
Or you could use Automator.
05. Dec 2008 · 20:43 UTC
Ah, I managed to find a program called InstantShot that works for me. I run two instances of it, and each one is set to take a screenshot of a different monitor once per minute.

mjaulib

Bit late maybe, but anyway.. Here’s something I’ll probably use as baselib this time.

mjaulib-ld13.zip

Pretty basic stuff, nothing too fancy. Some functions for setting up SDL, Lua, PhysicsFS, and running things at a fixed logic rate with a free video framerate (for interpolation).  You call mjau_init first, then mjau_resize, then mjau_loop and handle the rest in the callbacks. Also got a png loader so you don’t have to pull in SDL_image just for that.

Allegro.Skeleton.Project

Hello,

Well I was supposed to be working on my compsci final project, but instead:

I’ve created a skeleton project for Allegro 4.2.2 on Microsoft Visual C++ 2008 Express (their free IDE).  This project includes a 2d graphics viewport, which can be scrolled/shifted, and a soundbox for your waves. There’s keyboard and mouse handling. There’s a sample background, sprite, and sound which obviously cannot be used in a Ludum Dare entry. These are just to make sure everything works right away.

This project and more info is here: http://sites.google.com/site/roboticarts/Home/allegro-blank-msvc-project

Post a comment if anything doesn’t work or if anything does work.

Another… erm.. ‘last minute library’

I did intend to tidy up and upload this a while ago, but never got around to it… It’s something I’m using for another project, but makes a fairly nice framework for quick little C++/D3D-based projects. Such as an LD48 entry…

www.bluescrn.net/ld48_13/ld48.zip

It includes:

– D3D init, window creation/resizing/windowed-fullscreen

– Texture loading

– 2D and 3D polygon blitter classes, using (very simple) shaders. (Easyish to add additional shaders)

– Bitmap font rendering (fonts created by the Angelcode BMFont tool, loaded using TinyXML)

– Basic render-to-texture support, and the beginnings of a postprocessing system – currently a fairly rough bloom effect

– Vector and Matrix maths classes

I know there’s still differing opinions over using ‘base code/custom libs’ like this – but this is all fairly basic stuff, and there’s nothing in here that couldn’t be found in other freely available libraries. Just judge my entry (if I manage to complete one!) accordingly…

A little thing I may use

I made this a while back which may be of use to some, and I may use it myself depending on what the theme comes out as.

http://screamingduck.fileburst.com/Cruft/FrameBatch.zip

Something for Flash,  Takes a bunch of frames and stores them as a jpeg for colour and png for alpha.  then breaks the fremes up into seperate BitmapData object on load.

I didn’t do any frame animation in Boomshakalaka, because it seemed to be fairly tricky to get animations into flash.  If  need them this time then maybe this will help.

 

i’m in.

ready to rok.

let’s go roads!

My sucky library

When I see all these awesome libraries people have, I feel ashamed I didn’t prepared properly :).

My library basically just creates an OpenGL context via SDL and that’s it.

http://ondrew.googlepages.com/angiine2008.12.05_21.15.20.7z

Usually I try to learn some new technology while working on Ludum Dare game, because the tight deadline makes me much more focused. So I would like to plug (and learn) Lua as a scripting language to my C++ engine. Let’s see how it goes.

Good luck to everyone.

Hi all, looking forward to my first ever attempt at Ludum Dare, should be a learning experience at the very least :-)

In the interest of upfrontness, and because it seems to be the done thing, have a link to the *extremely* primative base that I plan to use mrpiglet_base.zip.  It does very little, just provides a bit of a wrapper around some SDL + SDL_Mixer and OpenGL functionality.  Can’t imagine it’ll be of any use to anyone, but use/abuse as you wish anyhow.

Now I think it’s time to try and sleep off the Friday beers, see you all tomorrow for the event itself.  Cheers!

Tags: middleware, preparation, warmup

My LDKIT

It’s got basic graphics, sound, and lua interface stuff, as well as some handy things like random number generation, file load/save, fonts, matrix math and a few other odds and sodds. But it’s a major hodge-podge!

Notably missing is any kind of physics, but that doesn’t matter… This is just enough (well, plus a bit) to let me write my game in LUA with custom rendering stuff in C++, which is what I want.

http://kittylambda.com/ldkit

Good luck everyone!

1st time LD

Two weeks ago I thought to myself: Ok, this weekend I’ll write a 3D-Game. Well actually I stuck at a certain point and while browsing the internet I found “breaking the tower”! Made during a 48h competiton! Wow! Next one LD,…in two weeks! Yeah I will participate,…I need pressure to be able to do compromises!

Two weeks later I am sitting here in germany just coming home from watching a glorious victory of bayern munich in german football(soccer)league in tv and full of hope for tomorrow.

I’m going to code in Java trying to use the jMonkeyEngine that is using OpenGL. Too bad all I did until now was trying the tutorials and using Milkshape to model a very simple character.

Well, my goal is to finish a work. I am really curious about….

First Steps:

Kill the alarm at 4:55am! Start computer! Start coffee-machine! See the topic! Translate the topic! Shower! ThinkThinkThink….That my plan for the beginning!

This are my workspaces:

fridge

Cu in 5,5h, ToM

Count Me In

I’ve decided to enter again.  This will be Ludum Dare number 4 for me.  This time I’m planning to use BlitzMax and Jake Birkett’s Grey Alien BlitzMax Game Framework.  Here is the basic setup code I’ll be using (if you follow the “Start Here” document this should be your result, except I added a try-catch around everything for unhandled exceptions):

SuperStrict

?Win32
Import “../include/fullaccess.cpp”
Import “-ladvapi32”
?

‘Import various Mac OS API calls made in C.

?MacOS
Import “../include/GAGMacLib.m”
?

Include “../include/commoncode.bmx”
Include “../include/commontypes.bmx”

Try

ccCreateMutex(“BasicSetup”)

AppTitle = “BasicSetup”

ScreenWidth = 800
ScreenHeight = 600

Game = New TGame
Game.SetSubPathWrapper(“Grey Alien Games/Basic Setup”)
Game.Init()
Game.DebugDisplayX = 5
Game.DebugDisplayY = 95
Game.SetEscapeSound(“ButtonClick”)

Global images:TImageBank = New TImageBank
images.SetPath(Game.ImagePath)
Global sounds:TSoundBank = New TSoundBank
sounds.SetPath(Game.SoundPath)

‘Instance both types that we created
Global TitleScreen: TTitleScreen = New TTitleScreen
Global GameScreen: TGameScreen= New TGameScreen

Game.GraphicsCreate() ‘Create a graphics context
HideMouse ‘hide the mouse
LoadData() ‘load data using a function we will define
ccFlushAll() ‘flush keys and mouse

Local LoopExit:Int = 0 ‘boolean for exiting the main loop
Game.FixedRateLogic.Init()
Game.NoTimingTicks = 3 ‘only applied if Game.NoTiming=1

Repeat
‘do the logic separately from the drawing
If Game.MainLogicLoop() = -1 Then ShutDown()
‘draw the screen and flip it to show it
Game.ScreenDraw()
Until LoopExit = 1
ShutDown()

Function Shutdown()
Tgame.MakeGoodExit()
ShowMouse() ‘just in case it was hidden.
‘Exit the program
End
End Function

‘Instance both types that we created

Function LoadData()
AutoMidHandle True
ccClsVSync()’Ensure clear screen when loading

LoadSounds()
LoadImages()
TitleScreen.Load() ‘Call load method of TitleScreen
TitleScreen.Start() ‘Call start method of TitleScreen
‘Now loading is complete, let the main loop handle the drawing
Game.CurrentTScreen = TitleScreen

?Win32 ‘Has the app been suspended while loading? If so, deal with it.
If GetForegroundWindow()<>Game.WindowHandle
Game.SuspendedEvent = 1
EndIf
?
End Function

Function LoadSounds()
sounds.Load(“ButtonClick”) ‘load the sound “buttonclick”
End Function

Function LoadImages()
Game.mouse.Load(“pointer”) ‘load mouse pointer image
images.Load(“Paused”) ‘Load “paused” graphic
‘Create Paused sprite
Game.SpritePausedCreate(Images.Find(“Paused”))
End Function

Type TTitleScreen Extends TScreen
Field x#,y#

Method Load()
‘this is a TScreen method
ImageLoad(“title.jpg”,FILTEREDIMAGE)
MidHandleImage(Image)
‘this gets midhandled automatically
HeaderLoad(“logolarge”,screenwidth/2,100)
Menu = TMenu.Create(“ButtonMO”, “ButtonClick”,0,0,10)
‘Add a new Button
‘Allow Space and Enter to trigger it
Menu.AddNew(“playgame”, “playgameMO”).OKButton = 1
Menu.AddNew(“exitgame”,”exitgameMO”)
Menu.Centre() ‘Center the Menu
‘Move the Y position of the menu
Menu.SetY(Menu.Y+50)
End Method

Method Start()
Super.Start() ‘Call Start method of base type TScreen
Game.GameFade.Init(FADE_SPEED,0) ‘fade in
Game.Mouse.On()
Game.FixedRateLogic.Init()
End Method

Method Logic()
‘Call the logic method of the base type
Super.Logic()
‘If the start button is clicked, fade to the next screen
‘and set that next screen to the GameScreen
If Menu.FindButton(“playgame”).Clicked Then
Game.GameFade.Init(FADE_SPEED,1,Game.MusicChannel, True)
Game.DestinationTScreen = GameScreen
EndIf

‘If the exit button is clicked, fade the screen and exit
If Menu.FindButton(“exitgame”).Clicked Then
Game.GameFade.Init(FADE_SPEED,1,Game.MusicChannel, True)
Game.DestinationTScreen = Game.ExitScreen
EndIf
End Method

Method Draw()
SetBlend SOLIDBLEND
‘Image is a field of the base type TScreen
DrawImage(Image,screenwidth/2+x,screenheight/2+y)
SetBlend ALPHABLEND
Header.Draw() ‘Draw the logo that we loaded earlier
Menu.Draw() ‘Draw the Menu
End Method
End Type

Type TGameScreen Extends TScreen

Method Load()
ImageLoad(“bg1.jpg”)
HeaderLoad(“logosmall”,210,35)
End Method

Method Start()
Super.Start()
Game.GameFade.Init(FADE_SPEED,0) ‘initiate fading
Game.Mouse.Off() ‘Turn the mouse off
Game.FixedRateLogic.Init()
End Method

Method Logic()
Super.Logic() ‘handles menu core logic
End Method

Method Draw()
Cls
SetBlend ALPHABLEND
DrawImage(image,0,0)
Header.Draw() ‘Draw the header
SetColor 255,255,255
‘Draw instructional text
ccDrawTextCentre(“Press <esc> to Exit”,560,1)
End Method

Method SetEscDestination() ‘over ride base type method
‘if esc is pressed, go to the TitleScreen
Game.DestinationTScreen = TitleScreen
End Method
End Type

Catch ex:Object

Print “Unhandled exception:”
Print ex.ToString()

End Try

Tags: MrPhil

My base code

I’ll probably use haXe and make a little Flash game, just like last time. Here is my base code, which can use graphics and maps from Tile Studio. I added some extra code for basic objects, which I find myself writing every time. Depending on the theme, I might use Physaxe instead. Or maybe I’ll use BlitzMax and make a Windows game.

It looks like I’ll be able to spend most of the weekend doing the LD, yay!

Now it’s time to sleep!

LD48_13 Basecode

My basecode For LD48_13 is largely the same as the past two competitions.  I have updated it a little:

  • Classes are now organized into the package net.lonestranger.common, game and network.
  • Network isn’t really too useful yet.  The only class that exists in it is called Report.  It’s job is to take a string of data and send it via POST to a website, where it can be digested as fit.  For example, sending scores back to a central repository.
  • You can take jpg screenshots by hitting F10.  They are named based on the current date/time and dumped into the working directory.

Here is the link to download it.

I didn’t really list my goals in my declararion post a few days ago, so I’ll do it now.

  • Keep the same art style as last time.  I sketched things out on paper and scanned them in so I could colorize.  Keeping with bold colors and gradients is probably what I’ll do.
  • KISS – Keep It Simple, Stupid!  Making something too complex is just a recipe for a headache at 1pm on Sunday afternoon.
  • Make useful additions to the basecode that can be used in later competitions.  The screenshot stuff is an example of something I did previously that helps out a lot.
  • Finish most of the work by Saturday night so I can spend Sunday polishing.

Ok, time to finish work and then I’m off to Thanksgiving, The Sequel, but I’ll check in after 8pm Pacific tonight to see the theme I need to start thinking about.  I expect everyone to be in FULL CODE MODE when I get back.  😉

Hey, you people still exist!

I would so much enjoy joining you all this weekend, but I’m already overbooked.  I’m going to do my darnedest to participate next time.

Blame Phil Hassey that I’m here.  I was going through my PAX swag, and found a business card with his name on it.  With the game he started here.  His name brought up faint memories of 48 hour games and sleep depravation.

People probably forgot about me since I’ve only done three 48 hour compos.  I did games for construction/destruction/sheep, infection, and growth.  I’ll post up my games to the archives once I can find where I left them.

Tags: CagedRat

Theme: ROADS

So the theme is Roads. According to the voting results, it was the only one with a positive number of votes overall, and yet the IRC channel is erupting with people surprised that it was the theme that won out.

What are some ideas?
– Building roads between cities to facilitate commerce.
– Managing traffic congestion.
– Planning/Acting on The Road Ahead for your life.
– Maintaining a small town’s roads.
– Transporting materials along a long road.
– Find your way without a map, searching for a lost road.
– Strategically shut down certain roads to guide a getaway car to the police.

There are plenty of ideas, and I’m sure I’ll come up with more.

Still Nothing

Still haven’t made any sort of easy library I could use. My game’ll probably just use SDL and SDL_ttf, and possibly sound with SDL_Mixer if I have any time. I just hope the theme is good.

Too bad this starts so late here… I won’t be able to start tonight. I’ll try to get up early tomorrow though. I am definitely going to at least try to make an entry for LD13.

Comments

05. Dec 2008 · 20:54 UTC
Where are you? I know some people will stay up long enough to find out the theme, and then crash so they can dream about it and be fresh in the morning.

Roads

Roads

Tags: motivation

Tradition

Comments

05. Dec 2008 · 23:36 UTC
:)

I want to go to there.

I’m in! I’m going to try my hardest to keep it simple and fun, but the ideas I have already are way off on the complexity scale… but whatever happens i’ll do something. Should be fun!

oh and here’s my basecode:

int main( int argc, char *argv[] ) { return 0; }

Comments

05. Dec 2008 · 22:35 UTC
Hey, nice basecode!
jovoc
05. Dec 2008 · 23:09 UTC
thats awesome… I am in Berkeley.