develooper Front page | perl.sdl.devel | Postings from September 2010

SDL 2.516 Tutorial::LunarLander Error

Thread Next
From:
Pip Stuart
Date:
September 20, 2010 15:54
Subject:
SDL 2.516 Tutorial::LunarLander Error
Message ID:
AANLkTi=PWFnE1XxZwP2V-mzhTYypkCGPQ5h1UuCtHpZf@mail.gmail.com
Hi SDLPerl Homiez,

I just tried to install SDL 2.516 from the CPAN onto my Ubuntu box &&
I'm perplexed as the install process seemed to succeed but when I ran:
[pip@AkuA9KH0Zq~/.tmp]perl -MSDL::Tutorial::LunarLander=lander.pl -e1
[-] created 'lander.pl'
[-] created 'images'
[-] created 'images/ship.jpg'
[-] created 'images/background.jpg'
[pip@AkuA9KH0pf~/.tmp]perl lander.pl
Can't call method "w" on an undefined value at lander.pl line 22.

I also tried `perl -MSDL::Tutorial -e 1` && a black window flashed on
the screen kinda as expected && `perl
-MSDL::Tutorial::Animation=sdl_anim.pl -e 1` did properly animate the
blue rectangle slow then fast.

Any ideas why lander.pl line 19
SDL::Image::load('images/background.jpg'); would fail? Thanks in
advance for any help. I want to get at least basic SDLPerl stuff
working to learn from (if not FrozenBubble).

Peace,
-Pip@CPAN

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About