Jump to content





GOOMW!

Posted by Serguei2 , in Programming Colecovision, My brawler game 24 March 2019 · 91 views

I worked on my brawler game today.
 
Our good guy managed to beat down all his foes.
 
Now he is ready to go to the next room.
 
 
Now let's talk about the arrow: LOL
 
The arrow is made with sprites but some part of the sprites are missing.
 
Attached Image
 
If I set the arrow x to 40, it shows without problems.
 
But I want to place the arrow higher on the screen, like most brawler games do most of the time.
 
Ok. That's all for today.
 
 
Good night everybody.



  • Kiwi likes this



Call SweepSprite() upon initialization so sprites are placed outside the screen boundry.  Without that all the sprites at zero'd upon start, so the unused sprites are at position x=0,y=0.

Here's my code to place all sprites off screen:

void SweepSprites(void){
for (i=0;i!=32;i++){
sprites[i].y = 207;
}
updatesprites(0,64);
}

Further explanation.  When sprite[?].y=208, it sets a flag sprite termination flag for the sprite for the rest of the array to not show up. So if you place a that number in sprite[3].y=208.  Sprite 3 and up won't show up.  if you're moving the sprite up and down in the area out of bound, it'll skip that number(C code I noticed skip this number when sprites move vertically). 

I place my sprites I don't need at 207 so I don't trigger the sprite termination.

 

  • Report

May 2019

S M T W T F S
   1234
567891011
12131415161718
19 20 2122232425
262728293031 

Recent Entries

Recent Comments

0 user(s) viewing

0 members, 0 guests, 0 anonymous users

Search My Blog

