Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Toshi

Member Since 03 Jan 2013
Offline Last Active Jan 25 2013 04:02 AM

Topics I've Started

"Camera" movement in C++ with Allegro 5

20 January 2013 - 04:03 PM

Hey guys,

 

A second question in one morning.. something that has been bugging me.

 

I have been following the great guide by Mike Geig at fixbyproximity.com, and have made a background for my character to walk on.

 

However, I want the "background" or map to be much larger than one screen worth, and so have designed a tile background.

 

The problem is, that the "camera" or viewpoint of the player, doesnt move.

 

So, the players character can move off screen, ostensibly on to the different areas of the mapped background, but can no longer be seen by the player.

 

Alternatively, the mapped background is much bigger than what is seen on the screen, but the only way to see it is by including an "offset x and y" which moves the background itself, but then the players character is not connected to the background, it is as if the ground is moving out from underneath him but he stays in the same place.

 

If I were to leave the background not being able to move, have the character only bound by the maximum background size instead of WIDTH + HEIGHT (of the display), but have the players viewpoint/camera actually move instead around the background, tied to the players character, this would be a solution I would be very happy with.

 

Is this possible, and if so, how would I make it happen?

 

Cheers,

Toshi


Fullscreen functionality

20 January 2013 - 03:50 PM

Hey guys,

 

I am using C++ with the Allegro 5 library for my project, and I have come up against something that I cant find the solution to, it seems easy so perhaps someone could tell me the answer.

 

At the moment I am creating a display matching my screen resolution, 1920 x 1080, which gives me an illusion of fullscreen - but it is not true fullscreen as the various windows bars still overlap it.

 

My question is this: how can I enable proper fullscreen functionality?

 

And a follow up, for computers that wont support 1920 x 1080, can I force the program, when it runs, to choose the highest supported resolution instead?

 

Cheers,

Toshi


Loading Screen Functionality (States)

15 January 2013 - 11:24 PM

Hey guys,

 

Im currently programming a game using Allegro 5 (written in C++) and im looking for functionality regarding Loading Screens.

 

I suspect it will be a state in between my "TITLE SCREEN" state and my "PLAYING" state.

 

Can anyone tell me if it is possible to include a Loading screen bitmap with a "progress bar"?

 

If so, could you also guide me to a resource or point me in the direction to find out more?

 

Thanks,

 

Toshi


Advice regarding language choice - 2D Top Down Strategy

03 January 2013 - 03:50 AM

Hey guys, looking for some advice here regarding picking up a programming language to run with and start my *amazing* dev career... *cough cough*.

 

Seriously though, ive been looking at Python and Java, and a couple of other smaller programming languages, but cannot decide what to dedicate studying time to learning enough to begin seriously writing code.

 

A brief overview of the plan, and my current skills:

 

2D Top Down Singleplayer (For the beginning) Strategy game, player controls a single character. Long term campaign over a large, single map. RPG elements ie levelling up, equipment upgrades etc.

 

My skills: Basic knowledge of C++, Good Sprite artistry, Quick Learner.

 

Games that I am attempting to emulate the style/feel of:

 

Starfarer - http://fractalsoftworks.com/

Gratuitous Tank Battles - http://www.gratuitoustankbattles.com/

 

Essentially, once ive decided which language to go with, I will study up and learn it as quick as possible through web guides and e-books, and figure out how to create the world and the player calling up Sprites that I have been building.

 

Any help / advice would be much appreciated!!

 

Thanks,

Toshi


PARTNERS