* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Untitled Rougelike  (Read 1481 times)

0 Members and 1 Guest are viewing this topic.

Offline Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 236
  • Post Rating Ratio: +3/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
  • Gender: Other
Untitled Rougelike
« on: April 28, 2015, 06:58:49 am »
I was disappointed at the lack of roguelikes available for the TI Nspire. As such, I am making my own! So far, I have added primitive monsters and the ability to move the player.



TODO LIST
High priority:
Monster AI
Combat
Monster levels
Random dungeon generation
Potions, ranged weapons, melee weapons, amour, rings, etc.
Shops
Various stats (I wont implement speed since that is a pain in the arse to add)

Low priority:
Colors (for example, coloring goblins green)

For the AI, I am planning on doing something like Angband where all monsters are generated sleeping, and are woken up when a player gets near them or does something to wake them up. Then, the player will generate a "scent" that extends for ~30 tiles, with the highest values next to the player and the lowest value far-est from the player. The monster will try to move the the highest number it can access until it reaches the player.

I have never made a game before, and need ideas for things to implement, so feel free to shoot ideas at me!

Current source (too lazy to zip this up and attach it):
Code: [Select]
-- character info
playerx = 5
playery = 5
playerhp = 100

-- MONSTER CLASS THINGY
-- monster constructor
MonsterGen = {}
function MonsterGen:new(x, y, icon)
  o = {x = x, y = y, icon = icon}
  setmetatable(o, self)
  self.__index = self
  return o
end

-- move monster
function MonsterGen:move()
  -- temporary movement
  -- I will soon make this an algorythm to move towards the player
  self.x = self.x + 1
  self.y = self.y + 1
end
-- end monster class thingy

-- event handlers
function on.paint(gc)
  -- draw player stats
  gc:drawLine(260, 0, 260, 240)
  gc:drawString("HP", 265, 15)
  gc:drawString(tostring(playerhp) .. "/100", 265, 30)

  -- draw all the monsters
  for mono = 1, 2 do
    gc:drawString(monster[mono].icon, monster[mono].x * 20, monster[mono].y * 20)
  end
  -- draw the player
  gc:drawString('@', playerx * 20, playery * 20)
end

function on.charIn(char)
  -- entries with turnTaken() cause the player to take a turn
 
  -- begin movement
  if char == '7' then
    -- move upleft
    playerx = playerx - 1
    playery = playery - 1
    turnTaken()
  elseif char == '8' then
    -- move up
    playery = playery - 1
    turnTaken()
  elseif char == '9' then
    -- move upright
    playerx = playerx + 1
    playery = playery - 1
    turnTaken()
  elseif char == '6' then
    -- move right
    playerx = playerx + 1
    turnTaken()
  elseif char == '3' then
    -- move downright
    playerx = playerx + 1
    playery = playery + 1
    turnTaken()
  elseif char == '2' then
    -- move down
    playery = playery + 1
    turnTaken()
  elseif char == '1' then
    -- move downleft
    playerx = playerx - 1
    playery = playery + 1
    turnTaken()
  elseif char == '4' then
    -- move left
    playerx = playerx - 1
    turnTaken()
  end
  -- end movement
  -- begin activities
  if char == '5' then
    -- wait
    turnTaken()
  end
  -- end activities
end

-- perform various processes after player turn
function turnTaken()
  -- perform monster-ly processes
  for mono = 1, 2 do
    monster[mono]:move()
  end
  platform.window:invalidate()
end

monster = {}
monster[1] = MonsterGen:new(1, 1, 'k')
monster[2] = MonsterGen:new(3, 3, 'g')


  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES

Offline Unicorn

  • ??? ??? ??? ??? ???
  • Super User
  • CodeWalrus Supporter
  • *
  • CW Contest II - 2nd place
  • *
  • Join Date: Jan 2015
  • Location: ??? ??? ??? ??? ???
  • Posts: 2820
  • Post Rating Ratio: +5/-2
  • make :PICKACHUP: a thing!
    • Unicorn808
    • 114/11432
    • ??? ??? ??? ??? ???
  • Gender: Male
Re: Untitled Rougelike
« Reply #1 on: April 28, 2015, 07:21:02 am »
Sounds cool! I'm not much of a RPG/Rouglike maker, so I don't have very many suggestions. BUT, maybe bleeding and bandages if you can implment that?

Anyways, this seems like a big project, I hope it gets finished!
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18735
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Untitled Rougelike
« Reply #2 on: April 28, 2015, 08:33:09 pm »
A TI-Nspire rogue game would be nice. Do you plan to change the characters so that they look more old school? (eg Courrier New or Fyxedis font) You should also maybe use a black background.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline LD Studios

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 136
  • Post Rating Ratio: +10/-0
    • LD Studios
Re: Untitled Rougelike
« Reply #3 on: April 28, 2015, 08:35:43 pm »
Looks pretty nice so far, I've started and abandoned a couple of roguelike projects in the past. If you want to use pixel art, I made a pretty good dungeon/roguelike set for one of my abandoned projects, feel free to use it:


Of course, there's nothing wrong with bw ASCII roguelikes, and if you want to make your own art, or find some somewhere else, that's cool too.

Good luck with this project!



Offline Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 236
  • Post Rating Ratio: +3/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
  • Gender: Other
Re: Untitled Rougelike
« Reply #4 on: April 28, 2015, 10:30:34 pm »
A TI-Nspire rogue game would be nice. Do you plan to change the characters so that they look more old school? (eg Courrier New or Fyxedis font) You should also maybe use a black background.

Adding your own fonts to the TI-Nspire is a pain. So no.

And using a black background is easy, I'll make it so you can choose white on black or black on white.

Looks pretty nice so far, I've started and abandoned a couple of roguelike projects in the past. If you want to use pixel art, I made a pretty good dungeon/roguelike set for one of my abandoned projects, feel free to use it:


Of course, there's nothing wrong with bw ASCII roguelikes, and if you want to make your own art, or find some somewhere else, that's cool too.

Good luck with this project!

I am just going to do ASCII, since it'll be easier for me to code.
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18735
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Untitled Rougelike
« Reply #5 on: April 28, 2015, 11:54:04 pm »
Aah but by custom fonts I meant via sprites. For example if sub-string is equal to A then you draw a sprite that shows a custom A, kinda like how some Axe programmers do it. I am fine with ASCII for a Roguelike, though, although maybe with some colors and the background being black like in the original games.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 236
  • Post Rating Ratio: +3/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
  • Gender: Other
Re: Untitled Rougelike
« Reply #6 on: April 29, 2015, 12:50:27 am »
Well, development postponed until the 4x3 contest is over. I want to focus all my time on it so I can make my entry the best it can be.
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18735
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Untitled Rougelike
« Reply #7 on: April 29, 2015, 06:24:55 am »
Ok good luck and don't forget to both announce your entry and once you are done, this project :)
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games