![Happy :)](./images/smilies/icon_smile.gif)
EDIT:
Here's a video of it in action:
Made a semi-more-interesting level and made the player shoot a useless projectile lawl.
Moderator: PC Supremacists
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
Thanks man! Also background collision may seem like an easy task at first but do not underestimate it for it was a frustrating task indeed!dandymcgee wrote:Haha, that's actually pretty damn impressive.
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
MetaTileDefine: .db $00,$00,$00,$00 ; The 4 8x8 tiles that compose the 16x16 metatile Level: .word MetaTileDefine ;Pointer to metatile definition .db $01 ;How many times it is repeated (repeated 1 time)New sprite drawing routine:
;; Takes: ;;; Sprite_Pointer - Index of the current location in the OAM buffer in ram (OAM_PAGE = $0200) to write to ;;; Temp_Sprite - Temporary holder for sprite data, 4 bytes (y , attr, tile, x) Load_Sprite: LDY Sprite_Pointer LDA Temp_Sprite STA OAM_PAGE, y INY LDA Temp_Sprite+1 STA OAM_PAGE, y INY LDA Temp_Sprite+2 STA OAM_PAGE, y INY LDA Temp_Sprite+3 STA OAM_PAGE, y INY TYA STA Sprite_Pointer RTSI'm going to replace all the hard coded sprites when I get home and then upload it. Lastly, if anyone out there wants to use this Engine,improve upon it, learn from it or critique me for my poor 6502 programming skills please feel free to do so as it is open source for just those purposes
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Code: Select all
; Meta tile defines, 4 8x8 tiles
Black:
.db $00,$00,$00,$00
Sky:
.db $44,$44,$44,$44
...
; Tile_Set table
Tile_Set_1:
.word Sky ;0
.word Dirt_Top ;1
.word Dirt_Center ;2
.word Dirt_Top_L ;3
...
; Level information
Level_1:
.db $01,$01 ; header, uses Song1
.word Tile_Set_1 ;Tile set used
.word Map_Data_1 ;Pointer to map data
.word Palette_1 ;Pointer to color pal used
.word Attribute_1 ; Pointer to attribute table (palette selected for 32x32 region)
.word Collision_1 ; Pointer to collision table
...
; Map data, uses run length encoding scheme for compression
Map_Data_1:
.DB $00 ;Tile#
.db 162 ; Repeat value
.DB $03
.db 0
.DB $01
.db 11
.db $00
.db 2
....
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!