Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Hello, friend.How to create a camera?

This thread is locked; no one can reply to it. rss feed Print
Hello, friend.How to create a camera?
keprast
Member #16,794
January 2018

I tried to create the camera with a single screen, but according to the wiki I was creating something weird.

---------------------------------
No one can provide some reference to it? :-/

The example on the wiki is really a headache for me. :-X
He does not have coherent thinking, much less an example. :(

Who can help me and patted...

NiteHackr
Member #2,229
April 2002
avatar

People will be able to help you better if you perhaps showed some of your source code of what you tried already. Which example did you look at? The more details, the better people on here can help. :)

Niunio
Member #1,975
March 2002
avatar

Also, what kind of game are you doing? 2D, 3D? And what kind of camera, first person, 3th person...?

And what programming language: C, Python, Pascal, C++...?

-----------------
Current projects: Allegro.pas | MinGRo

Chris Katko
Member #1,881
January 2002
avatar

camera_x = 0; //have keyboard controls increase or decrease these.
camera_y = 0;

void draw_my_stuff_at(object_x - camera_x, object_y - camera_y)

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

Go to: