Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Tips for 2d

Author
Message
Necrum
21
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 17th Jan 2003 01:30
After finally learning the fundamentals of programming, I have decided to start working on something, anything. I have chosen to learn how to make 2d games first. Are there any tips that you can give me for when I start into the 2d world?

ps: I want to work on something similiar to Castlevania, and what is an aligorithm?
Just when you thought life was done beating your sorry ass down, it invites friends to help.
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Jan 2003 06:01
learn about the 2 buffer screens u can access and what u can do to prerender things dynamically for simple display.

find the margin of harmony in sprite numbers and bitmaps moving around the screen.

check out making a bitmap so u can paint dynamic content into it and then use it as a sprite.


look into draw to front and draw to back commands if u want to melt 3d and 2d together in cool ways

um yeah have fun
dont forget that 3d plains can be used as a similar result.

indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Jan 2003 06:01
oops and algorythym is basically a maths formula to achieve a result.

das
21
Years of Service
User Offline
Joined: 9th Jan 2003
Location:
Posted: 17th Jan 2003 09:44
hmm i dont think that exactly what an algorithim is as such

a the method part of a recipe is an algoithim it tells you what order the things go in ect
an algorithim is like planing your program with out using any code like say

algorithm:
when the up arrow is pressed move forward

then you code it:
if upkey()=1 then move object 1,10

there are 3 command structures which are how you set out ur algorithims

psudeo code(spelling?) which is basically english written with a little code as such eg:

START
make player object
colour it green
IF enter pressed
DO move player forward
ENDIF
turn enemy right
move enemy forward
END

um another one is NS which stands for some german words
its writen in boxes like
|----------------|
|start |
|----------------|
|make object |
|----------------|
|\ IF enter /|
| \ pressed / |
|true\ /false|
|events\ /events|
|------- |-------|
|blah |
|----------------|
|end |
|----------------|

and then the other i cant rember what its called its when u use a flow chart like boxes joind by lines to show the flow of the proccesing
[start]
|----|
(DO.) | <<event
| | << if false loops up to repaet events
<IF.>--| <<if condition
| << if true it continues
[end]

correct me if im wrong (usually the case somewhere)


trav

das
21
Years of Service
User Offline
Joined: 9th Jan 2003
Location:
Posted: 17th Jan 2003 09:46
bah what a mess didnt know that spaces dont show up

Necrum
21
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 18th Jan 2003 00:01
Thanks for all the help

Just when you thought life was done beating your sorry ass down, it invites friends to help.

Login to post a reply

Server time is: 2024-05-19 11:23:08
Your offset time is: 2024-05-19 11:23:08