This post is a portion of my mini-series on Object Oriented Game Development using the Allegro 5 library. You can see all of the posts by going to http://fixbyproximity.com and clicking the “OOP Game Development” button at the top of this site.
Full Game Source Here
Videos in the Series:
- Object Oriented Game Development – Intro
- Object Oriented Game Development – Part 1
- Object Oriented Game Development – Part 2
- Object Oriented Game Development – Part 3
- Object Oriented Game Development – Part 4
- Object Oriented Game Development – Part 5
- Object Oriented Game Development – Part 6
- Object Oriented Game Development – Part 7
- Object Oriented Game Development – Part 8
I have a problem here, I´m using Ubuntu 11.10, and if you use the or , you have to compile with g++, not gcc!
G++ is the compiler required to compile C++ code. GCC is the compiler used for C code. If you are doing OOP then you’ll need to use C++ and the G++ compiler.
Hi:
Cannot load de bitmap in SpaceShip.cpp file?
Thanks.
I’m not exactly sure what you are asking.
I can use the function “al_load_bitmap (“bitmap.bmp”);” in file “SpaceShip.cpp”?.
I believe he was asking whether you can place the load bitmap function in the classes init function. I believe you can. I guess for organizational purposes…
Thanks again for the awesome tutorial Mike.
I had a little error in SpaceShip.cpp with the same syntax Mike uses. I Was getting an error
‘Error C2572: (class::member) : redefinition of default parameter : parameter param’
on the line where SpaceShip::Init redifines the default value (ALLEGRO_BITMAP *image = NULL). Anyway i removed the ‘= NULL’ and it solved this error. This error might just happen in the VC++ express version I use. I also noticed neon was having a problem with al_load_bitmap(“whatever.png”) loading a file. I made the same mistake, this call has to be after al_init_image_addon() so move it to the Project Init area after the addon inits. If your still having issues, check your file name is correct and in the project directory. Hope this helps some of you. Cheers Dev
Hi Mike,do you have the code in the beginning of these tutorials? I just wanna do it with your video step by step.
Thanks for the great tutorials! I do love it.
Hi Mike,
Thanks for the great tutorials.
Just letting you know this one ends at 6:06 and cuts off mid sentence when you are talking about iterators for the list of objects.
Thanks
at 16:58 you say that iter2 is equal to current iter so we wouldnt chechk already chechked , but arent you exactly doing that? , shouldnt it be iter2 = iter +1 ?
@Ivan
No, because then he uses pre-incrementation in this for loop (++iter2).