Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LincolnB

Pages: 1 ... 41 42 [43] 44 45 ... 77
631
TI Z80 / Re: The Impossible Game
« on: October 06, 2011, 09:29:09 pm »
Wow. That's sweet.

632
TI Z80 / Re: testing gravity
« on: October 06, 2011, 09:26:48 pm »
Hey, this is pretty sweet. Is that my drawing function I see there? ;)

633
Axe / Re: Can You Flood Fill?
« on: October 05, 2011, 09:42:49 am »
hey, sounds great. PM me or post it here if you find it.

634
Axe / Can You Flood Fill?
« on: October 04, 2011, 11:13:30 pm »
Hi everyone. For PaintPad, I'm really close to releasing the first version, but before I do, I need a flood fill algorithm. I've tried a little bit, but haven't been able to get anything to work. So, I'm making it a contest of sorts.

I'm uploading a very, very, very watered down version of PaintPad, all it supports is pixel drawing and deletion. All I need is a simple flood fill function - the template is there, all that it needs is the code.

So yeah. If you're up to it, check it out, and upload or post the code for your floodfill function.

Also, here's the code for anyone not wanting to go to the trouble of downloading an sending the attached source file, FLOODSRC.

Spoiler For code:
Code: [Select]
.FLOOD
.The challenge is to write a   good,solid floodfill function.

DiagnosticOff

.Cursor coordinates
10->X->Y

.Start the program with the cursor at 10,10

.The arrow keysmove the cursor

.When you pressALPHA, call the flood fill function
.When you press2ND,it draws a  pixel at the X,Yposition

ClrDraw
ClrDraw^^r

.Clear exits
Repeat getKey(15)

.This code is  unoptimized,and I use a lot of  functions, for  clarity purposes
Input()

.^All this function does is getinput from the  arrow keys

.Now,to get input from 2ND and ALPHA
.Remember-
.2ND=Draw pixel
.ALPHA=Flood fill
.And [DEL] deletes pixels

If getKey(54)
Pxl-On(X,Y)^^r
End
If getKey(56)
Pxl-Off(X,Y)^^r
End

.Now,its your  turn to write   some code.
.All I need is someone to writethe Flood() function.
If getKey(48)

Flood()
.^That.
.Scroll down tosee what code   needs to be written.

End


.Now,for some  boring display  stuff

.Everything is stored on the   back buffer
.The front buffer is for displaying the cursor and other stuff

RecallPic

.Display cursor
Cursr()

DispGraph
Pause 75


.End of main   loop
End
Return


.Finally,the flood fill function!
Lbl Flood

.YOUR
.CODE
.HERE

.Remember, dontwrite to the    front buffer,usethe back buffer

Return



.Other functions

Lbl Input
If getKey(1) and (Y<63
Y++
End
If getKey(2) and (X>0
X--
End
If getKey(3) and (X<95
X++
End
If getKey(4) and (Y>0
Y--
End
Return

Lbl Cursr

Rect(X,0,1,63
Rect(0,Y,95,1
Pxl-Off(X,Y

Return

Eh, spacing on the comments is a little weird^^

PS for anyone who doesn't know what I mean by "flood fill function", it's pretty much the bucket tool in mspaint.

635
TI Z80 / Re: Essence
« on: October 04, 2011, 11:06:54 pm »
Not to be offensive, but based on the speed it looks like it takes place on the moon.

Um, the speed is totally fine. I don't know what you're talking about, boot.

636
The Axe Parser Project / Re: Features Wishlist
« on: October 04, 2011, 07:55:41 pm »
Yeah, I think I will write a smooth scrolling tutorial some time in the next like week maybe.

As I said before, I don't really understand calc84's suggestion. Could someone explain it to me?

637
TI Z80 / Re: Krillian + other unrelated small abandoned games
« on: October 04, 2011, 06:58:33 pm »
Hey, the machine gun looks really good. Also, the getkey command gets kind of buggy in Full speed mode, if you're using that. You don't have to Normal speed your whole game, just Normal speed the getkey parts and then full speed the rest.

638
TI Z80 / Re: Action-Adventure Puzzle Platformer RPG (Idea)
« on: October 04, 2011, 06:55:47 pm »
Haha yeah, that's kind of what I was thinking, for making this game. I want to make a game that captures the best of all worlds.

639
TI Z80 / Re: Spacky 2 - Beta Release
« on: October 04, 2011, 06:54:56 pm »
lol that was actually not on purpose. It just happened one day and I didn't really want to fix it.

640
The Axe Parser Project / Re: Features Wishlist
« on: October 04, 2011, 06:37:18 pm »
I dunno about faster, but it'd prolly be easier for beginners to pick up.

641
TI Z80 / Re: BASIC Particles
« on: October 04, 2011, 06:22:11 pm »
Hey, are you using cellular automata for your water engine, like in my water simulation? (thanks to BuilderBoy)

642
The Axe Parser Project / Re: Features Wishlist
« on: October 04, 2011, 06:15:34 pm »
Code: [Select]
DispGraph{r}
wait, is that the superscript r, or am i doing something wrong?
I did : {r} (open curly brace, superscript r, closed curly brace)
but I get an "error: invalid token"

yeah, it's the superscript r, with no curly braces.


I suck at smooth scrolling. so i would just have 8 pixels taken off from every side so i can just draw sprites and use horizontal and vertical.

hmm...maybe I should write a smooth scrolling tutorial, like the engine I used in Spacky/Fantastic Sam?


Idea:  Only display/update a square/rectangle part of the screen.
         It would make for insanely easy smooth scrolling games.

How would that help smooth scrolling games?

Well, if you had the map loaded into a picture that was bigger than the screen (if you weren't using a tilemap, just had a really big picture), then you could just render a 96*64 rectangle that is the screen. TBH, classical smooth scrolling techniques are actually really easy once you get the hang of it.

643
Introduce Yourself! / Re: Hey!
« on: October 04, 2011, 06:14:44 pm »
!peanuts

whoah. That's way cool. I never even realized you could do that.


* buttsfredkin has some fun now

!peanuts !peanuts !peanuts !peanuts !peanuts !peanuts

644
Introduce Yourself! / Re: How's It Going?
« on: October 04, 2011, 06:10:54 pm »
Hey, what's up? Have an awesome time on Omni. It's the best.

645
The Axe Parser Project / Re: Features Wishlist
« on: October 04, 2011, 05:42:36 pm »
Yeah, buffer support for circles would be cool.

Parser, that should work, try this:

Code: [Select]
.CIRCLE A Gray Circle
ClrDraw
Circle(5,5,3)
StorePic
ClrDraw
DispGraph{r}
Repeat getkey(15)
End

Don't forget the second ClrDraw^

Pages: 1 ... 41 42 [43] 44 45 ... 77