January 22, 2021, 07:44:40 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Join Rafael's
Haunted Woods contest
and win a copy of the game!
Home
arcade
Help
Login
Register
links
videopac.nl
Videopac / Odyssey2 forum
>
Programming the Videopac / Odyssey2
>
Unreleased HomeBrew and test code
>
Fractional Speed
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Fractional Speed (Read 1574 times)
LD
Pedit5
Attacked the Timelord
Posts: 141
Fractional Speed
«
on:
July 11, 2014, 12:44:37 AM »
This code is a "translation" from a 6502 code I have here, if you know a fast and most optimized way to make it, feel free to share, I'm still a newbie in 8048 programming.
Fractional movement/speed is useful for add gravity or acceleration during sprite motion.
The trick is add with carry. Not aways the carry will be set, not aways the player will move. When more you add, more often the carry will be set and faster the player will move.
This demo move the sprite up and down, the same code can be used for horizontal motion.
Press up or down to move, press fire button to stop the player.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Videopac / Odyssey2
-----------------------------
=> Anything Videopac / Odyssey2
===> VP/O2 Video Gameography
===> VP/O2 programmers list
=> Games
===> Game of the Month
=> New releases
===> Released Homebrews and Prototypes list
===> Homebrew and prototype release schedule
=> Hardware
=> Stories...
=> Other Videopac / Odyssey2 sites
-----------------------------
Collecting
-----------------------------
===> Jopac Rarity List
===> Radiola Rarity List
===> Siera Rarity List
=> Wanted lists
=> Swap & Sell
=> My Collection
-----------------------------
Programming the Videopac / Odyssey2
-----------------------------
=> Programming
=> Homebrews
=> Unreleased HomeBrew and test code
-----------------------------
Emulation
-----------------------------
=> Emulating the Videopac / Odyssey2
=> The Videopac Base
=> Forum Arcade
-----------------------------
Anything not specifically Videopac / Odyssey2
-----------------------------
=> Events
=> Other Systems
=> Other games
=> eBay Oddballz
=> Humor
=> Anything else...
-----------------------------
About this forum.
-----------------------------
=> How to register...
=> Read this first!
=> Videopac / Odyssey2 forum
Loading...