## Search found 336 matches

Fri Oct 07, 2016 11:42 am
Forum: SGDK
Topic: Sound effects
Replies: 12
Views: 2462

### Sound effects

I'm stumped for how to do these easily with psg and fm. I was wondering if I could get away with pcm?
Fri Oct 07, 2016 11:40 am
Forum: SGDK
Topic: find how many times a number appears inside a number
Replies: 2
Views: 772

### Re: find how many times a number appears inside a number

Grind wrote:the modulus opoerator won't work right with fixed point numbers, have to convert to int first.
Thanks grind I knew something wasn't quite right.
Thu Oct 06, 2016 9:24 pm
Forum: SGDK
Topic: find how many times a number appears inside a number
Replies: 2
Views: 772

### find how many times a number appears inside a number

I've a u16 from 1 to 200, I display the number as 3 images from 1 to 9. So if I had 211 it would be 3 image [2] [1] [1]. The problem is I'm struggling to do the calculation to work out how many 100, 10s and 1s are in the u16! I thought the below code would work but it doesn't :/ can someone help me?...
Wed Sep 28, 2016 10:07 am
Forum: SGDK
Topic: Scrolling object on screen in scroll plan
Replies: 4
Views: 1120

### Re: Scrolling object on screen in scroll plan

I was struggling with whether the measure was in tiles or pixels!
Mon Sep 26, 2016 9:12 pm
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 795
Views: 392691

### Re: Sega Genesis Dev Kit (SGDK)

Please please please please support images under 15 colours lol so i don't have to hack my images to be full of black place holders
Mon Sep 26, 2016 8:12 pm
Forum: SGDK
Topic: Scrolling object on screen in scroll plan
Replies: 4
Views: 1120

### Re: Scrolling object on screen in scroll plan

Okay this code works now but is there a better way to do it?
Mon Sep 26, 2016 8:10 pm
Forum: SGDK
Topic: Scrolling object on screen in scroll plan
Replies: 4
Views: 1120

### Scrolling object on screen in scroll plan

Right ok so I can get a block of tiles to scroll off screen but not on! What am I missing? :) Could someone show me an example? void processStartScreen() { switch(GameVariables.StartScreenStage) { case 0: SYS_disableInts(); VDP_drawText("Press Start", 1, 0); SYS_enableInts(); SYS_disableInts(); VDP_...
Fri Sep 23, 2016 9:33 am
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

I'm going to have to think of a better way of doing that calculation as it's a ridiculous amount of cart space to take

P.S It works!!! Thank you both for all your help
Thu Sep 22, 2016 9:09 pm
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

Thats codeblocks output! Can you spot anything off?

Interestingly when I turn the flag to FALSE I get the additional error: "src/main.c:972: warning: implicit declaration of function `fix16Sqrt'"

So the flag must be working
Thu Sep 22, 2016 9:09 pm
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

-------------- Clean: release in MegaRockBandManager (compiler: Sega Genesis Compiler)--------------- Executing clean command: make.exe -f D:\sgdk\makefile.gen clean D:/sgdk/bin/rm -f out/res/gfx.o out/res/music.o out/res/sound.o out/src/main.o out/sega.o out/rom_head.bin out/rom_head.o out/rom.out...
Thu Sep 22, 2016 9:03 pm
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

Same problem with your file Stef :/ Could it be because I'm running off an external HD? Something in codeblocks can't be setup right :/ Not got a clue what though it compiles everything else
Thu Sep 22, 2016 7:13 pm
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

#include <genesis.h> void updateStage(); u16 stage; char line[36]; u16 A; u16 B; u16 C; int main() { // disable interrupt when accessing VDP SYS_disableInts(); // initialization VDP_setScreenWidth320(); VDP_setTextPalette(PAL0); // VDP process done, we can re enable interrupts SYS_enableInts(); whi...
Thu Sep 22, 2016 6:40 pm
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

could you do an example project and I'll try compiling on mine?
Thu Sep 22, 2016 9:24 am
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

Sorry! I was just indicating I'm referencing the right path in my code I've tried deleting and recompiling the library multiple times
Wed Sep 21, 2016 9:25 pm
Forum: SGDK
Topic: Small floating point numbers
Replies: 29
Views: 3394

### Re: Small floating point numbers

I've deleted it and get the error

||=== Build: release in MegaRockBandManager (compiler: Sega Genesis Compiler) ===|
sgdk\lib\libmd.a||No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|