Latest Visitors

  • Photo
    D Train
    Yesterday, 11:26 PM
  • Photo
    EricBall
    17 May 2019 - 10:58
  • Photo
    Kiwi
    17 May 2019 - 1:31
  • Photo
    Keatah
    17 May 2019 - 1:25
  • Photo
    DaveD
    16 May 2019 - 8:27
  • Photo
    JFD62780
    14 May 2019 - 2:21
  • Photo
    atari2600land
    13 May 2019 - 6:58
  • Photo
    DoctorSpuds
    12 May 2019 - 8:28
  • Photo
    Mike Harris
    07 May 2019 - 3:06
  • Photo
    PeteE
    06 May 2019 - 3:26
  • Photo
    Random Terrain
    01 May 2019 - 8:05
  • Photo
    BigO
    01 May 2019 - 6:39
  • Photo
    SoundGammon
    30 Apr 2019 - 11:31
  • Photo
    carlsson
    30 Apr 2019 - 2:15
  • Photo
    thanatos
    30 Apr 2019 - 2:05
  • Photo
    jaybird3rd
    30 Apr 2019 - 12:12
  • Photo
    simbalion
    28 Apr 2019 - 12:58
  • Photo
    ZippyRedPlumber
    19 Apr 2019 - 8:04
  • Photo
    retrorussell
    13 Apr 2019 - 4:08
  • Photo
    chue
    13 Apr 2019 - 8:04
  • Photo
    SpiceWare
    12 Apr 2019 - 3:58
  • Photo
    Cafeman
    12 Apr 2019 - 10:39
  • Photo
    DamonicFury
    12 Apr 2019 - 8:47
  • Photo
    dj_convoy
    11 Apr 2019 - 9:52
  • Photo
    masschamber
    11 Apr 2019 - 6:43
  • Photo
    jerseystyle
    11 Apr 2019 - 3:08
  • Photo
    nanochess
    11 Apr 2019 - 2:56
  • Photo
    Da_GPer
    10 Apr 2019 - 6:24
  • Photo
    JL
    10 Apr 2019 - 5:00
  • Photo
    82-T/A
    31 Mar 2019 - 11:07
  • Photo
    OldSchoolRetroGamer
    28 Mar 2019 - 1:01
  • Photo
    MrMaddog
    27 Mar 2019 - 11:15
  • Photo
    k-Pack
    26 Mar 2019 - 8:26
  • Photo
    JohnE
    19 Mar 2019 - 10:27
  • Photo
    Swami
    18 Mar 2019 - 8:25
  • Photo
    Jess Ragan
    18 Mar 2019 - 4:02
  • Photo
    Raccoon Lad
    17 Mar 2019 - 1:24
  • Photo
    DZ-Jay
    16 Mar 2019 - 6:18
  • Photo
    RushJet1
    15 Mar 2019 - 10:03
  • Photo
    bcombee
    08 Mar 2019 - 4:57
  • Photo
    8_is_enuff
    08 Mar 2019 - 4:45
  • Photo
    IronWorks
    07 Mar 2019 - 5:52
  • Photo
    Prizrak
    04 Mar 2019 - 5:53
  • Photo
    tuatara21
    04 Mar 2019 - 12:54
  • Photo
    RevEng
    25 Feb 2019 - 10:05
  • Photo
    Torrax
    25 Feb 2019 - 7:18
  • Photo
    OmaOhneBH
    25 Feb 2019 - 3:28
  • Photo
    mikedg63
    25 Feb 2019 - 2:48
  • Photo
    baktra
    22 Feb 2019 - 11:13
  • Photo
    Allan
    20 Feb 2019 - 7:45
  • Photo
    superbee
    19 Feb 2019 - 3:50
  • Photo
    BydoEmpire
    19 Feb 2019 - 2:39
  • 11 Feb 2019 - 7:47
  • Photo
    john_q_atari
    08 Feb 2019 - 1:44
  • Photo
    ndp630
    27 Jan 2019 - 2:15
  • Photo
    newtmonkey
    11 Jan 2019 - 5:44
  • Photo
    mksmith
    05 Jan 2019 - 6:14
  • Photo
    Nathan Strum
    01 Jan 2019 - 10:33
  • Photo
    LS_Dracon
    01 Jan 2019 - 6:27
  • Photo
    The Usotsuki
    01 Jan 2019 - 7:54
  • Photo
    Trip2018
    01 Jan 2019 - 7:40
  • Photo
    timmy2tone
    30 Dec 2018 - 9:39
  • Photo
    timdu
    29 Dec 2018 - 5:16
  • Photo
    WIZZARD77
    27 Dec 2018 - 11:46
  • Photo
    GoldLeader
    27 Dec 2018 - 12:56
  • Photo
    Reese
    26 Dec 2018 - 3:47
  • Photo
    Atarian7
    22 Dec 2018 - 7:46
  • Photo
    davidcalgary29
    20 Dec 2018 - 6:24
  • Photo
    jd_1138
    18 Dec 2018 - 11:35
  • Photo
    youxia
    18 Dec 2018 - 8:37
  • Photo
    bah
    15 Dec 2018 - 8:25
  • Photo
    Space Friend
    15 Dec 2018 - 5:00
  • Photo
    x=usr(1536)
    12 Dec 2018 - 6:46
  • Photo
    pboland
    28 Nov 2018 - 5:23
  • Photo
    Austin
    28 Nov 2018 - 4:40
  • Photo
    groundtrooper
    09 Nov 2018 - 9:40
  • Photo
    cybercylon
    09 Nov 2018 - 8:47
  • Photo
    DragonGrafx-16
    09 Nov 2018 - 1:50
  • Photo
    Bakasama
    08 Nov 2018 - 3:07
  • Photo
    TheCoolDave
    28 Oct 2018 - 1:23
  • Photo
    mytek
    17 Oct 2018 - 12:48
  • Photo
    Bubsy3000
    01 Oct 2018 - 11:04
  • Photo
    Crazyace
    28 Sep 2018 - 2:15
  • Photo
    Cybergoth
    14 Sep 2018 - 12:15
  • Photo
    pseudografx
    24 Aug 2018 - 7:13
  • Photo
    BurritoBeans
    05 Aug 2018 - 8:10
  • Photo
    digdugnate
    05 Aug 2018 - 6:45
  • Photo
    cd-w
    02 Aug 2018 - 4:00
  • Photo
    Montrealer
    02 Aug 2018 - 2:24
  • Photo
    Sheddy
    02 Aug 2018 - 2:04
  • Photo
    bluswimmer
    26 Jul 2018 - 10:31
  • Photo
    RockyRaccoon
    26 Jul 2018 - 3:02
  • Photo
    Classic Pac
    25 Jul 2018 - 5:04
  • Photo
    Kid Ice
    24 Jul 2018 - 11:50
  • Photo
    PlaysWithWolves
    08 Jul 2018 - 1:26
  • Photo
    doctorclu
    06 Jun 2018 - 4:27
  • Photo
    The Mr. Video
    05 Jun 2018 - 8:18
  • Photo
    cuda_man
    01 Jun 2018 - 6:14
  • Photo
    JDTAY
    08 May 2018 - 1:31
  • Photo
    the 5th ghost
    10 Apr 2018 - 2:21
  • Photo
    kenjennings
    10 Mar 2018 - 12:47
  • Photo
    HtheB
    10 Feb 2018 - 4:31
  • Photo
    Rev
    04 Feb 2018 - 3:39
  • Photo
    ls650
    04 Feb 2018 - 12:21
  • Photo
    phoenixdownita
    03 Feb 2018 - 11:42
  • Photo
    godslabrat
    03 Feb 2018 - 11:23
  • Photo
    AverageSoftware
    03 Feb 2018 - 2:07
  • Photo
    mmbe
    03 Feb 2018 - 9:26
  • Photo
    walter_J64bit
    02 Feb 2018 - 8:23
  • Photo
    Darrin9999
    02 Feb 2018 - 1:37
  • Photo
    Dragon Princess Yushira
    31 Jan 2018 - 3:52
  • Photo
    snorlaxnut
    31 Jan 2018 - 10:14
  • Photo
    Zeptari1
    30 Jan 2018 - 10:07
  • Photo
    Giltygear
    30 Jan 2018 - 7:02
  • Photo
    alex_79
    29 Jan 2018 - 5:00
  • Photo
    5-11under
    20 Jan 2018 - 11:44
  • Photo
    agb
    19 Jan 2018 - 10:26
  • Photo
    Albert
    16 Jan 2018 - 2:04
  • Photo
    thetick1
    16 Jan 2018 - 1:29
  • Photo
    JamesD
    12 Jan 2018 - 3:53
  • Photo
    fujidude
    11 Jan 2018 - 4:59
  • Photo
    Arenafoot
    11 Jan 2018 - 11:37
  • Photo
    GallopGhost
    10 Jan 2018 - 10:22
  • Photo
    mojofltr
    06 Jan 2018 - 1:32
  • Photo
    xucaen
    31 Dec 2017 - 5:31
  • Photo
    ZylonBane
    30 Dec 2017 - 9:53
  • Photo
    vidak
    18 Dec 2017 - 6:26
  • Photo
    roryjr
    17 Dec 2017 - 8:16
  • Photo
    flickertail
    17 Dec 2017 - 7:52
  • Photo
    tschak909
    16 Dec 2017 - 11:29
  • Photo
    Seagull
    15 Dec 2017 - 2:57
  • Photo
    ed1475
    15 Dec 2017 - 12:13
  • Photo
    Snowman357
    11 Dec 2017 - 12:55
  • Photo
    high voltage
    03 Dec 2017 - 1:41
  • Photo
    atarifan88
    18 Nov 2017 - 6:43
  • Photo
    travistouchdown
    14 Nov 2017 - 7:46
  • Photo
    save2600
    14 Nov 2017 - 3:35
  • Photo
    ubersaurus
    14 Nov 2017 - 12:09
  • Photo
    Nukey Shay
    10 Nov 2017 - 9:22
  • Photo
    Jumpman1981
    05 Nov 2017 - 6:03
  • Photo
    ryanprodj
    15 Oct 2017 - 7:35
  • Photo
    FireStar
    12 Oct 2017 - 7:39
  • Photo
    HawkMines
    11 Oct 2017 - 4:45
  • Photo
    Neo 64
    10 Oct 2017 - 6:03
  • Photo
    TheTIGuy
    03 Oct 2017 - 7:52
  • Photo
    Good_Times
    09 Sep 2017 - 5:25
  • Photo
    RodLightning
    09 Sep 2017 - 10:13
  • Photo
    Schmitzi
    26 Aug 2017 - 1:08
  • Photo
    ColecoGamer
    11 Aug 2017 - 2:50
  • Photo
    Sauron
    11 Aug 2017 - 12:15
  • Photo
    BassGuitari
    07 Aug 2017 - 11:49
  • Photo
    Great Hierophant
    20 Jun 2017 - 12:08
  • Photo
    Reaperman
    20 May 2017 - 5:52
  • Photo
    toiletunes
    11 Feb 2017 - 3:26
  • Photo
    cosmic frog1966
    03 Jan 2017 - 4:19
  • 31 Dec 2016 - 4:25
  • Photo
    The Maxx
    30 Dec 2016 - 11:17
  • Photo
    Rikkarr
    23 Dec 2016 - 2:34
  • Photo
    hookem
    01 Dec 2016 - 12:00
  • Photo
    bradhig1
    20 Nov 2016 - 3:18
  • Photo
    KaeruYojimbo
    14 Nov 2016 - 10:43
  • Photo
    frankodragon
    14 Nov 2016 - 5:06
  • Photo
    GrizzLee
    07 Nov 2016 - 3:46
  • Photo
    mickcris
    04 Nov 2016 - 6:19
  • Photo
    Stephen
    03 Nov 2016 - 5:16
  • Photo
    Lasermouse99
    03 Nov 2016 - 12:45
  • Photo
    Trinity
    27 Oct 2016 - 5:00
  • Photo
    DavidMil
    02 Oct 2016 - 8:30
  • Photo
    iesposta
    29 Sep 2016 - 8:58
  • Photo
    player1"NOT"ready
    24 Sep 2016 - 3:10
  • Photo
    slydc
    12 Sep 2016 - 12:29
  • Photo
    mythicon
    31 Aug 2016 - 9:02
  • Photo
    chas10e
    31 Aug 2016 - 5:13
  • Photo
    coleconut
    17 Aug 2016 - 4:59
  • Photo
    cvga
    14 Aug 2016 - 12:12
  • Photo
    HoshiChiri
    14 Aug 2016 - 8:24
  • Photo
    DerekAutista
    13 Aug 2016 - 9:10
  • Photo
    PatmanQC
    23 Jul 2016 - 9:38
  • Photo
    johnnywc
    20 Jul 2016 - 9:51
  • Photo
    NIKON
    20 Jul 2016 - 1:47
  • Photo
    TheHoboInYourRoom
    18 Jul 2016 - 7:34
  • Photo
    DuggerVideoGames
    12 Jul 2016 - 1:21
  • Photo
    atarian63
    08 Jul 2016 - 8:10
  • Photo
    Mulletino
    07 Jul 2016 - 8:13
  • Photo
    skosh
    05 Jul 2016 - 9:07
  • Photo
    McCallister
    26 Jun 2016 - 6:43
  • Photo
    copper20
    12 Jun 2016 - 2:12
  • Photo
    ferghead
    07 Jun 2016 - 10:34
  • Photo
    S1500
    27 May 2016 - 12:16
  • Photo
    ApocalypticNose
    27 May 2016 - 11:50
  • Photo
    splendidnut
    24 May 2016 - 4:23
  • Photo
    KreatorKat
    19 May 2016 - 7:07
  • Photo
    Iwantgames:)
    19 May 2016 - 1:46
  • Photo
    Buttons
    13 May 2016 - 12:23
  • Photo
    towmater
    12 May 2016 - 8:03
  • Photo
    onemoretime
    26 Apr 2016 - 8:36
  • Photo
    SwampFox56
    20 Apr 2016 - 8:28
  • Photo
    airsoftmodels
    14 Apr 2016 - 10:09
  • Photo
    sneame
    08 Apr 2016 - 4:18
  • Photo
    rob_ocelot
    06 Apr 2016 - 4:28