Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > [gamedev] Reading level data problem
2005-10-03 18:43
BastetFurry

Registered: Jul 2005
Posts: 88
[gamedev] Reading level data problem

Hi Folks!

I try to code something in asm, and as i like them its going to be a simple RPG.
But now i have a little problem, how to read the map data?
I have this, hardcoded for now, testdungeon in my programm:
party: ;X first and then Y
!byte $01,$02

dungeon1: ;16x16 grid of map data
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$01,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$01,$01,$01,$00,$01,$01,$01,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$01,$00,$01,$00,$01,$00,$01,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$01,$00,$01,$01,$01,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$01,$01,$01,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

As i am used to do high level programming, i cant figure out how to get something from there with the party coordinates.
I hope somebody can give at least a hint how to get an address out of x and y.

 
... 19 posts hidden. Click here to view all posts....
 
2005-10-10 14:30
BastetFurry

Registered: Jul 2005
Posts: 88
@Oswald:
I find it funny, lets see when this cant be optimized any further.

@White Flame:
Cool, with this i can trow away the multiplication table for 16x16 maps.
BTW: In wich dimeonsions is that code working?
Can i easily switch to 32x32 with it?
2005-10-10 14:56
Ben
Account closed

Registered: Feb 2003
Posts: 163
Quote: @Oswald:
I find it funny, lets see when this cant be optimized any further.

@White Flame:
Cool, with this i can trow away the multiplication table for 16x16 maps.
BTW: In wich dimeonsions is that code working?
Can i easily switch to 32x32 with it?


@Bastet: RMFP.. Read my friggin post :) the 4 times asl is multiplying by 16 so go figure :)

@Oswald.. I did not want to go there either, but Honesty seduced me to :)
2005-10-12 22:26
BastetFurry

Registered: Jul 2005
Posts: 88
Messaging system: Done! (was easy)
Beginning of scripting engine: Done! (Not that easy ;) )

http://www.nachtkatzen.de/c64/dc.zip
(From my space as FileAnchor is down :-/ )
Now i need to find out a way to load data trough kernel (should be easy) and write a frigging map editor (PC-Based...). Hard mapmaking when working with !byte lines *g*
2005-10-13 14:57
Ben
Account closed

Registered: Feb 2003
Posts: 163

When do I get to kiss the princess?
2005-10-13 20:14
BastetFurry

Registered: Jul 2005
Posts: 88
You mean the generic story of rescuing the dragon, slaying the princess and saving the treasure?
Naa, i wont do this ;) It will me more like Morrowind but with a party this time.
You versus the evil Drow-god.
(Drows are Dark Elves)
2005-10-14 05:10
JackAsser

Registered: Jun 2002
Posts: 1989
Fascinating to see a port of Morrowind (highend 3D game for PC) converted to C64. :D Oh right!, you meant the gameplay and story right? Not the gfx? =D


(also, Drow stuff rules, I've always had a fetish on Drow amoury, weapons, spells etc. in RPGs, especially in the Eye of the Beholder series)
2005-10-14 23:55
BastetFurry

Registered: Jul 2005
Posts: 88
Gameplay, yes.
I wont steal the Elder Scroll storyline.
And if you donate a SCPU to me ill try my hands at some 3D. Unless that happens you all are stuck with old scool 8-bit console gfx. (Which is better in my opinion anyways *g* )
As said somewhere else, if someone wants to donate GFX or, better, some fantasy SID Tunes (Adventure, Battle and Shop) or some SID effects (Sword slashes, firing a bow or fireball, .... whatever happens to fit to fantasy) ill be happy and very thankfully for it.
RIght now i am working on a loading routine as i cant trow roughly 500 kbyte of mapdata in a onefiler ;)
(Not talking about savegames..........)
2005-10-15 08:16
drake
Account closed

Registered: Dec 2002
Posts: 207
the first elder scrolls. sigh(!)
that was the ultimate game for me for a long time.
and i always got lost somewhere in the game :-)

will this be a game with 16 disksides?
2005-10-15 10:25
BastetFurry

Registered: Jul 2005
Posts: 88
If you want to torture yourself playing this on 1541, then probelary yes, but i wont support that.
You will need some kind of Harddisk or a nice and shiney 1581. ;)

EDIT: If PTV can make a game for SuckerCPU i can make a game that wont run on 1541, right? ;)
2005-10-15 10:41
Nafcom

Registered: Apr 2002
Posts: 588
Quote: If you want to torture yourself playing this on 1541, then probelary yes, but i wont support that.
You will need some kind of Harddisk or a nice and shiney 1581. ;)

EDIT: If PTV can make a game for SuckerCPU i can make a game that wont run on 1541, right? ;)


A 1581 is fine for me! :)
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
CopAss/Leader
Kruthers
CreaMD/React
jmin
Guests online: 130
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.038 sec.