Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Video of what I've been doing

This thread is locked; no one can reply to it. rss feed Print
Video of what I've been doing
SpectreNectar
Member #10,969
May 2009
avatar

video

Hi guys

Thought I'd share this with you. I really hope this isn't the wrong forum to post it in... But either way it's a sort of 2.5D "engine" that I use Allegro for.
Some day... some day. It will be finished :)

Feel free to comment or question

gnolam
Member #2,030
March 2002
avatar

Embed it!
([http://www.youtube.com/watch?v=UDt7opJdc9s])

Looks nice. Any plans on what you're going to use it for? :)

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Arthur Kalliokoski
Second in Command
February 2005
avatar

What is it exactly? The red thing reminds me of the terrain editor in Transport Tycoon, and I guess the tiny little moving thing is testing collision detection and the (in)ability to climb steep slopes.

They all watch too much MSNBC... they get ideas.

SpectreNectar
Member #10,969
May 2009
avatar

Thank you!

I intend to make a game of it. A sort of 2.5D sci-fi/horror game with platform and top-down-shooter elements. I'm working on a story too but I'm not much of a story writer, heh, but I know I guy who is so I manage.

Right now it is sort of a terrain editor yes, only the focus is on getting the walls and floors to look right so the green goblin guy (a stand in actually) can move around on everything.

I have a ton of plans for it like transparent tiles and maybe better lighting (etc.) but right now that's all it is :)

Everything is subject to change heh...

William Labbett
Member #4,486
March 2004
avatar

Brilliant.

What about shadows - could make the scenes easy for the eye to understand.

AMCerasoli
Member #11,955
May 2010
avatar

Yhea it looks cool... What resolution are you using? it seems very small.

Neil Walker
Member #210
April 2000
avatar

marble madness

Neil.
MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

SpectreNectar
Member #10,969
May 2009
avatar

Shadows huh? :) Well I haven't really a clue how to do those yet. At least not the "right" way. I'll look into it one way or the other. Also I might add a frame at edges. Oh, and I'm thinking of lighting the cells that are higher in the "grid" like so:
(see attachment)

(only problem is transparency of textures (which I may or may not need))

Resolution is 640x360 (16:9) which is working out great so far. At least on my own monitor heh. For future videos I'll try and record in full screen and see if that looks better.

Hehe Neil Walker, you are absolute right there are many similarities. Especially at this stage but that's subject to change quite a lot too.

Thanks for your comments

AMCerasoli
Member #11,955
May 2010
avatar

For future videos I'll try and record in full screen and see if that looks better.

If you record a 640x360 windows in fullscreen that is not going to change anything... actually you will get something like this:

********************************** < -- Monitor resolution
*            * < -- Game resolu..* 
* your game  *                   *
*            *                   *
*            *                   *
*            *                   *
**************                   *
*   and all the rest in black    *
*                                *
*                                *
**********************************

640x360 isn't not compatible with my 1920x1080 monitor. I think the best "fixed resolutions" are 800x600 and 1024x768 < -- but this one is not good for mini laptops, I don't know if Windows 7 is automatically changing the aspect ratio of my game or if it's the graphics card driver, but now I can put my 800x600 game in fullscreen and somethig adds the black bar at left and right mayically :o, which is great... less work... ;D

Now if your game isn't intended to run in fullscreen you have no problem... Otherwise think about it... ;D.

Keep going!

William Labbett
Member #4,486
March 2004
avatar

doesn't allegro just stretch the buffer to fit the screen?

AMCerasoli
Member #11,955
May 2010
avatar

Yes... But since I installed Windows 7 in my new machine I'm getting free aspect ratio adjustation... no code... Aaaaallll for free... Obviously I'm not counting with that to happen in others PC besides mine. :(

SpectreNectar
Member #10,969
May 2009
avatar

Let this be the answer to your question:

#SelectExpand
1void Application::fullscreen(bool is_fullscreen) { 2 3 al_toggle_display_flag(disp, ALLEGRO_FULLSCREEN_WINDOW, is_fullscreen); 4 5 scale_factor = 1; 6 while(al_get_display_width(disp)>=display_width*(scale_factor+1) 7 && al_get_display_height(disp)>=display_height*(scale_factor+1)) { 8 9 scale_factor += 1; 10 11 } 12 scale_xpos = (al_get_display_width(disp)-display_width*scale_factor)/(scale_factor*2); 13 scale_ypos = (al_get_display_height(disp)-display_height*scale_factor)/(scale_factor*2); 14 15 // Apply transformation scale to screen bitmap 16 al_identity_transform(&scale); 17 al_scale_transform(&scale, scale_factor, scale_factor); 18 al_use_transform(&scale); 19 20} 21 22... 23 24 if(config->get_fullscreen()) { 25 26 if(trans.isTransfering()) al_draw_bitmap(trans.get(), scale_xpos, scale_ypos, 0); 27 else al_draw_bitmap(bmp, scale_xpos, scale_ypos, 0); 28 29 30 31 } else { 32 if(trans.isTransfering()) al_draw_bitmap(trans.get(), 0,0, 0); 33 else al_draw_bitmap(bmp, 0,0, 0); 34 }

:D

Only thing is that all those 16:10 monitors out there will have unused space.
1920x1080 happens to be my resolution as well. So it would divide the 1920 with three and fill the whole screen. Same with the 1080.

Michael Faerber
Member #4,800
July 2004
avatar

The editing mode already looks very nice! Congratulations!

--
"The basic of informatics is Microsoft Office." - An informatics teacher in our school
"Do you know Linux?" "Linux? Isn't that something for visually impaired people?"

Karadoc ~~
Member #2,749
September 2002
avatar

It makes me think of Spindizzy Worlds.

-----------

Go to: