Search found 151 matches
- Thu Nov 21, 2019 7:43 pm
- Forum: SGDK
- Topic: Possibly the dumbest SGDK question ever asked
- Replies: 2
- Views: 4876
Re: Possibly the dumbest SGDK question ever asked
Oh wow, thanks Stef. I had no idea that existed.
- Wed Nov 20, 2019 9:32 pm
- Forum: SGDK
- Topic: Possibly the dumbest SGDK question ever asked
- Replies: 2
- Views: 4876
Possibly the dumbest SGDK question ever asked
Just wondering, seeing as the Mega Drive technically has a Master System built in, is it possible to develop Master System games using SGDK? I'm quite far through the development of my first Mega Drive game (everything I have done up until now has been mainly Unity or just messing about in C and tin...
- Mon Nov 18, 2019 2:08 am
- Forum: SGDK
- Topic: NOOB question - How do I get the frame count?
- Replies: 8
- Views: 10382
Re: NOOB question - How do I get the frame count?
LOL I'm an idiot. Was going over some previous code and I found this: // Update v-sync counter if (vBlankCounter >= 60) { vBlankCounter = 0; } else { vBlankCounter++; } Ah, yup... that'll do it. Sometimes I get hung up on the stupidest little thing. I need to stop overthinking these things.
- Mon Nov 11, 2019 11:43 am
- Forum: SGDK
- Topic: NOOB question - How do I get the frame count?
- Replies: 8
- Views: 10382
Re: NOOB question - How do I get the frame count?
Ah yes, that sounds perfect. Thanks!
- Mon Nov 11, 2019 9:41 am
- Forum: SGDK
- Topic: NOOB question - How do I get the frame count?
- Replies: 8
- Views: 10382
Re: NOOB question - How do I get the frame count?
Yeah I'm using subticks but I just want to use actual frames. The fps doesn't help as I need an actual count of frames so I can do something every x amount of frames rather than the amount of frames per second as that's probably always going to be 60 in this game.
- Mon Nov 11, 2019 6:30 am
- Forum: SGDK
- Topic: NOOB question - How do I get the frame count?
- Replies: 8
- Views: 10382
Re: NOOB question - How do I get the frame count?
Managed to get it working with a timer and a bool but would still like to know how to grab the frame count as subticks are a bit messier - I just want to deal in frames per second, not huge numbers that baffle my tiny brain
- Mon Nov 11, 2019 12:36 am
- Forum: SGDK
- Topic: NOOB question - How do I get the frame count?
- Replies: 8
- Views: 10382
NOOB question - How do I get the frame count?
Hi there, I'm trying to work out basic timers for my game. How exactly do I get hold of the V blank/frame count? I've had a look in the docs but I can't find anything. Basically I have a player pitching a ball and I want to stop them from moving for a short amount of time after the ball is pitched. ...
- Sun Jul 02, 2017 7:48 am
- Forum: Megadrive/Genesis
- Topic: NOOB ASM - How to load only one tile?
- Replies: 4
- Views: 4521
Re: NOOB ASM - How to load only one tile?
Multiply the tile ID by 0x20 (i.e. shift left by 5) to get its address in VRAM. In other words, tiles start at 0x0000, 0x0020, 0x0040, 0x0060... all the way up to 0xFFE0 (the last tile). Note that if you're loading consecutive tiles you don't need to set the address again after each one. I'd sugges...
- Sun Jul 02, 2017 6:46 am
- Forum: Megadrive/Genesis
- Topic: NOOB ASM - How to load only one tile?
- Replies: 4
- Views: 4521
Re: NOOB ASM - How to load only one tile?
Are you sure the SetVRAMwrite creates the correct command word for VDP ? LOL I have no idea. This is all very new to me. Apparently it does this: SetVRAMWrite: macro addr move.l #(vdp_cmd_vram_write)|((\addr)&$3FFF)<<16|(\addr)>>14, vdp_control endm ^^^ That's from the VDP file from the Big Evil we...
- Sun Jul 02, 2017 6:35 am
- Forum: Megadrive/Genesis
- Topic: NOOB ASM - How to load only one tile?
- Replies: 4
- Views: 4521
NOOB ASM - How to load only one tile?
This is driving me nuts. I have been working away of Big Evil Corp's awesome slides but I'm stuck at how to display just one tile. I have my 'H' character displaying on screen and all tiles are set to 0 so the following code fills the screen with H characters. All well and good but no matter what I ...
- Tue Jun 27, 2017 2:44 am
- Forum: Megadrive/Genesis
- Topic: Drawing lines/pixels
- Replies: 5
- Views: 5110
Re: Drawing lines/pixels
Thanks! That should help get me started
- Mon Jun 26, 2017 8:43 am
- Forum: Megadrive/Genesis
- Topic: Drawing lines/pixels
- Replies: 5
- Views: 5110
Re: Drawing lines/pixels
How would this be done with polygons?
- Mon Jun 26, 2017 8:15 am
- Forum: Megadrive/Genesis
- Topic: Drawing lines/pixels
- Replies: 5
- Views: 5110
Re: Drawing lines/pixels
I had to solve this exact problem for Big's Fishing Derby. The basic idea is that you have to draw a line using one tater algorithm (e.g., Bresenham's ) into a tile buffer. But how this goes will depend on whether you are drawing the line with sprites or with planes: if using planes, you can draw t...
- Mon Jun 26, 2017 3:04 am
- Forum: Megadrive/Genesis
- Topic: Drawing lines/pixels
- Replies: 5
- Views: 5110
Drawing lines/pixels
Hi guys, I'm just starting out with 68k asm and making some progress. I decided to go this route just as a pure learning experience (I have done a few demos in C wirh the SGDK before) and I want to make something similar to an Android game I published a few years back. Basically it has a poly web li...
- Mon Apr 25, 2016 9:51 am
- Forum: SGDK
- Topic: Simplest way to swap sprite flames?
- Replies: 7
- Views: 5219
Re: Simplest way to swap sprite flames?
Ah, got it! Thanks For my player I just need SetFrame but I'll need full animation soon. Thanks!