View Full Version : Sprites and Sizes
infinitely_blue
07-02-2008, 12:49 PM
Hi all, I am having a bit of trouble working out how to resize a sprite inside my engine without having to exit and resize the images manually. Do you know of any formula for this?
infinitely_blue
07-02-2008, 12:57 PM
WOW! Im on a roll, I managed to work it out :)
Here is my code using DBPro for this.
LOAD IMAGE "textures/elvenhud.png",12
SPRITE 12,0,320, 12
SET SPRITE 12,0,1
scale sprite 12,62
dislekcia
07-02-2008, 02:22 PM
WOW! Im on a roll, I managed to work it out :)
Here is my code using DBPro for this.
LOAD IMAGE "textures/elvenhud.png",12
SPRITE 12,0,320, 12
SET SPRITE 12,0,1
scale sprite 12,62
Oh mah gawd... That looks utterly hideous. Do you have to use numeric identifiers for all your resources like that? Do functions not have descriptive layouts?
Why on earth aren't you using GM instead of having to wrestle with an imperative language from the stone ages?
-D
P.S. Sorry, I'm just stunned at the sheer backwardsness of that tool. I've never used DBPro before...
FuzzYspo0N
07-02-2008, 02:37 PM
DBPRO is incredibly easy, but incredibly powerful dis...
Think infinity is just using some interesting code structures... it supports most high level concepts.
There are some crazy things going on with DB, some of which iv worked with and seen... such as :
http://www.ncdd.co.za/img/gfx1.jpg
http://www.ncdd.co.za/img/gfx2.jpg
Prolly 200 lines or less.
Drakbasic has leet hax
If you need any other help with DB i can sure lookat it, i love DB's approach to stuff and the simplicity to testing a shader and such!
infinitely_blue
07-02-2008, 04:29 PM
Oh mah gawd... That looks utterly hideous. Do you have to use numeric identifiers for all your resources like that? Do functions not have descriptive layouts?
Why on earth aren't you using GM instead of having to wrestle with an imperative language from the stone ages?
-D
P.S. Sorry, I'm just stunned at the sheer backwardsness of that tool. I've never used DBPro before...
Hmm, I see what you are saying but I am still pretty new to DB :)
Anyway, it would be best for me to show you what I did.
Linky (http://gamedev.openhazel.co.za/filecloset/data/files/329/Elven_Raiders.zip)
The sprite in question being the HUD I am working on :)
FuzzYspo0N
07-02-2008, 05:15 PM
I see what you meant, it works well it seems...
DB is nice for this kinda game...
Powered by vBulletin® Version 4.2.4 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.