Author Topic: white circle?  (Read 3280 times)

0 Members and 1 Guest are viewing this topic.

Offline dinhotheone

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 410
  • Rating: +2/-1
    • View Profile
white circle?
« on: October 12, 2007, 03:39:00 pm »
i was trying to make a game and i ran into a problem, i need to draw a white circle but i cant figure out how. i figured that the whiteline rotated a bunch would look dumb so i was wondering if anyone know any other methods. i am using xlib but i dont think that that has a circle function. So, any ideas?

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
white circle?
« Reply #1 on: October 12, 2007, 06:04:00 pm »
it's impossible in BASIC, even with the fast circle command (unless there's another hidden argument). And xlib doesn't have circle function

Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
white circle?
« Reply #2 on: October 13, 2007, 03:53:00 am »
Are the circles a set dimension or does it have to be any size?
because if they are a set dimension you could use a xLib and a circle sprite to erase it.

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Offline dinhotheone

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 410
  • Rating: +2/-1
    • View Profile
white circle?
« Reply #3 on: October 13, 2007, 11:30:00 am »
yeah, thats what i was thinking, i figured i'd end up makeing some 16x16 sprites. well atleast now they can look like an explosion...

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
white circle?
« Reply #4 on: October 22, 2007, 03:05:00 pm »
You could draw the circle (except using pixel off or point off), just have to make the calculations ;)wink.gif

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
white circle?
« Reply #5 on: October 22, 2007, 03:07:00 pm »
true, but he would need to use lines so it's not too slow

Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
white circle?
« Reply #6 on: October 23, 2007, 10:34:00 am »
IF someone made an asm Lib to invert the screen you could invertit and then draw the circle and then un-invert it

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Offline rivereye

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 996
  • Rating: +0/-0
    • View Profile
white circle?
« Reply #7 on: October 23, 2007, 11:22:00 am »
2 circles maybe, one larger and the other smaller than the intended size of circle.
>(<')

Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
white circle?
« Reply #8 on: October 23, 2007, 03:05:00 pm »
No that is now what I mean
you start with
00011000
00100100
00100100
00011000
invert it
11100111
11011011
11011011
11100111
then draw the circle again
11111111
11111111
11111111
11111111
then un-invert it
00000000
00000000
00000000
00000000

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
white circle?
« Reply #9 on: October 23, 2007, 04:48:00 pm »
oh lol you can alerady do inverting with xLIB, Zapi and Codex

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
white circle?
« Reply #10 on: October 25, 2007, 08:25:00 am »
[code]
for(x,1,94
for(y,1,63
pxl-chg(x,y
end
end
[code]
Omnimaga Admin

Liazon

  • Guest
white circle?
« Reply #11 on: October 25, 2007, 12:15:00 pm »
lol

what's Zapi?

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
white circle?
« Reply #12 on: October 25, 2007, 05:09:00 pm »
Codex ancestor. It featured a non working 8x8 sprite routine, non working 12x8 map routine, which saved maps as 8xp files (using chaos asm compiler (which doesnt work)) , a non working picture storing feature (allowing to save pics as 8xp files) and a working multi size sprite routine. It also had a working stand alone program with many features found in codex and a scrolling routine with some nifty features (altough buggy)