123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|722|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Sidescroller

Page : 1 2 Next
Prev
Mon, 02 Apr 2007, 06:06
Blitz3Dman
THis is my first attempt to code a sidescroller because there are basics I need to learn. I've made a perfectly working level editor in about 3 hours. (thanks in no small part to my experience coding my Blitz Paint project) But, unfortunately, you will find few people worse than I am at coding a game like this. Included is my uncleaned code, please don't get mad at me, and images. level.bb is the level editor; hit 's' to save as customlevel.lvl and 'l' to load it. Use the left and right arrow keys to scroll left and right. Once I can get the player to show up how he's supposed to, I'm going to code in tile properties. Run game.bb to see what I have so far on the game. Use the arrow keys to move the camera.

download here- new link thanks to flying_cucco

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Mon, 02 Apr 2007, 06:15
ingenium1
Mmm... i can't download it... Odd website... Odd link... *Mumbles*...

-=-=-
Roger Federer is go(o)d.
But he is not alone.

Just relax... sometimes there's no need to argue.
Mon, 02 Apr 2007, 06:17
Blitz3Dman
lol, where do you want me to upload then?
Mon, 02 Apr 2007, 06:29
mike_g
I dident have a problem downloading it, but when I ran it I got a: Runtime Error Stream does not exist.

On this line: tile(rx,ry)=ReadByte(fil)



Mon, 02 Apr 2007, 06:35
Blitz3Dman
Yea, I was just coming back to say something.

the line
Const lvl$="demolevel2.lvl"

should be
Const lvl$="demolevel.lvl"

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Mon, 02 Apr 2007, 06:38
Jayenkai
Nothing wrong with the look of your code.

You game looks great.
@Mike, change the lvl$="" to one of the included files. It's set to demolevel2.lvl which isn't included.

-=-=-
''Load, Next List!''
Mon, 02 Apr 2007, 06:44
Blitz3Dman
Oi, and you have to remove the lines

Global nums=LoadAnimImage("nums.bmp",6,6,0,10)
MaskImage nums,255,0,255

in level.bb

man, shoulda paid more attention when I was deleting the useless files.

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Mon, 02 Apr 2007, 07:43
JL235
I have several problems with your code, namely no indentation and too much whitespace. Many of the variable names could also be better; perhaps just x and y when iterating across co-ordinates rather then dx/dy/rx/ry/wx/wy. With 'ff', the name tells me nothing about what it is for.
Mon, 02 Apr 2007, 08:54
hyruleknight
ok i just skimmed it since i hate looking at BB code without syntax highlighting(i haven't installed the IDE yet on my new PC)

what i did notice is very descriptive variable names, no intending and no commenting. the best thing to do is to do a lot of self commenting so you don't need to put a lot of comments just explaining a function

-=-=-
i like green haired girls...
Mon, 02 Apr 2007, 09:45
mike_g
Hey, its a good start

At the end of the day code however you like best. Indentation makes it easy to see what goes on where. EG: where a loop starts, whats inside it and where it ends. Then again some people (like magicman) seem to get by fine without it.

As for webspace I just started using sitesled. Its free, you get 250MB, and it allows direct linking. So people that want to download your stuff dont have to go though a maze of links.
Mon, 02 Apr 2007, 10:15
JL235
Format of code is very important, especially if you ever want to work professionally where all code must be written to the same standard and using the same conventions. Aspects like indentation are usually corrected for you in the vast majority of editors, but it's very important to indent naturally yourself as standard through out all your code.

I'd recommend Google Pages for hosting files. But whatever you use, don't use upload sites like Rapidshare and Mega-Upload. They do put a lot of people off downloading your files (especially if they have never used the site before) and look far more ameterish then direct links. Some people (such as myself a few years ago) can also have problems downloading from those types of sites. Your download is the first successful Rapidshare download at my home, ever! (Although I ain't tried in years).
Mon, 02 Apr 2007, 10:37
mike_g
I'd agree that the format of your code is important for it to be easily understood by yourself and others, but:
Blitz3DMan Included is my uncleaned code, please don't get mad at me


Mon, 02 Apr 2007, 11:02
Jayenkai
Get used to producing nice clean code, but by all means, feel free to make your own set of rules.
The fact that you left spaces inbetween each section of code meant that it was fairly easy to read. If you hadn't left the spaces, it would've been a lot harder. There really wasn't anything wrong with it.
Sure, indenting might've helped, but you didn't have too much code, and there were no big, complex if's/for's/repeats to indent anyway.

Typically I only tend to bother indenting things if I find myself doing big chunks of if's, otherwise I don't really bother. I can follow my code, and I'm usually the only one that sees it.

-=-=-
''Load, Next List!''
Mon, 02 Apr 2007, 11:34
JL235
I wasn't trying to have a go at him, just offering advice on he can improve his code.
Mon, 02 Apr 2007, 11:56
mike_g
Hey I didn't say you were. I just think he was asking that this topic didn't turn into a criticism of his code
Mon, 02 Apr 2007, 12:25
shroom_monk
Erm... I can't download it. Can somebody give me some instruction as to how to get to the download page? This site is trying to get me to register something or other. Thanks.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Mon, 02 Apr 2007, 12:50
TheMadProff
To download it you must click on the link, then click the free button at the bottom of the page.

Then, you may come onto a web page where below an upload box(which you can ignore) there are a number of servers. Select one and then type the code which you see. Finally, click "Download from" whichever server you selected goes here

Also, you may get a page which at the bottom says "Too many users downloading right now. Please try again in two minutes or get a PREMIUM-Account" Then you just have to keep trying.

None of these steps register you for anything.

Please host it somewhere else!!!!!!!!!!!!!!!!!!!!!!!!!!

-=-=-
''It works, but I'm not sure why it works...''
Mon, 02 Apr 2007, 14:55
Blitz3Dman
When I code, I generally leave white space for myself to read easily and once a decent bit of code has been added, I go through and make it so neat it looks like diablos did it. (j/k diablos) I do indent 'correctly' when cleaning my code, though. I'll upload it somewhere alse after I finish my homework.

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Mon, 02 Apr 2007, 16:05
flying_cucco
Temp linky

Looks cool and its your code anyways

|edit| Thats fine, but bare in mind that its hosted chez moi and not very reliable... |edit|
Mon, 02 Apr 2007, 17:18
Blitz3Dman
Thanks, flying_cucco. It's not a problem if I use your link on the first post, right?

Right now I'm working on player movement/animation. Can't figure out what's got into the frames right now, though.

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Tue, 03 Apr 2007, 00:42
shroom_monk
Wow! Nice graphics. Now it just needs the player...

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Tue, 03 Apr 2007, 04:37
steve_ancell
@Blitz3DMan...

It MAVs out on my system.

System Specs...
Pentium 4 @ 3GHZ, 128MB Geforce FX5200 Graphics Card, 512MB RAM.
Tue, 03 Apr 2007, 04:48
shroom_monk
Steve, did you do all the edits that B3D has posted? That might be why.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Tue, 03 Apr 2007, 05:40
steve_ancell
No !, I guess that will teach me to read the instructions first. LOL. Cheers Shroom.
Tue, 03 Apr 2007, 06:14
shroom_monk
You're welcome!
Wed, 04 Apr 2007, 14:24
Blitz3Dman
ok, took a couple-day break because I was seeing my grandpa. I bougt a new DS game, so I'm looking at it some for inspiration. (it's Mario, the game I'm kinda basing it off of) and it's been renamed "The Running Man".

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Page : 1 2 Next
Prev