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.

The 20 Line Challenge / Mini Tile Engine

Author
Message
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 20th Mar 2003 08:33
Hehe, I made a mini tile engine with a sprite you can move around with

Its not much at all but im still kinda new to DBPro.

Heres the code:
dim Map(4,4):Map(1,1)=2:Map(1,2)=3:Map(1,3)=3:Map(1,4)=3
Map(2,1)=2:Map(2,2)=2:Map(2,3)=3:Map(2,4)=3:Map(3,1)=3
Map(3,2)=2:Map(3,3)=3:Map(3,4)=3:Map(4,1)=3:Map(4,2)=2
Map(4,3)=2:Map(4,4)=2:load image "sprite.png",1,1:load image "wtile.png",2,1:load image "gtile.png",3,1
sprx=260:spry=160:set sprite 1,1,1
do
if upkey() and spry>152 then spry=spry-2
if downkey() and spry242 then sprx=sprx-2
if rightkey() and sprx
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 20th Mar 2003 08:35 Edited at: 20th Mar 2003 08:37
hmm...tags have problems x_x



Media:


I know its not much, but im new so be gentle

I followed all the rules too, most commands i have on a line is 5.

So enjoy my crummy little Tile Engine ^_^

Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 21st Mar 2003 03:59
Umm..feel free to post comments...heh

lcfcfan
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 21st Mar 2003 20:52
Very cool x-d

2ghz, ati radeon mobility 32mb DDR, 30gb, 256mb DDR ram, Win Xp
Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 23rd Mar 2003 19:53
Thats very helpful! Can you maybe code one that reads from a file?

~Morph
Owner of MultiCode.NET and Multi2k.NET.
Nothing is something, and something is then nothing. Life is an illusion.
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 23rd Mar 2003 22:06
I could probably, Though I havnt had much work with DBP and files, leme see what I can do

Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 23rd Mar 2003 22:10
I have been trying too, and well, its not really working..Contact me if you want my current code =).

~Morph
Owner of MultiCode.NET and Multi2k.NET.
Nothing is something, and something is then nothing. Life is an illusion.
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 23rd Mar 2003 22:34
Well,

I know that you could fit in more stuff in 20 liner.

Like saving and loading.

or actually editing.

Cheers.

1PH J00 C4|\| U|\|dER$T@|\||) +|-|I$, j00 |-|@\/3 4lR3Ady w0|\|! - p1r@T$$
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 23rd Mar 2003 23:15
Yes, but it was my 3rd thing ever made on DBP

Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 24th Mar 2003 00:21
Its purty good for the third thing only. I may base a game or two off of that code, if its okay with you .

~Morph
Owner of MultiCode.NET and Multi2k.NET.
Nothing is something, and something is then nothing. Life is an illusion.
Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 24th Mar 2003 00:37
Hmm..When I try to make it read from a file, I use READ WORD..but that doesn't get the exact integer in the file!




~Morph
Owner of MultiCode.NET and Multi2k.NET.
Nothing is something, and something is then nothing. Life is an illusion.
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 24th Mar 2003 02:52
Thats fine, Dont even need to put me in the credits.
Unless you wana..lol

I will mess with your code a bit and see what I can do

Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 24th Mar 2003 03:41
Ok! I finished.

Here ya go
Hope you dont mind that I cleaned the code to how I code things



Heh, change them back to .bmp's if you want.
Here is whats in my text file:


Login to post a reply

Server time is: 2024-04-26 21:34:11
Your offset time is: 2024-04-26 21:34:11